/* ============================================================
   Jingchu315 公共样式表
   所有页面共享的基础样式 + 动画系统
   由 css/style.css 统一管理，利用浏览器缓存
   ============================================================ */

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand colors */
    --color-bg: #ffffff;
    --color-text: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-accent: #0071E3;
    --color-border: #d2d2d7;
    --color-card-bg: #f5f5f7;
    --color-footer-bg: #f5f5f7;
    --max-width: 980px;
    --nav-height: 84px;
    --color-orange: #0071E3;
    --color-deep-blue: #1a56db;
    --color-brand-orange: #E86C2C;

    /* Animation durations */
    --anim-fast:   200ms;
    --anim-normal: 300ms;
    --anim-slow:   600ms;
    --anim-extra:  800ms;

    /* Easings */
    --ease-out:   cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-in:    cubic-bezier(0.42, 0, 1, 1);
    --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadow levels */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);

    /* Glow */
    --glow-accent: 0 0 0 3px rgba(0, 113, 227, 0.25);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei",
        "Noto Sans SC", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 17px;
}

.jingchu {
    color: #000000;
    font-weight: 700;
}

img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}

/* ===== Container ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 22px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: #ffffff;
    z-index: 100;
    border-bottom: 1px solid #e8e8ed;
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Brand Block: Logo + Name + English */
.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    flex-shrink: 0;
}

.nav-logo {
    height: 74px;
    width: auto;
    display: block;
    transition: transform 0.3s var(--ease-spring);
}

.nav-brand:hover .nav-logo {
    transform: scale(1.06);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 200px;
}

.nav-brand-name {
    font-size: 34px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.5px;
    line-height: 1.2;
    font-family: "PingFang SC", "Source Han Sans SC", sans-serif;
}

.nav-brand-tagline {
    font-size: 13px;
    font-weight: 500;
    color: #94A3B8;
    letter-spacing: 0.02em;
    line-height: 1.2;
    font-family: "PingFang SC", "Source Han Sans SC", sans-serif;
}

/* Navigation Links */
.nav-center {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: block;
    padding: 8px 12px;
    color: var(--color-text-secondary);
    transition: color 0.2s;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--color-orange);
}

/* Dropdown Menu */
.nav-links .has-dropdown {
    position: relative;
}

.nav-links .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    transform: translateX(-50%) translateY(4px);
    z-index: 100;
}

.nav-links .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-links .dropdown a {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-secondary);
    display: block;
    transition: background 0.15s, color 0.15s;
}

.nav-links .dropdown a:hover {
    background: #f5f5f7;
    color: var(--color-orange);
}

.nav-links .has-dropdown > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.6;
}

.nav-links .active > a,
.nav-links .active a {
    color: var(--color-orange);
    font-weight: 600;
}

/* CTA Button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: var(--color-orange);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    margin-left: 8px;
}

.nav-cta:hover {
    background: #0077ED;
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-cta:active {
    transform: translateY(0);
}

/* ===== WeChat QR ===== */
.wechat-section {
    margin-top: 60px;
    text-align: center;
}

.wechat-qr {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.wechat-label {
    margin-top: 12px;
    font-size: 17px;
    color: var(--color-text-secondary);
}

/* ===== Sections ===== */
section {
    padding: 120px 0 100px;
}

.section-label {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    text-align: center;
}

.section-title {
    font-size: 60px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 27px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

#contact .section-title {
    color: var(--color-accent);
}

#about .section-title {
    color: var(--color-accent);
}
#about .section-title .jingchu {
    color: inherit;
}

#about .stat-number {
    color: var(--color-accent);
}

.text-accent {
    color: var(--color-accent);
}

@media (max-width: 734px) {
    section {
        padding: 72px 0 56px;
    }
    .section-title {
        font-size: 40px;
    }
    .section-subtitle {
        font-size: 21px;
    }
    .about-content {
        font-size: 19px;
        line-height: 1.7;
    }
    .stat-number {
        font-size: 40px;
    }
    .stat-label {
        font-size: 15px;
    }
    .about-stats {
        gap: 40px;
        margin-top: 36px;
    }
}

/* ===== Hero ===== */
.hero {
    padding: 220px 0 140px;
    text-align: center;
    overflow: hidden;
}

