/* ===================================================
   海南省海发融资担保有限公司 — Premium Design System
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('reset.css');
@import url('variables.css');

/* ==================== BASE ==================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

/* ==================== LAYOUT ==================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--spacing-5xl) 0;
    position: relative;
}

.section-sm { padding: var(--spacing-3xl) 0; }

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: var(--font-size-5xl); font-weight: 800; }
h2 { font-size: var(--font-size-4xl); font-weight: 700; }
h3 { font-size: var(--font-size-2xl); font-weight: 600; }
h4 { font-size: var(--font-size-xl); font-weight: 600; }

p { margin-bottom: var(--spacing-md); color: var(--color-text-secondary); line-height: 1.8; }
p:last-child { margin-bottom: 0; }

/* Section Title Component */
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.section-title h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.5px;
}

.section-title .subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-tertiary);
    max-width: 640px;
    margin: var(--spacing-md) auto 0;
    line-height: 1.7;
    display: block;
    text-align: center;
}

.section-title .title-bar {
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    margin: var(--spacing-md) auto var(--spacing-sm);
}

/* Page Banner */
.page-banner {
    background: var(--gradient-primary);
    padding: var(--spacing-5xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.jpg') no-repeat center center / cover;
    opacity: 0.12;
}

.page-banner .container { position: relative; z-index: 2; }

.page-banner h1 {
    color: var(--color-white);
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.page-banner p {
    color: rgba(255,255,255,0.8);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* Text utils */
.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-gold { color: var(--color-secondary) !important; }

/* Spacing utils */
.mb-sm  { margin-bottom: var(--spacing-sm); }
.mb-md  { margin-bottom: var(--spacing-md); }
.mb-lg  { margin-bottom: var(--spacing-lg); }
.mb-xl  { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }
.mb-3xl { margin-bottom: var(--spacing-3xl); }
.mt-lg  { margin-top: var(--spacing-lg); }
.mt-xl  { margin-top: var(--spacing-xl); }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    font-weight: 600;
    font-size: var(--font-size-base);
    border-radius: var(--radius-full);
    transition: var(--transition-bounce);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(45,115,200,0);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    color: var(--color-white);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--color-white);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232,151,30,0.5);
    color: var(--color-white);
}

.btn-outline-white {
    background: transparent;
    border-color: rgba(255,255,255,0.6);
    color: var(--color-white);
    backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-sm { padding: 8px 22px; font-size: var(--font-size-sm); }

/* ==================== CARDS ==================== */
.card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

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

.card:hover::before { opacity: 1; }

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

/* Stat Card */
.stat-card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

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

.stat-number {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.stat-unit {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--font-size-base);
    color: var(--color-text-tertiary);
    font-weight: 500;
    margin-top: var(--spacing-sm);
}

.stat-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--spacing-sm);
}

/* Advantage Card */
.advantage-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.advantage-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-lighter);
}

.advantage-num {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.08;
    color: var(--color-primary);
    min-width: 70px;
    letter-spacing: -4px;
    font-style: italic;
}

.advantage-body h3 {
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.advantage-body p { color: var(--color-text-tertiary); margin: 0; }

/* Contact Info Card */
.contact-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-slow);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-lighter);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #e8f0fc, #c3d9f9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto var(--spacing-lg);
}

