/* ============================================
   摩托智讯建站 - 全站主样式
   配色：浅金 + 奶白 + 浅灰
   风格：眼霜精致风 / 卡片悬浮阴影
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
    /* 浅金色系 */
    --gold-primary: #C9A96E;
    --gold-light: #D4B87A;
    --gold-dark: #B8944F;
    --gold-pale: #E8DCC8;
    --gold-bg: #FAF6EF;

    /* 奶白色系 */
    --cream-primary: #FAF8F5;
    --cream-light: #FDFCFA;
    --cream-dark: #F0EBE3;
    --cream-warm: #F7F3EC;

    /* 浅灰色系 */
    --gray-text: #2D2D2D;
    --gray-sub: #5C5C5C;
    --gray-mute: #8A8A8A;
    --gray-light: #B5B5B5;
    --gray-border: #E5E0D8;
    --gray-bg: #F7F5F2;
    --gray-card: #FFFFFF;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(45, 45, 45, 0.04);
    --shadow-md: 0 8px 24px rgba(45, 45, 45, 0.06);
    --shadow-lg: 0 16px 48px rgba(45, 45, 45, 0.08);
    --shadow-gold: 0 8px 32px rgba(201, 169, 110, 0.18);
    --shadow-hover: 0 20px 56px rgba(45, 45, 45, 0.10);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* 字体 */
    --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;

    /* 过渡 */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* 布局 */
    --container-max: 1240px;
    --nav-height: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.75;
    color: var(--gray-text);
    background: var(--cream-primary);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-primary);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.35;
    color: var(--gray-text);
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ---------- 通用容器 ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 960px;
}

/* ---------- 滚动渐入动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- 顶部导航栏 ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--gray-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-logo-text .brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-text);
    letter-spacing: 0.5px;
}

.site-logo-text .brand-sub {
    font-size: 11px;
    color: var(--gold-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 主导航 */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav > li {
    position: relative;
}

.main-nav > li > a {
    display: block;
    padding: 8px 16px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--gray-sub);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.main-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 2px;
    transition: width var(--transition-fast);
}

.main-nav > li > a:hover,
.main-nav > li.active > a {
    color: var(--gold-dark);
}

.main-nav > li > a:hover::after,
.main-nav > li.active > a::after {
    width: 20px;
}

/* 下拉菜单 */
.main-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    min-width: 200px;
    background: var(--gray-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-border);
}

.main-nav > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-nav .dropdown a {
    display: block;
    padding: 9px 20px;
    font-size: 14px;
    color: var(--gray-sub);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.main-nav .dropdown a:hover {
    background: var(--gold-bg);
    color: var(--gold-dark);
    padding-left: 24px;
}

/* 头部右侧操作区 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-sub);
}

.header-phone .phone-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
}

.header-phone .phone-number {
    font-weight: 600;
    color: var(--gray-text);
    font-size: 15px;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--gold-bg);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 移动端导航遮罩 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(45, 45, 45, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-nav-overlay.active {
    opacity: 1;
}

/* ---------- 通用按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14.5px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    color: #fff;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(201, 169, 110, 0.30);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--gold-dark);
    border: 1.5px solid var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--cream-dark);
    color: var(--gray-sub);
}

.btn-ghost:hover {
    background: var(--gold-bg);
    color: var(--gold-dark);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 15.5px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 90px 0;
}

.section-sm {
    padding: 60px 0;
}

.section-bg {
    background: var(--cream-warm);
}

.section-bg-alt {
    background: var(--gray-card);
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header.left {
    text-align: left;
}

.section-eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 14px;
    position: relative;
    padding: 0 28px;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--gold-pale);
}

.section-eyebrow::before { left: 0; }
.section-eyebrow::after { right: 0; }

.section-header.left .section-eyebrow {
    padding-left: 0;
}

.section-header.left .section-eyebrow::before {
    display: none;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 15.5px;
    color: var(--gray-mute);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-header.left .section-desc {
    margin-left: 0;
}

/* ---------- 卡片通用 ---------- */
.card {
    background: var(--gray-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
    border: 1px solid var(--gray-border);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
    border-color: var(--gold-pale);
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: #2A2825;
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-brand .footer-logo img {
    height: 36px;
}

.footer-brand .footer-logo .brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--gold-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-col ul li a:hover::before {
    opacity: 1;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.footer-contact-item .contact-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(201, 169, 110, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    flex-shrink: 0;
}

.footer-contact-item .contact-text {
    font-size: 13.5px;
    line-height: 1.6;
}

.footer-contact-item .contact-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-bottom: 2px;
}

.footer-contact-item .contact-value {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .footer-links {
    display: flex;
    gap: 20px;
}

.footer-bottom .footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .footer-links a:hover {
    color: var(--gold-light);
}

/* ---------- 页面横幅（内页通用） ---------- */
.page-hero {
    padding: calc(var(--nav-height) + 60px) 0 70px;
    background: linear-gradient(135deg, var(--cream-warm) 0%, var(--gold-bg) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.08) 0%, transparent 70%);
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--gray-mute);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--gray-sub);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--gold-primary);
}

.breadcrumb .separator {
    color: var(--gray-light);
}

.breadcrumb .current {
    color: var(--gold-dark);
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--gray-text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.page-hero .hero-desc {
    font-size: 16px;
    color: var(--gray-sub);
    max-width: 640px;
    line-height: 1.8;
}

/* ---------- 标签/徽章 ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 100px;
    background: var(--gold-bg);
    color: var(--gold-dark);
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--gold-pale);
    color: var(--gold-dark);
}

/* ---------- 表单 ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-sub);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14.5px;
    color: var(--gray-text);
    background: var(--cream-light);
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--gold-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.form-control::placeholder {
    color: var(--gray-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    color: var(--gray-sub);
    background: var(--gray-card);
    border: 1px solid var(--gray-border);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    border-color: var(--gold-primary);
    color: var(--gold-dark);
}

.pagination .current {
    background: var(--gold-primary);
    color: #fff;
    border-color: var(--gold-primary);
}

/* ---------- 回到顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gray-card);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition-base);
    z-index: 900;
    border: 1px solid var(--gray-border);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .section-title {
        font-size: 30px;
    }

    .page-hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .section {
        padding: 60px 0;
    }

    .main-nav,
    .header-phone {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* 移动端导航面板 */
    .main-nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--gray-card);
        padding: 16px 24px 24px;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        gap: 0;
    }

    .main-nav.mobile-open > li {
        width: 100%;
        border-bottom: 1px solid var(--gray-border);
    }

    .main-nav.mobile-open > li:last-child {
        border-bottom: none;
    }

    .main-nav.mobile-open > li > a {
        padding: 14px 0;
        font-size: 15px;
    }

    .main-nav.mobile-open > li > a::after {
        display: none;
    }

    .main-nav.mobile-open .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0 0 12px 16px;
        min-width: auto;
    }

    .main-nav.mobile-open .dropdown a {
        padding: 8px 0;
        white-space: normal;
    }

    .mobile-nav-overlay.active {
        display: block;
    }

    .section-title {
        font-size: 26px;
    }

    .page-hero {
        padding: calc(var(--nav-height) + 40px) 0 50px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .header-actions .btn {
        display: none;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 10px 22px;
        font-size: 14px;
    }

    .section-title {
        font-size: 23px;
    }
}
