/* ============================================
   宸芯网络 - 品牌官网样式表
   清新护眼 · 青绿色调 · 明亮留白
   ============================================ */

/* —— 设计变量 —— */
:root {
    /* 品牌色 — 青绿/薄荷色系，护眼清新 */
    --brand: #0d9488;          /* teal-600 主品牌色 */
    --brand-light: #14b8a6;    /* teal-500 */
    --brand-lighter: #ccfbf1;  /* teal-100 */
    --brand-lightest: #f0fdfa; /* teal-50 */
    --brand-dark: #0f766e;     /* teal-700 */
    --accent: #10b981;         /* emerald-500 辅助色 */
    --accent-light: #d1fae5;   /* emerald-100 */

    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafb;
    --bg-tertiary: #f1f5f4;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.82);

    /* 文字色 */
    --text-primary: #1a2e2c;
    --text-secondary: #4a5c5a;
    --text-muted: #8a9a98;

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
    --gradient-soft: linear-gradient(135deg, #ccfbf1 0%, #d1fae5 100%);

    /* 边框 */
    --border-color: #e5eded;
    --border-hover: #cbd5d3;

    /* 间距 */
    --section-padding: 96px 0;
    --container-max: 1180px;

    /* 圆角 */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* 阴影 — 柔和偏绿 */
    --shadow-xs: 0 1px 2px rgba(13, 148, 136, 0.04);
    --shadow-sm: 0 2px 8px rgba(13, 148, 136, 0.06);
    --shadow-md: 0 8px 24px rgba(13, 148, 136, 0.08);
    --shadow-lg: 0 16px 48px rgba(13, 148, 136, 0.1);
    --shadow-brand: 0 8px 24px rgba(13, 148, 136, 0.2);
}

/* —— 重置 —— */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* —— 容器 —— */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* —— 通用区块 —— */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
    padding: 6px 18px;
    background: var(--brand-lighter);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* —— 按钮 —— */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.3);
}

.btn-ghost {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* —— 导航栏 —— */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    box-shadow: var(--shadow-xs);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
}

.logo-icon { width: 32px; height: 32px; }
.logo-text { color: var(--text-primary); }

.nav-list {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* —— Hero 区域 —— */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(180deg, var(--brand-lightest) 0%, var(--bg-primary) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: float 10s ease-in-out infinite;
}

.hero-glow-1 { width: 500px; height: 500px; background: #5eead4; top: -150px; left: -100px; }
.hero-glow-2 { width: 400px; height: 400px; background: #6ee7b7; bottom: -100px; right: 5%; animation-delay: 3s; }
.hero-glow-3 { width: 300px; height: 300px; background: #99f6e4; top: 30%; right: -80px; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--brand-lighter);
    border: 1px solid #99f6e4;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--brand-dark);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 64px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-num {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.trust-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
}

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

/* —— 关于宸芯 —— */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text > p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

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

.value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-lighter);
    border-radius: var(--radius-md);
    color: var(--brand);
    transition: var(--transition);
}

.value-item:hover .value-icon {
    background: var(--brand);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-brand);
}

.value-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.value-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* 关于-视觉统计卡片 */
.about-visual {
    display: flex;
    justify-content: center;
}

.visual-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 440px;
}

.stat-card {
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-lighter);
    border-radius: var(--radius-md);
    color: var(--brand);
}

.stat-card-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.stat-card-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* —— 服务 —— */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-highlight {
    background: var(--gradient-soft);
    border-color: var(--brand-lighter);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: #fff;
}

.service-icon-1 { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.service-icon-2 { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.service-icon-3 { background: linear-gradient(135deg, #10b981, #22c55e); }
.service-icon-4 { background: linear-gradient(135deg, #14b8a6, #06b6d4); }
.service-icon-5 { background: linear-gradient(135deg, #0d9488, #10b981); }
.service-icon-6 { background: linear-gradient(135deg, #059669, #14b8a6); }

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 24px;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-lighter);
}

.service-features li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 4px;
    height: 7px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
}

/* —— 服务流程 —— */
.process {
    background: var(--bg-secondary);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    text-align: center;
    padding: 36px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    position: relative;
}

.process-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.process-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.process-step p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* —— FAQ —— */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-lighter);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    transition: var(--transition);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--brand);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--brand);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* —— 联系我们 —— */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-label {
    margin-bottom: 16px;
}

.contact-info .section-title {
    text-align: left;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.8;
    margin: 24px 0 36px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-method svg {
    flex-shrink: 0;
    color: var(--brand);
    width: 22px;
    height: 22px;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-light);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-feedback {
    margin-top: 16px;
    font-size: 0.88rem;
    text-align: center;
    min-height: 20px;
}

.form-feedback.success { color: #059669; }
.form-feedback.error { color: #dc2626; }

/* —— 页脚 —— */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a,
.footer-col li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--brand);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--brand);
}

/* —— 回到顶部 —— */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-brand);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--brand-dark);
    transform: translateY(-4px);
}

/* —— 滚动揭示动画 —— */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* —— 响应式 —— */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    :root { --section-padding: 64px 0; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-card);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active { right: 0; }

    .nav-list {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .nav-toggle { display: flex; z-index: 1001; }

    .hero-trust { flex-wrap: wrap; gap: 20px; }
    .trust-divider { display: none; }

    .about-values { grid-template-columns: 1fr; gap: 20px; }
    .visual-stats { grid-template-columns: 1fr 1fr; }

    .services-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 28px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .visual-stats { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
}

/* —— 无障碍 —— */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

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