/* ============================================================
   AI数智漫剧 · 官方网站专属样式
   依赖：css/global.css（设计令牌变量 + 通用组件）
   ============================================================ */

/* ---------- 1. 官网专属设计令牌 ---------- */
:root {
  --of-hero-size: 56px;
  --of-display-size: 40px;
  --of-section-gap: 120px;
  --of-safe-pad: 60px;
}

/* ---------- 2. 基础重置（官网全屏滚动，覆盖 global.css 的 body 约束） ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  color-scheme: dark;
}

body {
  min-width: 0;
  overflow-x: hidden;
}

/* ---------- 3. 统一容器 ---------- */
.of-container {
  padding: 0 var(--of-safe-pad);
}

/* ---------- 4. 通用 Section ---------- */
.of-section {
  padding: var(--of-section-gap) 0;
  background: var(--bg-base);
}

.of-section--alt {
  background: var(--bg-surface);
}

.of-section-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.of-section-title {
  text-align: center;
  font-size: var(--of-display-size);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.of-section-desc {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.of-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* ---------- 5. 导航栏 ---------- */
.of-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-default);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.of-navbar.scrolled {
  background: rgba(10, 10, 11, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.of-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--of-safe-pad);
}

.of-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.of-logo-icon {
  width: 32px;
  height: 32px;
}

.of-logo-accent {
  color: var(--accent);
}

.of-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.of-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}

.of-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.25s ease;
}

.of-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.of-nav-link.active {
  color: var(--accent);
}

.of-nav-link.active::after {
  width: 20px;
}

.of-nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  margin-left: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--accent);
  border-radius: 6px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.25);
}

.of-nav-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.4);
}

/* ---------- 6. Hero 首屏 ---------- */
.of-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.of-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.of-hero-video video {
  width: 100%;
  height: calc(100% + 80px);
  object-fit: cover;
  transform: translateY(-80px);
}

.of-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 11, 0.78) 0%,
    rgba(20, 20, 24, 0.5) 45%,
    rgba(10, 10, 11, 0.82) 100%
  );
}

.of-hero-glow {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

.of-hero-glow--tl {
  top: -120px;
  left: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.18) 0%, transparent 70%);
}

.of-hero-glow--br {
  bottom: -140px;
  right: -60px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.14) 0%, transparent 70%);
}

.of-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.of-hero-title {
  font-size: var(--of-hero-size);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.of-hero-title-accent {
  color: var(--accent);
}

.of-hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  margin-bottom: 12px;
}

.of-hero-slogan {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.58);
  font-style: italic;
  margin-bottom: 52px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  display: inline-block;
}

.of-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.of-hero-cta {
  padding: 14px 36px;
  font-size: 16px;
}

.of-hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.of-hero-scroll-icon {
  display: block;
  font-size: 24px;
  color: var(--text-tertiary);
  animation: bounce 2s infinite;
  cursor: default;
}

/* ---------- 7. 统计数字卡片 ---------- */
.of-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.of-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.of-stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.of-stat-num {
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 8px;
}

.of-stat-unit {
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.7;
}

.of-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- 8. 优势卡片 ---------- */
.of-adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.of-adv-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.of-adv-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.12);
}

.of-adv-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.of-adv-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.of-adv-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- 9. 品牌故事 ---------- */
.of-story-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 32px;
  border-left: 3px solid var(--accent);
}

.of-story-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- 10. 流程链路 ---------- */
.of-flow-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 40px 32px;
  margin-bottom: 48px;
}

.of-flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.of-flow-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 48px;
  background: linear-gradient(135deg, var(--bg-surface-2) 0%, #2A2145 100%);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.of-flow-node:hover {
  border-color: var(--accent);
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.3);
}

.of-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}

.of-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  font-size: 20px;
  color: var(--accent);
  user-select: none;
}

.of-flow-arrow--down {
  width: 40px;
  height: 32px;
}