.hero-title {
    font-size: 84px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "PingFang SC", "Segoe UI", system-ui, sans-serif;
}

.hero-subtitle {
    font-size: 28px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
}

.hero-cta {
    display: inline-block;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--color-orange);
    border-radius: 980px;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
}
.hero-cta:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.trust-bar {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-top: 36px;
    padding: 6px;
    background: #F7F9FC;
    border-radius: 980px;
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.trust-bar:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.trust-bar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--color-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 980px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}
.trust-bar-cta:hover {
    background: #005bb5;
    transform: scale(1.02);
}
.trust-bar-divider {
    width: 1px;
    height: 28px;
    background: #d0d5dd;
    margin: 0 20px;
    flex-shrink: 0;
}
.trust-bar-stats {
    display: flex;
    align-items: center;
    gap: 0;
}
.trust-stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 0 20px;
    white-space: nowrap;
}
.trust-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    transition: color 0.2s;
}
.trust-bar:hover .trust-stat-num {
    color: var(--color-accent);
}
.trust-stat-label {
    font-size: 14px;
    color: #86868b;
    font-weight: 400;
}
.trust-bar-divider-sm {
    width: 1px;
    height: 20px;
    background: #d0d5dd;
    flex-shrink: 0;
}

@media (max-width: 734px) {
    .hero {
        padding: 180px 0 80px;
    }
    .hero-title {
        font-size: 50px;
        line-height: 1.15;
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "PingFang SC", "Segoe UI", system-ui, sans-serif;
    }
    .hero-subtitle {
        font-size: 22px;
    }
    .trust-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 8px;
    }
    .trust-bar-divider {
        display: none;
    }
    .trust-bar-cta {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }
    .trust-bar-stats {
        width: 100%;
        justify-content: center;
    }
    .trust-stat {
        padding: 0 14px;
    }
    .trust-stat-num {
        font-size: 20px;
    }
    .trust-stat-label {
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .hero {
        padding: 120px 0 64px;
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .trust-bar {
        margin-top: 28px;
        padding: 6px;
        border-radius: 16px;
    }
    .trust-bar-cta {
        padding: 12px 20px;
        font-size: 14px;
    }
    .trust-stat {
        padding: 8px 12px 0;
    }
    .trust-stat-num {
        font-size: 18px;
    }
    .trust-stat-label {
        font-size: 12px;
    }
    .trust-bar-divider-sm {
        height: 16px;
    }
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 64px;
}

.service-card {
    display: block;
    background: var(--color-card-bg);
    border-radius: 18px;
    padding: 40px 28px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    background: #eaeaea;
    transform: translateY(-2px);
}

.card-link-text {
    display: inline-block;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-accent);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover .card-link-text {
    opacity: 1;
    transform: translateY(0);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
}

.service-card h3 {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (max-width: 734px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 40px;
    }
}

@media (min-width: 735px) and (max-width: 1068px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Process ===== */
#process {
    background: var(--color-card-bg);
}

/* ===== About ===== */
.about-content {
    max-width: 720px;
    margin: 48px auto 0;
    font-size: 25px;
    line-height: 1.8;
    color: var(--color-text);
    text-align: center;
}

.about-content strong {
    font-weight: 600;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

/* ===== Contact Form ===== */
#consult {
    background: var(--color-card-bg);
}

.consult-form-wrapper {
    max-width: 640px;
    margin: 48px auto 0;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group-half {
    flex: 1;
    min-width: 0;
}

.required {
    color: #DC2626;
}

.char-count {
    text-align: right;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ===== Contact mobile ===== */
@media (max-width: 734px) {
    .contact-grid {
        gap: 40px;
        margin-top: 36px;
    }
    .contact-item .value {
        font-size: 20px;
    }
    .contact-item .address-detail {
        font-size: 17px;
    }
    .wechat-qr {
        width: 150px;
        height: 150px;
    }
}

/* ===== Contact ===== */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    max-width: 320px;
}

.contact-item .icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--color-card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}

.contact-item h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contact-item .value {
    font-size: 24px;
    font-weight: 500;
}

.contact-item .value a {
    color: var(--color-text);
    transition: opacity 0.2s;
}
.contact-item .value a:hover {
    opacity: 0.6;
}

.contact-item .address-detail {
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-footer-bg);
    padding: 48px 0 32px;
    font-size: 15px;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}
