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

:root {
    --primary: #1a56db;
    --primary-dark: #1242b3;
    --primary-light: #e8effd;
    --accent: #0ea5e9;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.1), 0 4px 10px -6px rgba(0,0,0,.05);
    --radius: 12px;
    --radius-lg: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

a { text-decoration: none; color: inherit; }

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

/* ===== Header ===== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}
.logo span { color: var(--accent); font-weight: 400; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 50%, #312e81 100%);
    color: white;
    text-align: center;
    padding: 100px 24px 80px;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.hero-sub {
    font-size: 1.2rem;
    opacity: .85;
    max-width: 600px;
    margin: 0 auto 50px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.9rem;
    opacity: .75;
    margin-top: 4px;
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: white;
    text-align: center;
    padding: 70px 24px;
}
.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.page-hero p {
    font-size: 1.1rem;
    opacity: .85;
}

/* ===== Section Title ===== */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 48px;
}

/* ===== Features ===== */
.features {
    padding: 80px 0;
    background: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition: transform .3s, box-shadow .3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text);
}
.feature-card p {
    font-size: .93rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Products Home ===== */
.products-home {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.product-img-box {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-icon {
    font-size: 2.8rem;
}
.product-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.product-card p {
    font-size: .93rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.btn-outline {
    display: inline-block;
    padding: 8px 24px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    transition: all .3s;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ===== Apply Form Section ===== */
.apply-section {
    padding: 80px 0;
    background: var(--white);
}

.apply-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.apply-form {
    max-width: 720px;
    margin: 0 auto;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 24px;
}

.form-group label {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.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, .1);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    display: block;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    padding: 14px 0;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .3s, transform .2s;
}
.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: white;
    color: var(--primary);
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-success {
    text-align: center;
    padding: 40px 0;
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-success p { color: var(--text-light); }

/* ===== Product Detail (products page) ===== */
.product-detail-section {
    padding: 80px 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}
.product-detail.reverse {
    grid-template-columns: 1fr 320px;
}
.product-detail.reverse .product-detail-img { order: 2; }

.product-detail-img {
    width: 260px;
    height: 260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-icon-lg { font-size: 5rem; }

.product-detail-info h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}
.tagline {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 18px;
}
.spec-list {
    list-style: none;
    margin-bottom: 18px;
}
.spec-list li {
    padding: 6px 0;
    font-size: .93rem;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}
.spec-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}
.spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.spec-tags span {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 500;
}

/* ===== Solutions ===== */
.solutions-section {
    padding: 80px 0;
}

.solution-card {
    display: flex;
    gap: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: transform .2s;
    align-items: flex-start;
}
.solution-card:hover {
    transform: translateX(4px);
}
.solution-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.solution-body h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.solution-body > p {
    font-size: .93rem;
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.7;
}

.solution-products {
    color: var(--primary);
    font-size: .9rem;
    margin-bottom: 12px;
    padding: 8px 14px;
    background: var(--primary-light);
    border-radius: 8px;
    display: inline-block;
}
.solution-body ul {
    list-style: none;
}
.solution-body ul li {
    padding: 4px 0;
    font-size: .9rem;
    color: var(--text-light);
    padding-left: 20px;
    position: relative;
}
.solution-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

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

.about-intro {
    max-width: 800px;
    margin: 0 auto 64px;
    text-align: center;
}
.about-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.about-intro p {
    font-size: 1.02rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.milestones {
    margin-bottom: 64px;
}
.milestones h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 32px;
}
.milestone-list {
    max-width: 600px;
    margin: 0 auto;
    border-left: 3px solid var(--primary-light);
    padding-left: 32px;
}
.milestone {
    margin-bottom: 24px;
    position: relative;
}
.milestone::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 3px var(--primary-light);
}
.year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.desc {
    font-size: .93rem;
    color: var(--text-light);
}

.values { margin-bottom: 64px; }
.values h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 32px;
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.value-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.value-icon { font-size: 2.2rem; margin-bottom: 12px; }
.value-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.value-card p { font-size: .9rem; color: var(--text-light); line-height: 1.7; }

.company-info-table {
    max-width: 640px;
    margin: 0 auto;
}
.company-info-table h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 32px;
}
.info-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.info-table th, .info-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.info-table th {
    background: var(--bg);
    font-weight: 600;
    width: 140px;
    color: var(--text);
}
.info-table td {
    color: var(--text-light);
}

/* ===== CTA ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
}
.cta-content {
    text-align: center;
    color: white;
}
.cta-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.cta-content p {
    font-size: 1.05rem;
    opacity: .85;
    margin-bottom: 28px;
}

/* ===== Footer ===== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 56px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 36px;
}
.footer-col h4 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 16px;
}
.footer-col p {
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 4px;
}
.footer-col a {
    display: block;
    font-size: .9rem;
    margin-bottom: 8px;
    transition: color .2s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: .85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .menu-toggle { display: block; }

    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 30px; }
    .stat-num { font-size: 1.8rem; }

    .form-row { grid-template-columns: 1fr; }

    .product-detail,
    .product-detail.reverse {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .product-detail.reverse .product-detail-img { order: 0; }
    .product-detail-img {
        width: 180px;
        height: 180px;
    }

    .solution-card { flex-direction: column; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    .info-table th { width: 100px; }
}