/* ---------- 11. 能力卡片 ---------- */
.of-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.of-cap-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.of-cap-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.of-cap-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.of-cap-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- 12. 对比表格 ---------- */
.of-compare {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 32px;
}

.of-compare-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.of-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.of-compare-table thead th {
  padding: 14px 20px;
  text-align: left;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-default);
}

.of-compare-old {
  color: var(--text-tertiary) !important;
}

.of-compare-new {
  color: var(--accent) !important;
}

.of-compare-table tbody td {
  padding: 14px 20px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-default);
}

.of-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.of-compare-table tbody td:first-child {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- 13. 作品展示 ---------- */
.of-works-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.of-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.of-work-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.of-work-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.15);
}

.of-work-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1C1C22 0%, #2A2145 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.of-work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.of-work-card:hover .of-work-cover img {
  transform: scale(1.05);
}

.of-work-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 11, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.of-work-card:hover .of-work-play {
  opacity: 1;
}

.of-work-body {
  padding: 20px;
}

.of-work-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.of-work-tag {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.of-work-views {
  font-size: 13px;
  color: var(--text-tertiary);
}

.of-works-cta {
  text-align: center;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 92, 255, 0.15);
  border-radius: 12px;
  padding: 32px;
}

.of-works-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ---------- 14. 课程体系 ---------- */
.of-courses {
  margin-bottom: 48px;
}

.of-courses-inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.of-course-item {
  flex: 0 0 220px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 28px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.of-course-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.of-course-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.5;
}

.of-course-item:hover .of-course-num {
  opacity: 1;
}

.of-course-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.of-course-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.of-course-connector {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 50px;
}

/* ---------- 15. 学员招募区 ---------- */
.of-recruit-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

/* 讲师 */
.of-teacher-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.of-teacher-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.of-teacher-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.of-teacher-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}

