/* ==================== OPiece社区主题样式 ==================== */
/* 设计令牌 */
:root {
  --deep-blue: #0D1B3D;
  --bubble-teal: #61C3CF;
  --vivid-yellow: #FFB000;
  --vivid-orange: #DC590D;
  --eco-green: #25AC2E;
  --light-gray: #E6E6E6;
  --bright-cyan: #00AEE7;
  --mint-cyan: #A4D9DB;
  --peach: #F7D8C1;
  --brown: #8C4A2F;
  --bg-primary: #FFFFFF;
  --bg-soft: #F4F8FB;
  --bg-muted: #F9F9F9;
  --text-primary: #0D1B3D;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --border-subtle: #EAEAEA;
  --border-strong: #D6D9DE;
  --shadow-sm: 0 1px 2px rgba(13,27,61,0.04);
  --shadow-md: 0 4px 16px rgba(13,27,61,0.06);
  --shadow-lg: 0 12px 40px rgba(13,27,61,0.10);
  --shadow-xl: 0 24px 64px rgba(13,27,61,0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --space-section: 96px;
  --space-section-sm: 64px;
  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section { padding: var(--space-section) 0; }
.section-sm { padding: var(--space-section-sm) 0; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-tag { display: inline-block; font-size: 14px; font-weight: 600; color: var(--vivid-orange); letter-spacing: 0.08em; margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--deep-blue); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 14px; }
.section-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; font-size: 15px; font-weight: 600; border-radius: var(--radius-md); transition: all 0.25s var(--ease); white-space: nowrap; }
.btn-primary { background: var(--deep-blue); color: #fff; }
.btn-primary:hover { background: #15264f; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,27,61,0.25); }
.btn-secondary { background: transparent; color: var(--deep-blue); border: 1.5px solid var(--border-strong); }
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--deep-blue); transform: translateY(-2px); }
.btn-yellow { background: var(--vivid-yellow); color: var(--deep-blue); }
.btn-yellow:hover { background: #ffc733; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,176,0,0.35); }
.btn-outline { background: #fff; color: var(--deep-blue); border: 1px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--deep-blue); background: var(--bg-soft); }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-arrow::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: all 0.3s var(--ease); }
.nav.scrolled { border-bottom-color: var(--border-subtle); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { font-size: 22px; font-weight: 700; color: var(--deep-blue); letter-spacing: -0.01em; }
.nav-logo span { color: var(--vivid-orange); }
.nav-links { display: flex; gap: 36px; }
.nav-links li { position: relative; list-style: none; }
.nav-links a { font-size: 15px; color: var(--text-secondary); font-weight: 500; transition: color 0.2s var(--ease); position: relative; display: inline-flex; align-items: center; gap: 4px; }
.nav-links a:hover, .nav-links a.active { color: var(--deep-blue); }
.nav-links a.active::after { content: ""; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px; background: var(--vivid-orange); border-radius: 1px; }
.nav-links li.has-submenu > a::after { content: "▾"; font-size: 10px; opacity: 0.6; margin-left: 2px; }
.nav-links li.has-submenu { padding-bottom: 18px; margin-bottom: -18px; }
.nav-links .submenu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 0; min-width: 180px; background: #fff; border: 1px solid var(--border-subtle); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; display: none; flex-direction: column; gap: 2px; }
.nav-links .submenu::before { content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--border-subtle); border-top: 1px solid var(--border-subtle); }
.nav-links li.has-submenu:hover .submenu,
.nav-links li.has-submenu:focus-within .submenu,
.nav-links .submenu:hover { display: flex; }
.nav-links .submenu li { list-style: none; }
.nav-links .submenu a { display: block; padding: 10px 14px; font-size: 14px; border-radius: 8px; color: var(--text-secondary); white-space: nowrap; }
.nav-links .submenu a:hover { background: var(--bg-soft); color: var(--deep-blue); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; font-size: 24px; color: var(--deep-blue); background: none; }

/* ==================== 用户菜单 ==================== */
.user-menu { position: relative; padding: 0 0 22px; margin: 0 0 -22px; }
.user-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--radius-md); background: var(--bg-soft); color: var(--text-primary); font-size: 14px; font-weight: 500; transition: all 0.2s var(--ease); cursor: pointer; }
.user-trigger:hover { background: #E8EFF8; }
.user-trigger.user-login { padding: 8px 16px; background: var(--deep-blue); color: #fff; }
.user-trigger.user-login:hover { background: #15264f; }
.user-icon { font-size: 16px; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.1); flex-shrink: 0; }
.user-avatar-emoji { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #61C3CF 0%, #0D1B3D 100%); color: #fff; font-size: 16px; line-height: 1; flex-shrink: 0; }
.user-avatar-lg { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.user-avatar-lg.user-avatar-emoji { font-size: 24px; }
.user-name { font-size: 14px; }
.user-caret { font-size: 10px; opacity: 0.6; }

.user-dropdown { position: absolute; top: calc(100% + 4px); right: 0; min-width: 260px; background: #fff; border: 1px solid var(--border-subtle); border-radius: 14px; box-shadow: 0 12px 40px rgba(13,27,61,0.18); padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 200; }
.user-dropdown::before { content: ""; position: absolute; top: -6px; right: 24px; transform: rotate(45deg); width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--border-subtle); border-top: 1px solid var(--border-subtle); }
.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown,
.user-dropdown:hover { display: flex; }
/* 用透明连接桥覆盖 user-trigger 和 user-dropdown 之间的间隙 */
.user-menu::after { content: ""; position: absolute; top: 100%; right: 0; width: 100%; height: 8px; }

.user-dropdown-header { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 4px; }
.user-avatar-lg { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.user-meta { flex: 1; min-width: 0; }
.user-name-lg { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.user-bio { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.user-dropdown-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.user-dropdown-list li.divider { height: 1px; background: var(--border-subtle); margin: 6px 8px; }
.user-dropdown-list a, .user-dropdown-list button { display: block; width: 100%; padding: 10px 14px; font-size: 14px; color: var(--text-primary); border-radius: 8px; background: none; border: none; text-align: left; cursor: pointer; transition: all 0.15s var(--ease); text-decoration: none; font-family: inherit; }
.user-dropdown-list a:hover, .user-dropdown-list button:hover { background: var(--bg-soft); color: var(--deep-blue); }
.logout-form { margin: 0; padding: 0; }
.logout-btn { color: #DC2626 !important; }
.logout-btn:hover { background: #FEE2E2 !important; color: #B91C1C !important; }

.hero { padding: 160px 0 100px; background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-muted) 100%); position: relative; overflow: hidden; text-align: center; }
.hero::before { content: ""; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(97,195,207,0.12) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero::after { content: ""; position: absolute; bottom: -150px; left: -150px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,176,0,0.10) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; background: #fff; border: 1px solid var(--mint-cyan); border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; color: var(--deep-blue); margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vivid-yellow); box-shadow: 0 0 0 4px rgba(255,176,0,0.2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(255,176,0,0.2); } 50% { box-shadow: 0 0 0 8px rgba(255,176,0,0.1); } }
.hero-title { font-size: clamp(36px, 5.5vw, 56px); font-weight: 800; color: var(--deep-blue); line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero-title .highlight { color: var(--vivid-orange); }
.hero-sub { font-size: clamp(16px, 1.8vw, 18px); color: var(--text-secondary); line-height: 1.75; max-width: 720px; margin: 0 auto 36px; }
.hero-sub-multiline { white-space: pre-line; }
@keyframes scroll-hint-pulse {
  0%, 100% { opacity: 0.35; transform: translateY(-50%) translateX(0); }
  50% { opacity: 0.65; transform: translateY(-50%) translateX(3px); }
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { font-size: 14px; color: var(--text-tertiary); }
.hero-trust::before { content: "\2693 "; }

.stats { background: var(--bg-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 36px 24px; text-align: center; transition: all 0.3s var(--ease); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-label { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.stat-number { font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 8px; font-feature-settings: "tnum"; }
.stat-card:nth-child(1) .stat-number { color: var(--vivid-orange); }
.stat-card:nth-child(2) .stat-number { color: var(--vivid-yellow); }
.stat-card:nth-child(3) .stat-number { color: var(--bubble-teal); }
.stat-card:nth-child(4) .stat-number { color: var(--eco-green); }
.stat-desc { font-size: 13px; color: var(--text-secondary); }

.services { background: var(--bg-muted); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 36px; transition: all 0.3s var(--ease); display: flex; flex-direction: column; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; }
.service-card:nth-child(1) .service-icon { background: var(--vivid-yellow); }
.service-card:nth-child(2) .service-icon { background: var(--bubble-teal); }
.service-card:nth-child(3) .service-icon { background: var(--eco-green); }
.service-name { font-size: 24px; font-weight: 700; color: var(--deep-blue); margin-bottom: 20px; }
.service-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; flex: 1; }
.service-features li { font-size: 15px; color: var(--deep-blue); display: flex; align-items: flex-start; gap: 10px; }
.service-features li::before { content: "\2713"; color: var(--eco-green); font-weight: 700; flex-shrink: 0; }
.service-more { font-size: 15px; font-weight: 600; color: var(--vivid-orange); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s var(--ease); }
.service-more:hover { gap: 10px; }

.features { background: var(--bg-muted); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 32px; transition: all 0.3s var(--ease); }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.feature-card:nth-child(1) .feature-icon { background: var(--vivid-yellow); }
.feature-card:nth-child(2) .feature-icon { background: var(--vivid-orange); }
.feature-card:nth-child(3) .feature-icon { background: var(--bubble-teal); }
.feature-card:nth-child(4) .feature-icon { background: var(--eco-green); }
.feature-card:nth-child(5) .feature-icon { background: var(--bright-cyan); }
.feature-card:nth-child(6) .feature-icon { background: var(--brown); }
.feature-title { font-size: 20px; font-weight: 700; color: var(--deep-blue); margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

.testimonials { background: var(--bg-muted); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 32px; transition: all 0.3s var(--ease); display: flex; flex-direction: column; }
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.testimonial-quote { font-size: 56px; font-weight: 800; line-height: 0.6; margin-bottom: 8px; font-family: Georgia, serif; }
.testimonial-card:nth-child(1) .testimonial-quote { color: var(--vivid-yellow); }
.testimonial-card:nth-child(2) .testimonial-quote { color: var(--bubble-teal); }
.testimonial-card:nth-child(3) .testimonial-quote { color: var(--eco-green); }
.testimonial-card:nth-child(4) .testimonial-quote { color: var(--vivid-orange); }
.testimonial-card:nth-child(5) .testimonial-quote { color: var(--bright-cyan); }
.testimonial-card:nth-child(6) .testimonial-quote { color: var(--brown); }
.testimonial-text { font-size: 15px; color: var(--deep-blue); line-height: 1.75; margin-bottom: 20px; flex: 1; }
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--vivid-orange); }

.spirit { background: var(--deep-blue); color: #fff; }
.spirit .section-tag { color: var(--vivid-yellow); }
.spirit .section-title { color: #fff; }
.spirit .section-desc { color: var(--mint-cyan); }
.spirit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.spirit-card { background: #15264f; border-radius: var(--radius-lg); padding: 32px; transition: all 0.3s var(--ease); }
.spirit-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.spirit-icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }
.spirit-card:nth-child(1) .spirit-icon { background: var(--vivid-yellow); }
.spirit-card:nth-child(2) .spirit-icon { background: var(--vivid-orange); }
.spirit-card:nth-child(3) .spirit-icon { background: var(--eco-green); }
.spirit-card:nth-child(4) .spirit-icon { background: var(--bubble-teal); }
.spirit-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.spirit-desc { font-size: 14px; color: var(--mint-cyan); line-height: 1.65; }

.promo { background: var(--bg-muted); }
.promo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.promo-card { border-radius: var(--radius-lg); padding: 32px; min-height: 280px; display: flex; flex-direction: column; gap: 12px; transition: all 0.3s var(--ease); }
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-card:nth-child(1) { background: var(--peach); }
.promo-card:nth-child(2) { background: var(--vivid-yellow); }
.promo-card:nth-child(3) { background: var(--mint-cyan); }
.promo-card:nth-child(4) { background: var(--bubble-teal); }
.promo-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.promo-card:nth-child(1) .promo-tag { color: var(--vivid-orange); }
.promo-card:nth-child(2) .promo-tag { color: var(--brown); }
.promo-card:nth-child(3) .promo-tag, .promo-card:nth-child(4) .promo-tag { color: var(--deep-blue); }
.promo-title { font-size: 24px; font-weight: 700; color: var(--deep-blue); }
.promo-desc { font-size: 15px; line-height: 1.65; }
.promo-card:nth-child(1) .promo-desc { color: var(--brown); }
.promo-card:nth-child(2) .promo-desc { color: var(--brown); }
.promo-card:nth-child(3) .promo-desc, .promo-card:nth-child(4) .promo-desc { color: var(--deep-blue); }
.activity-bar { display: flex; justify-content: center; align-items: center; gap: 48px; padding: 28px 40px; background: var(--deep-blue); border-radius: var(--radius-lg); flex-wrap: wrap; }
.activity-bar .item { font-size: 16px; font-weight: 600; }
.activity-bar .item:nth-child(1) { color: #fff; }
.activity-bar .item:nth-child(2) { color: var(--vivid-yellow); }
.activity-bar .item:nth-child(3) { color: var(--bubble-teal); }

.life { background: var(--bg-muted); }
.life-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.life-card { border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s var(--ease); min-height: 360px; display: flex; flex-direction: column; }
.life-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.life-card.dark { background: var(--deep-blue); }
.life-card.light { background: #fff; border: 1px solid var(--light-gray); }
.life-img { width: 100%; height: 220px; overflow: hidden; }
.life-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.life-card:hover .life-img img { transform: scale(1.05); }
.life-body { padding: 20px 24px; }
.life-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.life-card.dark .life-title { color: #fff; }
.life-card.light .life-title { color: var(--deep-blue); }
.life-desc { font-size: 14px; }
.life-card.dark .life-desc { color: var(--mint-cyan); }
.life-card.light .life-desc { color: var(--text-secondary); }

/* --- 步骤说明块 Step：深蓝背景 --- */
.step { background: var(--deep-blue); }
.step .section-tag { color: var(--vivid-yellow); }
.step .section-title { color: #fff; }
.step .section-desc { color: rgba(255,255,255,0.7); }
/* 步骤按钮：半透明白底 + 黄色激活 */
.step-tab {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.12);
}
.step-tab:hover { border-color: var(--vivid-yellow); color: var(--vivid-yellow); }
.step-tab.active {
  background: var(--vivid-yellow); color: var(--deep-blue);
  border-color: var(--vivid-yellow); font-weight: 700;
}
/* 面板文字 */
.step-panel-title { color: #fff; }
.step-panel-desc { color: rgba(255,255,255,0.75); }
.step-panel-details li { color: rgba(255,255,255,0.8); }
.step-panel-details li::before { color: var(--vivid-yellow); }
/* 按钮间箭头 */
.step-tab-arrow { color: rgba(255,255,255,0.2); }

.cta { background: var(--vivid-orange); padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-text h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-text p { font-size: 16px; color: var(--peach); }
.cta .btn-dark { background: var(--deep-blue); color: var(--vivid-yellow); font-size: 18px; font-weight: 700; padding: 18px 40px; }
.cta .btn-dark:hover { background: #15264f; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

.footer { background: var(--deep-blue); color: #fff; padding: 64px 0 32px; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 40px; border-bottom: 1px solid #1a2a5a; }
.footer-brand .logo { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.footer-brand .slogan { font-size: 14px; color: var(--mint-cyan); }
.footer-col h4 { font-size: 14px; font-weight: 600; color: var(--bubble-teal); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col li { font-size: 14px; color: #fff; }
.footer-col a:hover { color: var(--vivid-yellow); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 13px; color: var(--text-tertiary); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-copyright { line-height: 1.6; }
.footer-beian { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.footer-beian a { color: var(--text-tertiary); text-decoration: none; transition: color 0.2s var(--ease); }
.footer-beian a:hover { color: var(--vivid-orange); }
.footer-brand img { display: block; max-width: 100%; }

.float-contact { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--deep-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: var(--shadow-lg); transition: all 0.25s var(--ease); }
.float-btn:hover { background: var(--vivid-orange); transform: scale(1.08); }
.float-btn.yellow { background: var(--vivid-yellow); color: var(--deep-blue); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* 统一卡片点击动效 */
.stat-card:active, .service-card:active, .feature-card:active, .testimonial-card:active,
.spirit-card:active, .promo-card:active, .life-card:active, .team-card:active,
.blog-card:active, .category-card:active, .post-card:active, .gallery-hover-card:active,
.post-nav-prev:active, .post-nav-next:active {
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* 文章/单页通用样式 */
.post-container { max-width: 800px; margin: 120px auto 60px; padding: 0 32px; }
.post-title { font-size: 36px; font-weight: 800; color: var(--deep-blue); margin-bottom: 16px; line-height: 1.3; }
.post-meta { font-size: 14px; color: var(--text-tertiary); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-subtle); }
.post-content { font-size: 16px; line-height: 1.8; color: var(--text-primary); }
.post-content h1, .post-content h2, .post-content h3 { color: var(--deep-blue); margin: 32px 0 16px; }
.post-content p { margin-bottom: 20px; }
.post-content img { border-radius: var(--radius-md); margin: 24px 0; }
.post-content a { color: var(--vivid-orange); text-decoration: underline; }
.post-content code { background: var(--bg-soft); padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 14px; }
.post-content pre { background: var(--deep-blue); color: #fff; padding: 20px; border-radius: var(--radius-md); overflow-x: auto; margin: 24px 0; }
.post-content pre code { background: none; padding: 0; }

.error-container { max-width: 600px; margin: 0 auto; padding: 160px 32px 80px; text-align: center; }
.error-code { font-size: 120px; font-weight: 800; color: var(--vivid-orange); line-height: 1; margin-bottom: 16px; }
.error-title { font-size: 28px; font-weight: 700; color: var(--deep-blue); margin-bottom: 12px; }
.error-desc { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; }

@media (max-width: 1024px) {
  .stats-grid, .features-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .spirit-grid, .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 44px 0; }
  .section-header { margin-bottom: 32px; }
  /* 移动端导航：消除行间距 + 菜单连上logo栏 */
  .nav { background: rgba(255,255,255,0.88); }
  .nav-inner { flex-wrap: wrap; height: auto; padding: 0; gap: 0; }
  .nav-logo { padding: 0 20px; height: 52px; display: flex; align-items: center; }
  .nav-cta { margin-left: auto; margin-right: 20px; gap: 8px; }
  .nav-toggle { display: none !important; }
  /* 菜单：第二行，横向滚动不换行 */
  .nav-links {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    width: 100%;
    order: 3;
    padding: 0 20px;
    height: 44px;
    align-items: center;
    margin: 0;
    scrollbar-width: none;
    /* 不设独立背景，继承 .nav 的磨砂半透明效果 */
    /* 左右两侧渐变遮罩保留 */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  /* nav-inner 中的滑动提示包裹器需要继承 flex 布局属性 */
  .nav-inner > .scroll-hint-wrapper { width: 100%; order: 3; }
  .nav-links li.has-submenu { padding-bottom: 0; margin-bottom: 0; }
  .nav-links .submenu { display: none !important; }
  /* 子菜单展开状态（JS 动态移入 body 需全局选择器覆盖） */
  .nav-links .submenu.open,
  .submenu.open {
    display: flex !important;
    flex-direction: column;
    min-width: 140px;
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    gap: 2px;
    z-index: 9999;
  }
  .nav-links .submenu.open a,
  .submenu.open a { padding: 10px 12px; font-size: 13px; border-radius: 8px; white-space: nowrap; color: var(--text-secondary); text-decoration: none; display: block; }
  .submenu.open a:hover { background: var(--bg-soft); color: var(--deep-blue); }
  .nav-links a { white-space: nowrap; font-size: 14px; }
  /* 移动端 .user-menu 重置 */
  .user-menu { padding: 0; margin: 0; }
  .user-menu::after { display: none; }
  .nav-cta .user-caret { display: none; }
  /* 移动端用户按钮：显示用户名（登录和已登录均显示） */
  .nav-cta .user-trigger {
    height: 34px; min-height: 34px;
    padding: 0 8px 0 4px;
    font-size: 12px;
    border-radius: var(--radius-md);
    display: inline-flex; align-items: center;
  }
  .nav-cta .user-trigger .user-avatar,
  .nav-cta .user-trigger .user-avatar-emoji {
    width: 24px; height: 24px; min-width: 24px; min-height: 24px;
    max-width: 24px; max-height: 24px; font-size: 14px; overflow: hidden; line-height: 1;
  }
  .nav-cta .user-trigger .user-name { display: inline; font-size: 12px; }
  .nav-cta .user-trigger .user-icon { font-size: 18px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .user-trigger.user-login {
    height: 34px; min-height: 34px; padding: 0 12px; font-size: 12px; margin-right: 0;
    border-radius: var(--radius-md);
  }
  .nav-cta .user-trigger.user-login .user-icon { display: none; }
  .nav-cta .user-trigger.user-login .user-name { display: inline; font-size: 12px; }
  /* CTA 按钮 */
  .nav-cta .btn-primary {
    height: 36px; min-height: 36px; padding: 0 14px; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    border-radius: var(--radius-md);
  }
  .nav-cta a.btn.btn-primary.cta-hide-mobile,
  .nav-cta .cta-hide-mobile.btn-primary { display: none !important; }
  .user-dropdown { display: none; }
  .user-menu.open .user-dropdown { display: flex; right: 0; top: calc(100% + 4px); }
  .hero { padding: 108px 0 44px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .stats-grid, .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .spirit-grid, .life-grid { grid-template-columns: 1fr; }
  /* 社区服务/成员评价：单行横向滑动，保持 container 边距 */
  .services-grid, .testimonials-grid {
    display: flex; overflow-x: auto; overflow-y: hidden; gap: 16px;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding-bottom: 8px;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
  .services-grid::-webkit-scrollbar, .testimonials-grid::-webkit-scrollbar { display: none; }
  .services-grid .service-card, .testimonials-grid .testimonial-card {
    flex: 0 0 calc(100% - 40px); min-width: 260px; max-width: 320px; margin-bottom: 0;
  }
  /* 核心特性块：2行同时滑动，保持 container 边距 */
  .features-grid {
    display: grid; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column;
    grid-auto-columns: calc(100% - 40px); column-gap: 16px; row-gap: 14px;
    overflow-x: auto; overflow-y: hidden;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
  .features-grid::-webkit-scrollbar { display: none; }
  .features-grid .feature-card { min-width: 0; }
  /* 滑动提示包裹器：::after 定位在包裹器上，不随内容滚动 */
  .scroll-hint-wrapper { position: relative; }
  .scroll-hint-wrapper[data-scrollable="true"]::after {
    content: "\203A";
    position: absolute;
    right: 0; top: 50%; transform: translateY(-50%);
    width: 32px; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--text-secondary);
    background: linear-gradient(to left, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 60%, transparent 100%);
    pointer-events: none;
    opacity: 0.55;
    animation: scroll-hint-pulse 2.2s ease-in-out infinite;
    z-index: 5;
  }
  .scroll-hint-wrapper[data-scrollable="true"].is-scrolled-right::after { opacity: 0; animation: none; }
  /* 数据统计块两列 */
  .stat-card { padding: 20px 12px; }
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 12px; }
  .stat-desc { font-size: 11px; }
  /* 社区服务块滑动 */
  .service-card { padding: 24px; }
  .service-icon { width: 48px; height: 48px; font-size: 24px; margin-bottom: 14px; }
  .service-name { font-size: 20px; margin-bottom: 14px; }
  .service-features { gap: 8px; margin-bottom: 16px; }
  .service-features li { font-size: 14px; }
  /* 核心特性块滑动并缩小 */
  .feature-card { padding: 20px; }
  .feature-icon { width: 40px; height: 40px; font-size: 20px; margin-bottom: 12px; }
  .feature-title { font-size: 17px; margin-bottom: 6px; }
  .feature-desc { font-size: 13px; line-height: 1.55; }
  /* 成员评价块滑动 */
  .testimonial-card { padding: 24px; }
  .testimonial-quote { font-size: 36px; margin-bottom: 4px; }
  .testimonial-text { font-size: 14px; line-height: 1.65; margin-bottom: 14px; }
  .testimonial-name { font-size: 13px; }
  /* 团队介绍块：头像左，信息右，压缩高度，隐藏社交链接 */
  .team-grid { grid-template-columns: 1fr; max-width: 100%; }
  .team-card {
    display: flex; flex-direction: row; align-items: flex-start; text-align: left;
    padding: 8px 10px; gap: 10px;
  }
  .team-avatar { width: 44px; height: 44px; margin: 0; flex-shrink: 0; border-width: 2px; }
  .team-avatar-fallback { font-size: 18px; }
  .team-info { flex: 1; min-width: 0; text-align: left; }
  .team-name { font-size: 14px; margin-bottom: 1px; }
  .team-title { font-size: 11px; margin-bottom: 2px; }
  .team-desc { font-size: 11px; line-height: 1.45; margin-bottom: 0; }
  .team-socials { display: none; }
  /* 优惠政策块两列 */
  .promo-card { padding: 20px; min-height: 0; gap: 8px; }
  .promo-title { font-size: 18px; }
  .promo-desc { font-size: 13px; line-height: 1.55; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .cta { padding: 48px 0; }
  .cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cta .btn-dark { text-align: center; justify-content: center; }
  .activity-bar { gap: 20px; }
  /* 悬浮按钮在窄屏缩小，并避开 nav 高度 */
  .float-contact { right: 12px; bottom: 12px; gap: 8px; }
  .float-btn { width: 44px; height: 44px; font-size: 18px; }
}
@media (max-width: 480px) {
  .float-btn { width: 40px; height: 40px; font-size: 16px; }
  .float-contact { right: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==================== 列表页通用样式 ==================== */
.list-page { padding: 120px 0 80px; background: var(--bg-muted); min-height: 60vh; }
.list-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.list-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--deep-blue); margin-bottom: 14px; }
.list-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }

/* 面包屑 */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; flex-wrap: wrap; justify-content: center; }
.breadcrumb a { color: var(--vivid-orange); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--deep-blue); }
.breadcrumb span { color: var(--text-tertiary); }
.breadcrumb .current { color: var(--deep-blue); font-weight: 600; }

/* 分类卡片网格 */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 24px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); text-align: center; transition: all 0.3s var(--ease); }
.category-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.category-icon { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--vivid-yellow); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: var(--deep-blue); }
.category-name { font-size: 20px; font-weight: 700; color: var(--deep-blue); }
.category-count { font-size: 14px; color: var(--text-secondary); }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag-item { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); font-size: 15px; color: var(--deep-blue); transition: all 0.3s var(--ease); }
.tag-item:hover { background: var(--deep-blue); color: #fff; border-color: var(--deep-blue); }
.tag-count { font-size: 12px; color: var(--text-tertiary); background: var(--bg-soft); padding: 2px 8px; border-radius: var(--radius-pill); }
.tag-item:hover .tag-count { background: rgba(255,255,255,0.2); color: #fff; }

/* 文章列表卡片 */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s var(--ease); }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-card-cover { width: 100%; height: 200px; overflow: hidden; }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .post-card-cover img { transform: scale(1.05); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-title { font-size: 20px; font-weight: 700; color: var(--deep-blue); margin-bottom: 10px; line-height: 1.4; }
.post-card-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-tertiary); }

/* 归档页 */
.archive-year { margin-bottom: 48px; }
.archive-year-title { font-size: 32px; font-weight: 800; color: var(--deep-blue); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--vivid-yellow); display: inline-block; }
.archive-month { margin-bottom: 32px; }
.archive-month-title { font-size: 18px; font-weight: 600; color: var(--vivid-orange); margin-bottom: 12px; }
.archive-posts { display: flex; flex-direction: column; gap: 8px; }
.archive-post-item { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); transition: all 0.2s var(--ease); }
.archive-post-item:hover { border-color: var(--deep-blue); background: var(--bg-soft); }
.archive-post-date { font-size: 14px; color: var(--text-tertiary); font-family: var(--font-mono); min-width: 48px; }
.archive-post-title { font-size: 15px; color: var(--deep-blue); font-weight: 500; }

/* 分页 */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; }
.page-link { display: inline-flex; align-items: center; padding: 10px 24px; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-md); font-size: 15px; font-weight: 500; color: var(--deep-blue); transition: all 0.2s var(--ease); }
.page-link:hover { background: var(--deep-blue); color: #fff; border-color: var(--deep-blue); }
.page-info { font-size: 15px; color: var(--text-secondary); font-family: var(--font-mono); }

/* 空状态 */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-tertiary); font-size: 16px; }

/* ==================== 文章详情页 ==================== */
.post-detail { padding: 120px 0 80px; background: var(--bg-muted); min-height: 60vh; }
.post-detail-container { max-width: 800px; margin: 0 auto; padding: 0 32px; }
.post-detail-container .breadcrumb { justify-content: flex-start; margin-bottom: 32px; }
.post-detail-header { margin-bottom: 32px; }
.post-detail-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--deep-blue); line-height: 1.3; margin-bottom: 20px; }
.post-detail-meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.post-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-label { color: var(--text-tertiary); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.post-tag { display: inline-flex; padding: 4px 14px; background: var(--bg-soft); border-radius: var(--radius-pill); font-size: 13px; color: var(--vivid-orange); transition: all 0.2s var(--ease); }
.post-tag:hover { background: var(--vivid-orange); color: #fff; }
.post-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.post-category { display: inline-flex; padding: 4px 14px; background: var(--mint-cyan); border-radius: var(--radius-pill); font-size: 13px; color: var(--deep-blue); transition: all 0.2s var(--ease); }
.post-category:hover { background: var(--bubble-teal); color: #fff; }
.post-detail-cover { width: 100%; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.post-detail-cover img { width: 100%; height: auto; display: block; }
.post-detail-content { background: #fff; border-radius: var(--radius-lg); padding: 40px; font-size: 16px; line-height: 1.85; color: var(--text-primary); box-shadow: var(--shadow-sm); }
.post-detail-content h1, .post-detail-content h2, .post-detail-content h3 { color: var(--deep-blue); margin: 32px 0 16px; font-weight: 700; }
.post-detail-content h2 { font-size: 24px; }
.post-detail-content h3 { font-size: 20px; }
.post-detail-content p { margin-bottom: 20px; }
.post-detail-content a { color: var(--vivid-orange); text-decoration: underline; }
.post-detail-content img { border-radius: var(--radius-md); margin: 24px 0; max-width: 100%; }
.post-detail-content blockquote { border-left: 4px solid var(--vivid-yellow); padding: 16px 24px; margin: 24px 0; background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-secondary); }
.post-detail-content code { background: var(--bg-soft); padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 14px; color: var(--vivid-orange); }
.post-detail-content pre { background: var(--deep-blue); color: #e0e0e0; padding: 24px; border-radius: var(--radius-md); overflow-x: auto; margin: 24px 0; }
.post-detail-content pre code { background: none; padding: 0; color: inherit; }
.post-detail-content ul, .post-detail-content ol { margin: 20px 0; padding-left: 24px; }
.post-detail-content li { margin-bottom: 8px; }
.post-detail-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.post-detail-content th, .post-detail-content td { padding: 12px 16px; border: 1px solid var(--border-subtle); text-align: left; }
.post-detail-content th { background: var(--bg-soft); font-weight: 600; color: var(--deep-blue); }

/* 上下篇导航 */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.post-nav-prev, .post-nav-next { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); transition: all 0.3s var(--ease); }
.post-nav-prev:hover, .post-nav-next:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.post-nav-next { text-align: right; }
.post-nav-label { font-size: 13px; color: var(--vivid-orange); font-weight: 600; }
.post-nav-title { font-size: 16px; color: var(--deep-blue); font-weight: 600; }

/* 评论区 */
.post-comments { margin-top: 48px; }

/* 响应式补充 */
@media (max-width: 768px) {
  .post-list { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-detail-content { padding: 24px; }
  .post-detail-container { padding: 0 20px; }
}

/* ============================================================
   v5.5.0 轮播图块 Carousel
   ============================================================ */
.carousel-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* 全宽模式 */
.carousel-section.carousel-pc-fullwidth { max-width: 100%; border-radius: 0; }
@media (max-width: 768px) {
  .carousel-section.carousel-mobile-fullwidth { max-width: 100%; border-radius: 0; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
}

.carousel-track-wrapper {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}
.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
}
.carousel-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .carousel-img { height: 280px; }
}

/* 渐变遮罩：从上到下全透明渐变 */
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(13,27,61,0) 0%,
    rgba(13,27,61,0.15) 40%,
    rgba(13,27,61,0.65) 100%);
  display: flex;
  align-items: flex-end;
}
.carousel-overlay-inner {
  padding: 40px 48px;
  max-width: 650px;
}
@media (max-width: 768px) {
  .carousel-overlay-inner { padding: 20px 24px; }
}
.carousel-tag {
  display: inline-block;
  background: var(--vivid-orange);
  color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.carousel-title {
  font-size: 32px; font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
  .carousel-title { font-size: 22px; }
}
.carousel-desc {
  font-size: 16px; line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
  .carousel-desc { font-size: 14px; margin-bottom: 14px; }
}
.carousel-btn {
  display: inline-block;
  background: var(--vivid-yellow);
  color: var(--deep-blue);
  font-size: 15px; font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.carousel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 左右箭头（PC端） */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--deep-blue);
  transition: all 0.3s var(--ease);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.carousel-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.carousel-arrow-prev { left: 16px; }
.carousel-arrow-next { right: 16px; }
@media (max-width: 768px) {
  .carousel-arrow { display: none; }
}

/* 指示点 */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 8px;
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(13,27,61,0.2);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}
.carousel-dot.active {
  background: var(--vivid-orange);
  width: 28px;
  border-radius: 5px;
}

/* ============================================================
   v5.2.0 新增四大区块样式
   图库块 / 步骤说明块 / 团队介绍块 / Logo墙块
   ============================================================ */

/* --- 图库块 Gallery --- */
.gallery { background: var(--bg-muted); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-grid .gallery-item:nth-child(3n + 1) { grid-column: span 2; }
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,61,0.8) 0%, transparent 60%);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-weight: 600; font-size: 14px; text-align: center; }

/* --- 步骤说明块 Step --- */
.step-container { max-width: 1000px; margin: 0 auto; }
.step-tabs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  justify-content: center; margin-bottom: 32px;
}
.step-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.3s var(--ease);
  flex-shrink: 0;
}
.step-tab:hover { }
.step-tab.active { }
.step-tab-icon { font-size: 18px; }
/* Tab 之间的箭头 */
.step-tab-arrow {
  display: flex; align-items: center;
  flex-shrink: 0;
  transition: color 0.3s var(--ease);
}
.step-tab-arrow svg { display: block; }

.step-panels { position: relative; min-height: 280px; }
.step-panel { display: none; animation: fadeIn 0.4s var(--ease); }
.step-panel.active { display: block; }

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

.step-image {
  width: 100%; max-height: 320px; object-fit: cover;
  border-radius: var(--radius-lg); margin-bottom: 24px;
}
.step-panel-title {
  font-size: 24px; font-weight: 700;
  text-align: center; margin-bottom: 12px;
}
.step-panel-desc {
  text-align: center;
  font-size: 16px; line-height: 1.7; margin-bottom: 20px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.step-panel-details {
  list-style: none; padding: 0; max-width: 600px;
  margin: 0 auto; display: grid; gap: 8px;
}
.step-panel-details li {
  position: relative; padding-left: 28px;
  font-size: 15px; line-height: 1.6;
}
.step-panel-details li::before {
  content: "✓"; position: absolute; left: 0;
  font-weight: 700;
}

/* --- 图库块 Gallery style2: 文字叠加卡片 --- */
.gallery-style2 { max-width: 1000px; margin: 0 auto; }
.gallery-card-overlay {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.gallery-span-2 { grid-column: span 2; }
.gallery-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.22;
}
.gallery-card-content {
  position: relative; z-index: 2;
  text-align: center; padding: 32px 20px;
}
.gallery-card-title {
  font-size: 22px; font-weight: 700; color: var(--deep-blue);
  margin-bottom: 8px;
}
.gallery-card-desc {
  font-size: 14px; color: var(--text-secondary); margin: 0;
}
.gallery-card-link {
  position: absolute; inset: 0; z-index: 3;
}

/* --- 图库块 Gallery style3: 悬浮卡片 --- */
.gallery-style3 { grid-template-columns: repeat(3, 1fr); }
.gallery-style3 .gallery-hover-card { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; }
.gallery-hover-card {
  position: relative; display: block;
  border: 2px solid transparent;
  transition: all 0.3s var(--ease);
}
.gallery-hover-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-hover-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.gallery-hover-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92);
  opacity: 0; transition: opacity 0.35s var(--ease);
  padding: 16px;
}
.gallery-hover-card:hover .gallery-hover-content { opacity: 1; }
.gallery-hover-title {
  font-size: 17px; font-weight: 700; color: var(--deep-blue);
  margin-bottom: 6px; text-align: center;
}
.gallery-hover-desc {
  font-size: 13px; color: var(--vivid-orange); font-weight: 600;
}

/* --- 步骤说明块 Step style2: 垂直步骤 + 图片面板 --- */
.step-title { text-align: center !important; }
.step-desc-center { text-align: center; }
.step-style2-layout {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 40px; max-width: 1100px; margin: 0 auto;
  align-items: start;
}
.step-style2-list { display: flex; flex-direction: column; gap: 4px; }
.step-style2-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.3s var(--ease);
  border-left: 4px solid transparent;
  background: transparent;
}
.step-style2-item:hover { background: rgba(13,27,61,0.04); }
.step-style2-item.active {
  background: linear-gradient(135deg, rgba(220,89,13,0.08), rgba(255,176,0,0.06));
  border-left-color: var(--vivid-orange);
}
.step-style2-marker {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; flex-shrink: 0;
}
.step-style2-icon { font-size: 22px; line-height: 1; }
.step-style2-num {
  font-size: 11px; font-weight: 800; color: var(--vivid-orange);
  background: rgba(220,89,13,0.12); padding: 2px 7px;
  border-radius: 10px; letter-spacing: 0.5px;
}
.step-style2-info { min-width: 0; }
.step-style2-name {
  font-size: 15px; font-weight: 700; color: var(--deep-blue);
  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.step-style2-brief {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Right panel */
.step-style2-panel { position: relative; }
.step-style2-detail {
  display: none; animation: fadeIn 0.4s var(--ease);
}
.step-style2-detail.active { display: block; }
.step-style2-img {
  width: 100%; max-height: 300px; object-fit: cover;
  border-radius: var(--radius-lg); margin-bottom: 20px;
}
.step-style2-placeholder {
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-size: 48px; margin-bottom: 20px;
  color: var(--border-subtle);
}
.step-style2-dtitle {
  font-size: 22px; font-weight: 700; color: var(--deep-blue);
  margin-bottom: 10px;
}
.step-style2-ddesc {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 16px;
}
.step-style2-details {
  list-style: none; padding: 0; display: grid; gap: 10px;
}
.step-style2-details li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; background: var(--bg-soft);
  border-radius: var(--radius-sm); font-size: 14px;
  color: var(--text-secondary); line-height: 1.5;
}
.step-style2-check { color: var(--vivid-orange); font-weight: 700; flex-shrink: 0; }

/* --- 团队介绍块 Team --- */
.team { background: var(--bg-muted); }
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 1100px; margin: 0 auto;
}
.team-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px 20px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-subtle);
  transition: all 0.3s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.team-avatar {
  width: 80px; height: 80px; margin: 0 auto 16px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--bg-soft);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--vivid-orange), var(--vivid-yellow));
  color: #fff; font-size: 32px; font-weight: 700;
}
.team-name { font-size: 18px; font-weight: 700; color: var(--deep-blue); margin-bottom: 4px; }
.team-title { font-size: 13px; color: var(--vivid-orange); font-weight: 600; margin-bottom: 12px; }
.team-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.team-socials { display: flex; justify-content: center; gap: 8px; }
.team-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-soft); color: var(--text-secondary);
  transition: all 0.25s var(--ease);
}
.team-social-link:hover { background: var(--vivid-orange); color: #fff; transform: scale(1.15); }
.team-social-icon { font-size: 16px; }

/* --- Logo墙 LogoWall --- */
.logowall { background: var(--bg-muted); }
.logowall-track {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.logowall-row {
  display: flex; width: max-content; gap: 24px;
  padding: 16px 0;
}
.logowall-logo {
  height: 48px; width: auto;
  object-fit: contain; filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.logowall-logo:hover {
  filter: grayscale(0%) opacity(1); transform: scale(1.1);
}
/* Forward infinite scroll */
.logowall-row-forward { animation: scrollForward 35s linear infinite; }
/* Backward infinite scroll (reverse direction) */
.logowall-row-backward { animation: scrollBackward 40s linear infinite; }

@keyframes scrollForward {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes scrollBackward {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Pause on hover */
.logowall-track:hover .logowall-row { animation-play-state: paused; }

/* ============================================================
   v5.6.0 博客文章块 Blog
   ============================================================ */
.blog { background: var(--bg-muted); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.blog-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.blog-card:hover .blog-card-cover img { transform: scale(1.06); }
.blog-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-card-categories {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
}
.blog-category-tag {
  font-size: 12px; font-weight: 600;
  color: var(--vivid-orange);
  background: rgba(220,89,13,0.08);
  padding: 3px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.blog-category-tag:hover { background: var(--vivid-orange); color: #fff; }
.blog-card-title {
  font-size: 18px; font-weight: 700; color: var(--deep-blue);
  line-height: 1.4; margin-bottom: 8px;
}
.blog-card-title a {
  color: inherit; text-decoration: none;
  transition: color 0.2s var(--ease);
}
.blog-card-title a:hover { color: var(--vivid-orange); }
.blog-card-excerpt {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1;
}
.blog-card-meta {
  display: flex; align-items: center; gap: 16px;
  padding-top: 12px; border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}
.blog-meta-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--text-muted);
}
.blog-meta-item svg { opacity: 0.6; }
.blog-read-more {
  margin-left: auto;
  font-size: 14px; font-weight: 600;
  color: var(--vivid-orange);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.blog-read-more:hover { color: var(--deep-blue); transform: translateX(2px); }
.blog-more-link {
  text-align: center; margin-top: 36px;
}
.blog-more-link a {
  display: inline-block;
  font-size: 16px; font-weight: 600;
  color: var(--vivid-orange);
  text-decoration: none;
  padding: 10px 24px;
  border: 2px solid var(--vivid-orange);
  border-radius: 50px;
  transition: all 0.3s var(--ease);
}
.blog-more-link a:hover {
  background: var(--vivid-orange); color: #fff;
}

/* ============================================================
   响应式
   ============================================================ */
/* 图库灯箱 */
.gallery-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; }
.gallery-lightbox.open { display: block; }
.gallery-lightbox-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.92); }
.gallery-lightbox-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gallery-lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; box-shadow: 0 4px 40px rgba(0,0,0,0.5); }
.gallery-lightbox-close { position: absolute; top: 16px; right: 24px; background: none; border: none; color: #fff; font-size: 40px; cursor: pointer; opacity: 0.7; line-height: 1; }
.gallery-lightbox-close:hover { opacity: 1; }
.gallery-lightbox-prev, .gallery-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: none; color: #fff; font-size: 36px; padding: 12px 16px; cursor: pointer; opacity: 0.6; transition: opacity 0.2s; border-radius: 4px; }
.gallery-lightbox-prev:hover, .gallery-lightbox-next:hover { opacity: 1; }
.gallery-lightbox-prev { left: 16px; }
.gallery-lightbox-next { right: 16px; }
@media (max-width: 768px) {
  .gallery-lightbox-prev, .gallery-lightbox-next { font-size: 28px; padding: 8px 10px; }
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .step-container { padding: 0 20px; }
  .step-style2-layout { grid-template-columns: 1fr; gap: 24px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .gallery-item:nth-child(3n + 1) { grid-column: span 1; }
  .gallery-grid .gallery-item:nth-child(odd) { grid-column: span 2; }
  /* gallery style2 mobile */
  .gallery-card-overlay { min-height: 150px; }
  .gallery-span-2 { grid-column: span 1; }
  .gallery-card-title { font-size: 18px; }
  /* gallery style3 mobile */
  .gallery-style3 { grid-template-columns: repeat(2, 1fr); }
  /* step style2 mobile */
  .step-style2-layout { grid-template-columns: 1fr; }
  .step-style2-list { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 8px; }
  .step-style2-item { flex-shrink: 0; padding: 10px 14px; min-width: 160px; }
  .step-style2-name { white-space: normal; font-size: 14px; }
  .step-style2-brief { display: none; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; }
  .logowall-logo { height: 36px; }
  .blog-grid { grid-template-columns: 1fr; }
  /* 移动端博客卡片：左图右文，进一步压缩高度 */
  .blog-card { flex-direction: row; min-height: 0; gap: 0; }
  .blog-card-cover { width: 80px; min-width: 80px; height: auto; aspect-ratio: 3/4; }
  .blog-card-body { padding: 8px 10px; }
  .blog-card-title {
    font-size: 14px; margin-bottom: 4px; line-height: 1.4;
    position: relative;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* 标题结尾遮罩：模拟被盖住的效果 */
  .blog-card-title::after {
    content: "";
    position: absolute; right: 0; bottom: 0;
    width: 40%; height: 1.4em;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
  }
  .blog-card-excerpt { -webkit-line-clamp: 1; font-size: 12px; margin-bottom: 6px; }
  .blog-card-meta { padding-top: 6px; gap: 8px; flex-wrap: wrap; }
  .blog-meta-item { font-size: 11px; }
  .blog-read-more { font-size: 12px; }

  /* === 步骤说明块移动端三块布局 === */
  .step-container {
    display: grid;
    grid-template-columns: 1fr 76px;
    gap: 12px;
    align-items: start;
    padding: 0 16px;
  }
  /* 按钮列移到右侧，竖向排列 */
  .step-tabs {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
    position: sticky;
    top: 12px;
  }
  /* 隐藏按钮间箭头 */
  .step-tab-arrow { display: none; }
  /* 按钮竖向适配：紧凑 + 圆角统一 12px */
  .step-tab {
    padding: 8px 4px;
    font-size: 11px;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    width: 100%;
    border-radius: var(--radius-md);
    border-width: 1px;
  }
  .step-tab-icon { font-size: 16px; }
  .step-tab-text { font-size: 10px; }
  /* 内容面板移到左侧 */
  .step-panels {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
  }
  /* 步骤标题/描述/要点统一左对齐 */
  .step-panel-title { text-align: left; }
  .step-panel-desc { text-align: left; margin-left: 0; margin-right: 0; }
  .step-panel-details { margin-left: 0; margin-right: 0; }
}
