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

:root {
    --primary: #1a56db;
    --primary-dark: #1442ab;
    --primary-light: #e8effe;
    --secondary: #0e7490;
    --dark: #111827;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --accent: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 14px;
    background: var(--primary-light);
    border-radius: 20px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-header p {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
    height: 68px;
    display: flex;
    align-items: center;
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon { font-size: 26px; }
.logo-img {
    height: 42px;
    width: auto;
    border-radius: 4px;
    display: block;
}
.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.25s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s;
}

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

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

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 16px 20px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.mobile-menu.open { display: flex; }

.mobile-link {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.mobile-link:hover,
.mobile-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0e7490 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26,86,219,0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(14,116,144,0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 80%, rgba(26,86,219,0.2) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content .hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 8px;
    line-height: 1.8;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-domain {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}

/* Stats Row */
.hero-bottom {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 60px;
    padding: 40px 0 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(to right, rgba(255,255,255,0.06), rgba(255,255,255,0.1), rgba(255,255,255,0.06));
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 0;
}

.stat-item {
    flex: 1;
    max-width: 260px;
    text-align: center;
    padding: 20px 24px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.stat-item:last-child { border-right: none; }

.stat-num {
    font-size: 40px;
    font-weight: 800;
    font-family: 'Arial', sans-serif;
    color: var(--white);
    line-height: 1;
}

.stat-suffix {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,86,219,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%);
    text-align: center;
    color: var(--white);
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--white); }

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

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.35s;
    transform-origin: left;
}

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

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

.service-icon { font-size: 42px; margin-bottom: 20px; }

.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.75;
}

/* ===== WHY SECTION ===== */
.why-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4ff 100%);
}

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

.why-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid transparent;
}

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

.why-num {
    font-size: 42px;
    font-weight: 800;
    font-family: 'Arial', sans-serif;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-item h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.why-item p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    position: relative;
    transition: all 0.3s;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.quote-icon {
    font-size: 60px;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: -16px;
}

.testimonial-card > p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.testimonial-author > div > strong {
    display: block;
    font-size: 14px;
    color: var(--dark);
}

.testimonial-author > div > span {
    font-size: 12px;
    color: var(--gray-500);
}

/* ===== ABOUT / TEXT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.about-text p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text .btn { margin-top: 12px; }

.about-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
}

/* Timeline */
.timeline {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.timeline-item .year {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--primary-light); }

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    gap: 16px;
    transition: background 0.2s;
}

.faq-question:hover { background: var(--gray-100); }

.faq-question .icon {
    flex-shrink: 0;
    font-size: 18px;
    transition: transform 0.3s;
    color: var(--primary);
}

.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 24px 18px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.8;
    padding-top: 4px;
}

/* ===== CONTACT ===== */
.contact-section {
    background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ci-icon {
    font-size: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}

.wechat-item { background: #f8fafc; border-radius: 8px; padding: 16px; }
.contact-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== FORMS ===== */
.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.required { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: inherit;
    color: var(--dark);
    background: var(--white);
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.field-error {
    display: block;
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    min-height: 16px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 4px;
}

.form-success {
    display: none;
    margin-top: 16px;
    padding: 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
    color: #065f46;
    font-size: 14px;
    text-align: center;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0e7490 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.cta-banner .btn-primary:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
}

/* ===== FOOTER ===== */
.footer {
    background: #0f172a;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    max-width: 340px;
}

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

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

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

.footer-col a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.25s;
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom p { color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 998;
}

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

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-img { height: 260px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .hero { min-height: 90vh; padding-top: 90px; }
    .hero-content h1 { font-size: 30px; }
    .hero-content .hero-desc { font-size: 15px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .stats-row { flex-wrap: wrap; }
    .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 26px; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .footer-top { gap: 28px; }
    .footer-links { gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    .page-hero h1 { font-size: 28px; }
    .cta-banner h2 { font-size: 26px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 26px; }
    .why-grid { grid-template-columns: 1fr; }
    .stat-num { font-size: 32px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