.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 8px;
}
.footer-col li.footer-address {
    padding-left: 3em;
    text-indent: -3em;
    line-height: 1.6;
}
.footer-col a {
    color: var(--color-text-secondary);
    transition: color 0.2s;
}
.footer-col a:hover {
    color: var(--color-accent);
}
.footer-disclaimer {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--color-text-secondary, #999);
    text-align: center;
}
.footer-disclaimer p {
    margin: 0;
}
.footer-disclaimer p + p {
    margin-top: 6px;
}
.footer-bottom {
    text-align: center;
    padding-top: 0;
    border-top: none;
    font-size: 0;
    height: 0;
    overflow: hidden;
}
@media (max-width: 734px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===== Footer Links - 政务卡片系统 ===== */
.footer-links-section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border, #E2E8F0);
}
.footer-links-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.footer-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}
.footer-link-card:hover {
    background: #1677FF;
    border-color: #1677FF;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 119, 255, 0.15);
}
.footer-link-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 119, 255, 0.08);
    border-radius: 8px;
}
.footer-link-card:hover .footer-link-icon {
    background: rgba(255, 255, 255, 0.15);
}
.footer-link-name {
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 734px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .footer-link-card {
        padding: 12px 14px;
    }
    .footer-link-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}
@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== District Grid (区域链接) ===== */
.district-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}

.district-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    background: var(--color-card-bg, #f5f5f7);
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text, #1d1d1f);
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        background var(--anim-normal) var(--ease-out),
        border-color var(--anim-normal) var(--ease-out),
        transform var(--anim-normal) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.district-btn:hover {
    background: #e8e8ed;
    border-color: rgba(0, 113, 227, 0.15);
    transform: translateY(-1px);
}

.district-icon {
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 734px) {
    .district-grid {
        gap: 8px;
        margin-top: 32px;
    }
    .district-btn {
        padding: 14px 14px;
        font-size: 13px;
    }
}

/* ===== Mobile nav toggle (base) ===== */
@media (max-width: 480px) {
    .nav-links {
        gap: 16px;
    }
}

/* ===== Separator ===== */
.section-sep {
    height: 1px;
    background: var(--color-border);
    max-width: 140px;
    margin: 0 auto 32px;
}

/* Animation system: keyframes and classes below.
   Design tokens (--anim-*, --ease-*, --shadow-*) are in :root block above. */


/* ==============================================
   1. Keyframe Animations
   ============================================== */

/* Fade-up (scroll reveal) */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scale-in (subtle) */
@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Count-up helper (for stat numbers) */
@keyframes count-glow {
  0%   { opacity: 1; }
  50%  { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Shimmer for section separators */
@keyframes shimmer {
  0%   { transform: scaleX(0.3); opacity: 0.5; }
  50%  { transform: scaleX(1);   opacity: 1; }
  100% { transform: scaleX(0.3); opacity: 0.5; }
}

/* Success checkmark draw */
@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

/* Back-to-top entrance */
@keyframes btt-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ==============================================
   2. Scroll-reveal classes (triggered by JS)
   ============================================== */

.anim-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--anim-slow) var(--ease-out),
              transform var(--anim-slow) var(--ease-out);
}

.anim-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Staggered delay helpers */
.anim-delay-1  { transition-delay: 100ms; }
.anim-delay-2  { transition-delay: 200ms; }
.anim-delay-3  { transition-delay: 300ms; }
.anim-delay-4  { transition-delay: 400ms; }
.anim-delay-5  { transition-delay: 500ms; }
.anim-delay-6  { transition-delay: 600ms; }


/* ==============================================
   3. Button Micro-interactions
   ============================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  transition:
    transform var(--anim-normal) var(--ease-spring),
    box-shadow var(--anim-normal) var(--ease-out),
    background var(--anim-normal) var(--ease-out),
    opacity var(--anim-normal) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

/* Primary CTA button */
.btn-primary {
  background: var(--color-accent, #0071E3);
  color: #fff;
  border-radius: 980px;
  padding: 18px 52px;
  font-size: 20px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-lg);
  background: #0077ED;
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-sm);
}