.of-teacher-avatar--1 { background: linear-gradient(135deg, #4F6EF7, #7C5CFF); }
.of-teacher-avatar--2 { background: linear-gradient(135deg, #A855F7, #C084FC); }
.of-teacher-avatar--3 { background: linear-gradient(135deg, #7C5CFF, #A78BFA); }

.of-teacher-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.of-teacher-role {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 4px;
}

.of-teacher-bio {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 报名表单 */
.of-enroll {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 32px;
}

.of-enroll-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.of-required {
  color: var(--danger);
}

.of-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E8E96' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
  cursor: pointer;
}

.of-select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.of-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.of-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.of-form-error {
  display: none;
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

.of-form-error.show {
  display: block;
}

.form-group.has-error .form-input {
  border-color: var(--danger);
}

.of-enroll-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* ---------- 16. 学员案例 ---------- */
.of-cases {
  margin-top: 0;
}

.of-case-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.of-case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.of-case-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.of-case-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 2px solid var(--border-hover);
}

.of-case-avatar--1 { background: linear-gradient(135deg, #34D399, #10B981); }
.of-case-avatar--2 { background: linear-gradient(135deg, #60A5FA, #3B82F6); }
.of-case-avatar--3 { background: linear-gradient(135deg, #FBBF24, #F59E0B); }

.of-case-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.of-case-result {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- 17. 时间线 ---------- */
.of-roadmap-main {
  max-width: 900px;
  margin: 0 auto 48px;
}

.of-timeline {
  position: relative;
  padding-left: 40px;
}

.of-timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--accent) 45%,
    var(--border-hover) 45%,
    var(--border-hover) 100%
  );
}

.of-timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.of-timeline-item:last-child {
  margin-bottom: 0;
}

.of-timeline-dot {
  position: absolute;
  left: -32px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border-hover);
  border: 2px solid var(--border-default);
  z-index: 2;
}

.of-timeline-item--done .of-timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.5);
}

.of-timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 20px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.of-timeline-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.of-timeline-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.of-timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.of-timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.of-timeline-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

.of-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.of-legend-dot--done {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(124, 92, 255, 0.4);
}

.of-legend-dot--plan {
  background: var(--border-hover);
  border: 2px solid var(--border-default);
}

/* ---------- 18. 合作生态 ---------- */
.of-eco {
  margin-top: 0;
}

.of-eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.of-eco-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.of-eco-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.of-eco-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.of-eco-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.of-eco-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.of-eco-tags span {
  display: inline-block;
  padding: 4px 14px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.of-eco-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 19. 页脚 ---------- */
.of-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  padding: 60px 0 0;
}

.of-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.of-footer-logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.of-footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.of-footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.of-footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.of-footer-col a:hover {
  color: var(--text-primary);
}

.of-footer-contact {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.of-footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.of-social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.of-social-link:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.15);
}

.of-social-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(55%) sepia(9%) saturate(346%) hue-rotate(210deg) brightness(93%) contrast(88%);
}

.of-social-link:hover .of-social-icon {
  filter: brightness(0) saturate(100%) invert(31%) sepia(73%) saturate(6566%) hue-rotate(247deg) brightness(102%) contrast(103%);
}

.of-social-qr {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
  z-index: 10;
}

.of-social-link:hover .of-social-qr {
  opacity: 1;
  visibility: visible;
}

.of-social-qr-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* 社交链接 — 带名称布局 */
.of-footer-socials--names {
  display: flex;
  gap: 24px;
  margin-top: 4px;
}

.of-social-link--name {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 44px;
  height: auto;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
}

.of-social-link--name:hover {
  background: transparent;
  transform: none;
}

.of-social-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.of-social-link--name:hover .of-social-icon-wrap {
  background: rgba(124, 92, 255, 0.25);
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.35);
}

.of-social-link--name .of-social-icon {
  position: static;
  transform: none;
  width: 20px;
  height: 20px;
}

.of-social-link--name:hover .of-social-icon {
  filter: brightness(0) saturate(100%) invert(31%) sepia(73%) saturate(6566%) hue-rotate(247deg) brightness(102%) contrast(103%);
}

.of-social-name {
  display: block;
  width: 44px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  transition: color 0.15s ease;
}

.of-social-link--name:hover .of-social-name {
  color: var(--accent);
}

/* 名称模式下的二维码位置调整 */
.of-social-link--name .of-social-qr {
  bottom: 100%;
  margin-bottom: 12px;
}

.of-footer-bottom {
  border-top: 1px solid var(--border-default);
  padding: 24px 0;
  text-align: center;
}

.of-footer-bottom p {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ---------- 20. 悬浮返回顶部 ---------- */
.of-fab {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}

.of-fab.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.of-fab:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.5);
  transform: translateY(-2px);
}

/* ---------- 21. Lightbox ---------- */
.of-lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
}

.of-lightbox.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.of-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.of-lightbox-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.of-lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.of-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 3;
}

.of-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.of-lightbox-info {
  margin-top: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---------- 22. Toast 提示 ---------- */
.of-toast {
  display: none;
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  animation: toastSlideUp 0.3s ease;
}

.of-toast.success {
  display: block;
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.of-toast.error {
  display: block;
  background: rgba(255, 107, 129, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 129, 0.3);
}

/* ---------- 23. 入场动画 ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 24. Keyframes ---------- */
@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 25. 响应式调整 ---------- */
@media (max-width: 1600px) {
  .of-works-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1280px) {
  .of-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .of-adv-grid {
    grid-template-columns: 1fr 1fr;
  }
  .of-cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .of-works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .of-recruit-main {
    grid-template-columns: 1fr;
  }
  .of-case-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .of-eco-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .of-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .of-footer-col--brand {
    grid-column: 1 / -1;
  }
  .of-course-item {
    flex: 0 0 170px;
  }
  .of-matrix-grid {
    grid-template-columns: 1fr;
  }
  :root {
    --of-safe-pad: 40px;
  }
}

@media (max-width: 900px) {
  .of-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .of-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .of-cap-grid {
    grid-template-columns: 1fr 1fr;
  }
  .of-adv-grid {
    grid-template-columns: 1fr;
  }
  .of-footer-grid {
    grid-template-columns: 1fr;
  }
  .of-courses-inner {
    flex-direction: column;
    align-items: center;
  }
  .of-course-connector {
    display: none;
  }
  :root {
    --of-safe-pad: 24px;
  }
}

@media (max-width: 600px) {
  .of-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .of-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .of-cap-grid {
    grid-template-columns: 1fr;
  }
  :root {
    --of-safe-pad: 16px;
    --of-hero-size: 36px;
    --of-display-size: 28px;
    --of-section-gap: 60px;
  }
}

/* ---------- 26. 图标图片样式 ---------- */
.of-adv-icon-img,
.of-cap-icon-img {
  width: 36px;
  height: 36px;
  display: block;
  margin-bottom: 16px;
}

.of-adv-icon {
  margin-bottom: 0;
}

.of-cap-icon {
  margin-bottom: 0;
}

.of-arrow-icon {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) saturate(100%) invert(47%) sepia(24%) saturate(7465%) hue-rotate(242deg) brightness(102%) contrast(101%);
}

.of-arrow-icon--down {
  transform: rotate(0deg);
}

.of-play-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.of-play-icon {
  display: block;
  width: 20px !important;
  height: 20px !important;
  object-fit: scale-down;
  filter: brightness(0) invert(1);
  transition: transform 0.25s ease;
}

.of-work-card:hover .of-play-badge {
  background: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.5);
  transform: scale(1.05);
}

.of-view-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
  filter: brightness(0) saturate(100%) invert(55%) sepia(9%) saturate(346%) hue-rotate(210deg) brightness(93%) contrast(88%);
}