.contact-card h4 {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.contact-card p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* ==================== GRIDS ==================== */
.grid { display: grid; gap: var(--spacing-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Semantic two-column layouts used in about / cooperation / contact pages */
.two-col-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.two-col-layout-even {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.two-col-layout-contact {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .two-col-layout,
    .two-col-layout-even,
    .two-col-layout-contact {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}


@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-auto { grid-template-columns: 1fr; }
}

/* ==================== HEADER & NAV ==================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    background: transparent;
    transition: var(--transition-base);
    padding: 0;
}

#site-header.scrolled {
    background: rgba(6, 31, 74, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(6,31,74,0.3);
}

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

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

.logo-emblem {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: white;
    box-shadow: var(--shadow-gold);
    flex-shrink: 0;
    letter-spacing: -1px;
}

.logo-text-block { display: flex; flex-direction: column; }
.logo-cn {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    letter-spacing: 0.5px;
}
.logo-en {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-block;
    padding: 8px 16px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    letter-spacing: 0.3px;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-white);
    background: rgba(255,255,255,0.12);
}

.nav-cta {
    background: var(--gradient-gold) !important;
    color: white !important;
    padding: 9px 22px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-gold);
    font-size: var(--font-size-sm) !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,151,30,0.5);
    background: rgba(255,255,255,0.12) !important;
    background: var(--gradient-gold) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition-base);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(6,31,74,0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        transform: translateY(-110%);
        transition: var(--transition-base);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav.open { transform: translateY(0); }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 12px 20px;
        font-size: var(--font-size-base);
    }
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.jpg') no-repeat center center / cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-30px) scale(1.1); opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.9);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--spacing-xl);
    letter-spacing: 0.5px;
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.hero h1 {
    color: var(--color-white);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-xl);
    letter-spacing: -1px;
}

.hero h1 em {
    font-style: normal;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-p {
    font-size: var(--font-size-xl);
    color: rgba(255,255,255,0.82);
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: var(--spacing-2xl);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: var(--font-size-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==================== PRODUCT SHOWCASE ==================== */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.product-phone-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.product-phone-img {
    width: 260px;
    border-radius: 40px;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(45,115,200,0.2);
    border: 6px solid #1a3a68;
    transition: var(--transition-slow);
}

.product-phone-img:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 40px 80px rgba(6,31,74,0.3), 0 0 80px rgba(45,115,200,0.3);
}

.product-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45,115,200,0.2), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.product-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-lg);
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-info h2 {
    font-size: var(--font-size-4xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.product-tagline {
    font-size: var(--font-size-lg);
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
}

.product-info p {
    color: var(--color-text-secondary);
    text-align: left;
}

.product-warning {
    background: linear-gradient(135deg, #fef3dc, #fde8b8);
    border-left: 4px solid var(--color-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-top: var(--spacing-xl);
    width: 100%;
}

.product-warning h5 {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-secondary-hover);
    margin-bottom: 6px;
    text-align: left;
}

.product-warning p {
    font-size: var(--font-size-xs);
    color: #7a5c20;
    margin: 0;
    line-height: 1.7;
    text-align: left;
}

/* Font Awesome icon sizing inside colored icon boxes */
.card-icon i,
.contact-card-icon i {
    font-size: 1.3rem;
    color: white;
    line-height: 1;
}

.process-step-icon i {
    font-size: 1.4rem;
    color: white;
    line-height: 1;
}

/* Philosophy icon small circles */
.philosophy-icon i {
    font-size: 1rem;
    color: white;
    line-height: 1;
}

/* Footer contact icons */
.contact-item i {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Inline contact info icons */
.contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .product-showcase {
        grid-template-columns: 1fr;
    }
    .product-showcase .product-phone-wrapper {
        order: -1;
    }
    .product-info {
        align-items: center;
        text-align: center;
    }
    .product-info p,
    .product-info .product-tagline,
    .product-warning p,
    .product-warning h5 {
        text-align: center;
    }
    .product-warning {
        text-align: center;
    }
    .product-phone-img { width: 220px; }
    .product-app-icon { margin: 0 auto var(--spacing-lg); }
}


/* ==================== FOOTER ==================== */
#site-footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.75);
    padding-top: var(--spacing-4xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
}

.footer-logo-block .logo-cn { font-size: 1.2rem; }
.footer-logo-block .footer-desc {
    color: rgba(255,255,255,0.5);
    font-size: var(--font-size-sm);
    line-height: 1.8;
    margin-top: var(--spacing-md);
}

.footer-col h4 {
    color: var(--color-white);
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.footer-col ul li a {
    color: rgba(255,255,255,0.55);
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
}

.footer-col ul li a:hover { color: var(--color-secondary); padding-left: 4px; }

.footer-col .contact-item {
    display: flex;
    gap: 8px;
    color: rgba(255,255,255,0.55);
    font-size: var(--font-size-sm);
    margin-bottom: 10px;
    align-items: flex-start;
}

.footer-col .contact-item span:first-child { flex-shrink: 0; }

.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); }

.footer-bottom {
    padding: var(--spacing-lg) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: var(--font-size-xs);
    margin: 0;
    letter-spacing: 0.3px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    transition: var(--transition-fast);
}
.footer-bottom a:hover { color: var(--color-secondary); }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==================== ANIMATIONS ==================== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

[data-aos="fade-up"]   { transform: translateY(40px); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="fade-right"]{ transform: translateX(-40px); }
[data-aos="zoom-in"]   { transform: scale(0.9); }

[data-aos].aos-animate { opacity: 1; transform: none; }

/* Stagger delays */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }

/* ==================== BG VARIANTS ==================== */
.bg-white    { background: var(--color-white); }
.bg-light    { background: var(--color-bg-body); }
.bg-gradient { background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-white) 100%); }
.bg-primary  { background: var(--gradient-primary); }
.bg-dark     { background: var(--color-bg-dark); }