/* Secondary / outline button */
.btn-secondary {
  background: transparent;
  color: var(--color-accent, #0071E3);
  border: 1.5px solid var(--color-accent, #0071E3);
  border-radius: 980px;
  padding: 14px 36px;
  font-size: 17px;
  font-weight: 500;
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.06);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* Submit button in forms */
.btn-submit {
  background: var(--color-accent, #0071E3);
  color: #fff;
  border-radius: 12px;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.btn-submit:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
  background: #0077ED;
}

.btn-submit:active {
  transform: scale(0.97);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}


/* ==============================================
   4. Card Micro-interactions
   ============================================== */

.card {
  background: var(--color-card-bg, #f5f5f7);
  border-radius: 18px;
  padding: 40px 28px;
  border: 1px solid transparent;
  transition:
    transform var(--anim-normal) var(--ease-out),
    box-shadow var(--anim-normal) var(--ease-out),
    border-color var(--anim-normal) var(--ease-out),
    background var(--anim-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 113, 227, 0.15);
}

/* Service card specific enhancements */
.service-card {
  border: 1px solid transparent;
}

.service-card:hover .service-icon {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.service-icon {
  transition:
    transform var(--anim-normal) var(--ease-out),
    box-shadow var(--anim-normal) var(--ease-out);
}

/* Process step card */
.step-card {
  text-align: center;
  background: var(--color-card-bg, #f5f5f7);
  border-radius: 18px;
  padding: 36px 24px;
  border: 1px solid transparent;
  transition:
    transform var(--anim-normal) var(--ease-out),
    box-shadow var(--anim-normal) var(--ease-out),
    border-color var(--anim-normal) var(--ease-out);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 113, 227, 0.15);
}


/* ==============================================
   5. Image Micro-interactions
   ============================================== */

.img-hover {
  overflow: hidden;
  border-radius: 12px;
}

.img-hover img {
  transition:
    transform var(--anim-normal) var(--ease-out),
    filter var(--anim-normal) var(--ease-out);
  will-change: transform;
}

.img-hover:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* QR code image */
.wechat-qr {
  transition:
    transform var(--anim-normal) var(--ease-out),
    box-shadow var(--anim-normal) var(--ease-out);
}

.wechat-qr:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}


/* ==============================================
   6. Navigation Scroll Effect
   ============================================== */

.nav {
  transition:
    background var(--anim-slow) var(--ease-out),
    box-shadow var(--anim-slow) var(--ease-out);
}

.nav-scrolled {
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}


/* ==============================================
   7. Back-to-Top Button
   ============================================== */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border, #d2d2d7);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--anim-normal) var(--ease-out),
    visibility var(--anim-normal) var(--ease-out),
    transform var(--anim-normal) var(--ease-spring),
    box-shadow var(--anim-normal) var(--ease-out);
  color: var(--color-text, #1d1d1f);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: btt-enter var(--anim-normal) var(--ease-out) both;
}

.back-to-top:hover {
  transform: scale(1.12);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.98);
}

.back-to-top:active {
  transform: scale(0.95);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}


/* ==============================================
   8. Form Styles
   ============================================== */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary, #6e6e73);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 17px;
  font-family: inherit;
  border: 1.5px solid var(--color-border, #d2d2d7);
  border-radius: 12px;
  background: var(--color-bg, #fff);
  color: var(--color-text, #1d1d1f);
  outline: none;
  transition:
    border-color var(--anim-fast) var(--ease-out),
    box-shadow var(--anim-fast) var(--ease-out),
    background var(--anim-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent, #0071E3);
  box-shadow: var(--glow-accent);
  background: #fff;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #aeaeb2;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: scale-in var(--anim-slow) var(--ease-out) both;
}

.form-success.show {
  display: block;
}

.form-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #34C759;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.form-success h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text, #1d1d1f);
}

.form-success p {
  font-size: 17px;
  color: var(--color-text-secondary, #6e6e73);
}


/* ==============================================
   9. Stat Counter (triggered by JS)
   ============================================== */

.stat-number {
  transition: color var(--anim-normal) var(--ease-out);
}

.stat-number.counting {
  animation: count-glow 0.3s ease-out;
}


/* ==============================================
   10. Process Flow (服务流程)
   ============================================== */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
  position: relative;
  list-style: none;
  padding: 0;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step .step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent, #0071E3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
  transition:
    transform var(--anim-normal) var(--ease-spring),
    box-shadow var(--anim-normal) var(--ease-out);
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.15);
}

.process-step h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text, #1d1d1f);
}

.process-step p {
  font-size: 15px;
  color: var(--color-text-secondary, #6e6e73);
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
}

/* Arrow between steps (desktop) */
.process-arrow {
  display: none;
}

@media (min-width: 735px) {
  .process-arrow {
    display: block;
    position: absolute;
    top: 24px;
    color: var(--color-border, #d2d2d7);
    font-size: 24px;
    transform: translateX(-50%);
  }
}

@media (max-width: 734px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* ==============================================
   11. Mobile Hamburger Menu
   ============================================== */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text, #1d1d1f);
  border-radius: 2px;
  transition:
    transform var(--anim-normal) var(--ease-out),
    opacity var(--anim-fast) var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 600px) {
  .nav-toggle {
    display: flex;
  }

  .nav-brand-tagline {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height, 90px);
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid #e8e8ed;
    transform: translateY(-110%);
    opacity: 0;
    transition:
      transform var(--anim-normal) var(--ease-out),
      opacity var(--anim-normal) var(--ease-out);
    pointer-events: none;
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-secondary, #6e6e73);
    border-radius: 0;
  }

  .nav-links a:hover {
    color: var(--color-orange);
    background: rgba(0, 113, 227, 0.04);
  }

  .nav-links .active > a,
  .nav-links .active a {
    color: var(--color-orange);
  }

  .nav-cta {
    margin: 12px 0 4px;
    width: calc(100% - 48px);
    max-width: 320px;
    padding: 14px 28px;
    font-size: 16px;
  }
}


/* ==============================================
   12. Section Separator Animation
   ============================================== */

.section-sep {
  transform-origin: center;
}

.section-sep.anim-visible {
  animation: shimmer var(--anim-slow) var(--ease-out) both;
}


/* ==============================================
   13. Reduced Motion Preference
   ============================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .anim-hidden {
    opacity: 1 !important;
    transform: none !important;
  }

  .card:hover,
  .service-card:hover,
  .step-card:hover {
    transform: none !important;
  }

  .btn:hover {
    transform: none !important;
  }
}


/* ==============================================
   14. Misc Utilities
   ============================================== */

/* Smooth section anchor offset (account for fixed nav) */
.scroll-offset {
  scroll-margin-top: 80px;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-accent, #0071E3);
  outline-offset: 2px;
}

/* Form error state */
.form-error {
  display: none;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 15px;
  color: #DC2626;
  line-height: 1.6;
  animation: fade-in var(--anim-fast) var(--ease-out) both;
}

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

/* Loading shimmer (for placeholder) */
@keyframes loading-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.loading-pulse {
  animation: loading-pulse 1.5s ease-in-out infinite;
}

/* ==============================================
   12. Blog Highlights Section (Homepage)
   ============================================== */

#blog-highlights {
  background: var(--color-bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.blog-card {
  display: block;
  background: var(--color-card-bg, #f5f5f7);
  border-radius: 18px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: transform var(--anim-normal) var(--ease-out),
              box-shadow var(--anim-normal) var(--ease-out),
              border-color var(--anim-normal) var(--ease-out),
              background var(--anim-normal) var(--ease-out);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 113, 227, 0.15);
  background: #eaeaea;
}

.blog-card-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(0, 113, 227, 0.08);
  border-radius: 980px;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.blog-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--color-text);
}

.blog-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-card-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-card:hover .blog-card-more {
  opacity: 1;
  transform: translateX(0);
}

.blog-more-link {
  text-align: center;
  margin-top: 36px;
}

.blog-more-link .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-accent);
  background: transparent;
  border: 1.5px solid var(--color-accent);
  border-radius: 980px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.blog-more-link .btn-secondary:hover {
  background: rgba(0, 113, 227, 0.06);
  transform: translateY(-2px);
}

@media (max-width: 734px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blog-card {
    padding: 24px 20px;
  }

  .blog-card h3 {
    font-size: 18px;
  }

  .blog-card p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .blog-card-tag {
    font-size: 11px;
    padding: 3px 10px;
  }
}

/* ===== 电话链接触摸目标优化 ===== */
a[href^="tel:"] {
  display: inline-block;
  padding: 10px 0;
  min-height: 44px;
  min-width: 44px;
  line-height: 1.2;
}