.of-fab-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.of-close-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.of-contact-label {
  color: var(--text-tertiary);
  margin-right: 4px;
}

.of-btn-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-left: 4px;
  filter: brightness(0) saturate(100%) invert(47%) sepia(24%) saturate(7465%) hue-rotate(242deg) brightness(102%) contrast(101%);
}

.of-hero-scroll-icon {
  display: block;
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(55%) sepia(9%) saturate(346%) hue-rotate(210deg) brightness(93%) contrast(88%);
  animation: bounce 2s infinite;
  cursor: default;
}

/* ---------- 27. 优势卡片 & 能力卡片补充样式 ---------- */
.of-adv-tagline {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-default);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.5;
}

.of-cap-highlight {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-default);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.5;
}

/* ---------- 28. 技术矩阵 ---------- */
.of-tech-matrix {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 48px;
}

.of-matrix-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 28px;
  text-align: center;
}

.of-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.of-matrix-col {
  text-align: center;
  padding: 20px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
}

.of-matrix-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.of-matrix-label--llm {
  background: rgba(124, 92, 255, 0.15);
  color: #7C5CFF;
}

.of-matrix-label--video {
  background: rgba(0, 191, 165, 0.15);
  color: #00BFA5;
}

.of-matrix-label--vision {
  background: rgba(255, 152, 0, 0.15);
  color: #FF9800;
}

.of-matrix-item {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.of-matrix-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.of-matrix-middle {
  position: relative;
  text-align: center;
  margin-bottom: 32px;
}

.of-matrix-middle-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-default);
}

.of-matrix-middle-text {
  position: relative;
  display: inline-block;
  padding: 4px 16px;
  background: var(--bg-surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  z-index: 1;
}

.of-matrix-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.of-matrix-tags span {
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

.of-matrix-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.of-matrix-bt-item {
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- 29. 品牌故事补充样式 ---------- */
.of-story-quote {
  margin-top: 16px;
  font-weight: 600;
  color: var(--accent);
  font-size: 16px;
}

/* ---------- 27. 愿景区块 ---------- */
.of-vision {
  margin-top: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.of-vision-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 16px;
}

.of-vision-text strong {
  color: var(--accent);
  font-weight: 600;
}

.of-vision-tagline {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 2px;
}

/* ---------- 28. prefers-reduced-motion 减弱动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