/* ==================== INFO TABLE ==================== */
.info-list { list-style: none; padding: 0; margin: 0; }

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: 14px 0;
    border-bottom: 1px dashed var(--color-border);
}

.info-list li:last-child { border-bottom: none; }

.info-label {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    min-width: 130px;
    flex-shrink: 0;
    padding-top: 3px;
    line-height: 1.6;
}

.info-value {
    color: var(--color-text-main);
    font-weight: 500;
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.info-value.active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5ee;
    color: var(--color-success);
    padding: 2px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

/* ==================== CTA BANNER ==================== */
.cta-banner {
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-3xl) var(--spacing-4xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.cta-banner::after {
    content: '';
    position: absolute;
    right: 60px;
    bottom: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.cta-text h2 { color: var(--color-white); margin-bottom: var(--spacing-sm); font-size: var(--font-size-3xl); }
.cta-text p  { color: rgba(255,255,255,0.75); margin: 0; }

.cta-actions { display: flex; gap: var(--spacing-md); flex-shrink: 0; position: relative; z-index: 2; }

@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-2xl);
    }
    .cta-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    .cta-text h2, .cta-text p {
        text-align: center;
    }
}

/* ==================== MAP SECTION ==================== */
.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 420px;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 900px) {
    .map-container { height: 280px; }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-body); }
