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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --accent: #8b5cf6;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 24px rgba(0,0,0,.06);
    --radius: 12px;
    --transition: .25s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    gap: 8px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, .35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-light {
    background: #fff;
    color: var(--primary);
    border: none;
}

.btn-light:hover {
    background: var(--bg-alt);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,255,255,.3);
}

/* === Header === */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 20px;
}

.logo:hover {
    color: var(--primary);
}

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text {
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 4px 0;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* === Hero === */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 50%, #f5f3ff 100%);
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.25;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    width: 300px;
    height: 300px;
    animation: float 6s ease-in-out infinite;
}

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

/* === Section Common === */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text);
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    font-size: 17px;
    margin-bottom: 56px;
}

/* === Services === */
.services {
    background: var(--bg);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* === Features === */
.features {
    background: var(--bg-alt);
}

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

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.feature-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 15px;
    color: var(--text-light);
}

/* === CTA === */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    text-align: center;
    padding: 72px 0;
}

.cta h2 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 12px;
}

.cta p {
    color: rgba(255,255,255,.85);
    font-size: 17px;
    margin-bottom: 32px;
}

/* === Footer === */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 56px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: #fff;
}

.footer-small {
    font-size: 13px;
    color: #64748b;
    margin-top: 12px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.footer-bottom a {
    color: #64748b;
}

.footer-bottom a:hover {
    color: #94a3b8;
}

/* === Page Header (Sub pages) === */
.page-header {
    background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 100%);
    padding: 64px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 17px;
    color: var(--text-light);
    margin-top: 12px;
}

/* === About Page === */
.about-section {
    padding: 64px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 28px;
    margin: 40px 0 16px;
    color: var(--text);
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.about-content ul li {
    font-size: 16px;
    color: var(--text-light);
    line-height: 2;
}

/* === Services Page === */
.services-detail {
    padding: 64px 0;
}

.service-detail-card {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.service-detail-card:last-child {
    border-bottom: none;
}

.service-detail-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.service-detail-icon svg {
    width: 32px;
    height: 32px;
}

.service-detail-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.service-detail-info p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
}

.service-detail-info ul {
    margin: 12px 0;
    padding-left: 20px;
}

.service-detail-info ul li {
    font-size: 15px;
    color: var(--text-light);
    line-height: 2;
}

/* === Contact Page === */
.contact-section {
    padding: 64px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 15px;
    color: var(--text-light);
}

.contact-card a {
    font-weight: 500;
}

/* === Policy / Terms Pages === */
.policy-section {
    padding: 64px 0;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h2 {
    font-size: 22px;
    margin: 32px 0 12px;
    color: var(--text);
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 12px;
}

.policy-content ul {
    margin: 8px 0 16px;
    padding-left: 24px;
}

.policy-content ul li {
    font-size: 15px;
    color: var(--text-light);
    line-height: 2;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
    }
    .hero-icon {
        width: 200px;
        height: 200px;
    }
    .hero-title {
        font-size: 36px;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 28px;
    }
    .nav {
        display: none;
    }
    .hero {
        padding: 48px 0 64px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 28px;
    }
    .page-header h1 {
        font-size: 32px;
    }
    .service-detail-card {
        flex-direction: column;
        gap: 20px;
    }
}