::-webkit-scrollbar-thumb { background: var(--color-primary-lighter); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ==================== RESPONSIVE: INLINE TWO-COLUMN LAYOUTS ==================== */

/* About page info grid + cooperation philosophy grid + contact info panel */
@media (max-width: 900px) {
    /* About page two-column */
    [style*="grid-template-columns:1.2fr 1fr"],
    [style*="grid-template-columns: 1.2fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1.6fr"],
    [style*="grid-template-columns: 1fr 1.6fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Cooperation process steps */
    .grid.grid-4 [class*="text-center"] {
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Ensure all heading/text is properly aligned on mobile */
    .page-banner h1 { font-size: var(--font-size-4xl); }
    .page-banner p  { font-size: var(--font-size-base); padding: 0 var(--spacing-lg); }

    .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-p  { font-size: var(--font-size-lg); }

    .section-title h2 { font-size: var(--font-size-3xl); }
    .section-title .subtitle { font-size: var(--font-size-base); padding: 0 var(--spacing-md); }

    /* Advantage cards stack vertically */
    .advantage-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .advantage-num { font-size: 3rem; min-width: auto; }

    /* Contact cards in grid-4 → 2-col on tablet, 1-col on phone */
    .contact-card h4 { font-size: var(--font-size-base); }

    /* Info list on mobile */
    .info-list li {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    .info-label { min-width: auto; }
}

@media (max-width: 480px) {
    /* Stack CTA buttons on very narrow screens */
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .btn { width: 100%; justify-content: center; }

    /* Footer single column */
    .footer-grid { grid-template-columns: 1fr !important; }

    /* Stat number smaller */
    .stat-number { font-size: var(--font-size-4xl); }

    /* Contact grid → 1 col */
    .grid-4 { grid-template-columns: 1fr !important; }
}

/* ==================== BUG FIX: MOBILE HEADER ==================== */
/* Hide English logo subtitle on very narrow screens to prevent overflow */
@media (max-width: 480px) {
    .logo-en { display: none; }
    .logo-cn { font-size: 0.9rem; }
    .logo-emblem { width: 34px; height: 34px; font-size: 0.9rem; }
    .header-inner { height: 60px; }
    .main-nav { top: 60px; }
}

/* ==================== BUG FIX: ABOUT PAGE HEADING ==================== */
/* Large h2 in about page content → scale down responsively */
@media (max-width: 768px) {
    /* About page main company name heading */
    .two-col-layout h2[style*="font-size"] {
        font-size: var(--font-size-2xl) !important;
    }
    /* Process steps → 2×2 on mobile */
    .grid.grid-4 .text-center .process-step-icon {
        width: 52px;
        height: 52px;
    }
}

/* ==================== BUG FIX: NAV-CTA HOVER REDUNDANCY ==================== */
.nav-cta:hover {
    background: var(--gradient-gold) !important;
    color: white !important;
}

/* ==================== BUG FIX: PRODUCT INFO BUTTON ALIGNMENT ==================== */
/* Ensure the "了解更多" button inside product-info is always left-aligned on desktop */
.product-info > div[style*="margin-top"] {
    width: 100%;
}

@media (max-width: 900px) {
    .product-info > div[style*="margin-top"] {
        display: flex;
        justify-content: center;
    }
}

/* ==================== BUG FIX: COOPERATION PAGE GRID ON MOBILE ==================== */
@media (max-width: 768px) {
    .grid.grid-2 { grid-template-columns: 1fr; }
}

/* ==================== POLISH OPTIMIZATIONS ==================== */

/* 1. Suppress underline on body paragraph links (not nav/footer) */
.card p a,
.section p a,
.info-value a,
.two-col-layout p a,
section p a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base);
}
section p a:hover {
    border-bottom-color: var(--color-primary);
}

/* 2. Equal-height grid cards */
.grid.grid-2,
.grid.grid-3,
.grid.grid-4 {
    align-items: stretch;
}

.card {
    display: flex;
    flex-direction: column;
}
.card p:last-child {
    margin-top: auto;
    padding-top: 8px;
}

/* 3. Tighter CTA banner section — remove excess space */
.section:has(.cta-banner) {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

/* 4. Smoother card hover with more pronounced lift */
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* 5. Better contact-item vertical alignment in footer */
.contact-item {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: var(--font-size-sm);
    line-height: 1.6;
}
.contact-item > span:first-child {
    padding-top: 1px;
}

/* 6. Stat card number uniform size */
.stat-card .stat-number {
    white-space: nowrap;
}

/* 7. Process steps connector line on desktop */
@media (min-width: 769px) {
    .grid.grid-4 {
        position: relative;
    }
    .grid.grid-4::before {
        content: '';
        position: absolute;
        top: 32px;
        left: calc(12.5% + 8px);
        right: calc(12.5% + 8px);
        height: 2px;
        background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
        opacity: 0.25;
        z-index: 0;
    }
    .grid.grid-4 > * {
        position: relative;
        z-index: 1;
    }
}

/* 8. Page banner bottom wave effect */
.page-banner::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 40px;
    background: white;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.section.bg-light ~ .page-banner::after,
.bg-light .page-banner::after {
    background: var(--color-bg-light);
}

/* 9. Info-list items — subtle dividers */
.info-list li {
    border-bottom: 1px solid var(--color-border);
}
.info-list li:last-child {
    border-bottom: none;
}

/* 10. Active tag style fix */
.active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d1fae5;
    color: #065f46;
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}