/* ===== CSS Variables ===== */
:root {
    --color-primary: #0a3d62;
    --color-primary-light: #0e4d7a;
    --color-secondary: #0277bd;
    --color-accent: #f39c12;
    --color-accent-light: #ffb443;
    --color-dark: #1a2332;
    --color-text: #2c3e50;
    --color-text-light: #6b7c8c;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f9fb;
    --color-border: #e3e8ed;
    --color-white: #ffffff;

    --font-sans: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;

    --shadow-sm: 0 2px 8px rgba(10, 61, 98, 0.06);
    --shadow-md: 0 4px 20px rgba(10, 61, 98, 0.1);
    --shadow-lg: 0 8px 40px rgba(10, 61, 98, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    height: 60px;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-cn {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.logo-en {
    font-size: 14px;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: 20px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

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

.nav-link {
    padding: 8px 14px;
    font-size: 14px;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-secondary);
    background: rgba(2, 119, 189, 0.06);
}

.nav-link.active {
    color: var(--color-secondary);
    background: rgba(2, 119, 189, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle {
    background: rgba(2, 119, 189, 0.08);
    border: 1px solid rgba(2, 119, 189, 0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    color: var(--color-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-toggle:hover {
    background: var(--color-secondary);
    color: white;
}

.lang-alt {
    opacity: 0.5;
}

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

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

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.35);
}

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

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

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

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a3d62 0%, #0e4d7a 30%, #0277bd 70%, #0288d1 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(243,156,18,0.1) 0%, transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(10,61,98,0.5), transparent);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'%3E%3Cpath d='M0 600 Q300 550 600 580 T1200 560 L1200 800 L0 800 Z' fill='%23ffffff' fill-opacity='0.05'/%3E%3Cpath d='M0 650 Q300 600 600 630 T1200 610 L1200 800 L0 800 Z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(14px, 2.5vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stats {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 28px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.stat-num span {
    font-size: 20px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 6px;
}

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

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--color-bg-alt);
}

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

.section-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: start;
}

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

.about-features {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(2, 119, 189, 0.08);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item h4 {
    font-size: 15px;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

.info-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.info-card-header {
    background: var(--color-primary);
    padding: 20px 24px;
}

.info-card-header h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.info-card-body {
    padding: 8px 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    gap: 12px;
}

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

.info-label {
    font-size: 13px;
    color: var(--color-text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.info-value {
    font-size: 13px;
    color: var(--color-text);
    font-weight: 500;
    text-align: right;
}

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

.service-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    text-align: center;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.service-icon-1 { background: linear-gradient(135deg, #0277bd, #0288d1); }
.service-icon-2 { background: linear-gradient(135deg, #00897b, #009688); }
.service-icon-3 { background: linear-gradient(135deg, #f39c12, #fb8c00); }
.service-icon-4 { background: linear-gradient(135deg, #5e35b1, #7e57c2); }
.service-icon-5 { background: linear-gradient(135deg, #e53935, #ef5350); }
.service-icon-6 { background: linear-gradient(135deg, #3949ab, #5c6bc0); }
.service-icon-7 { background: linear-gradient(135deg, #00897b, #26a69a); }
.service-icon-8 { background: linear-gradient(135deg, #0a3d62, #0e4d7a); }

.service-card h3 {
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

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

/* ===== Products Section ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-category {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

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

.product-header {
    padding: 20px 24px;
    background: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-header h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.product-count {
    background: var(--color-accent);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.product-list {
    padding: 16px 24px;
}

.product-list li {
    padding: 8px 0;
    font-size: 13px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    padding-left: 18px;
}

.product-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-secondary);
}

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

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

.qual-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

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

.qual-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(2, 119, 189, 0.08);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qual-card h4 {
    font-size: 15px;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.qual-card p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ===== Cases ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.case-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.case-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.case-img-1 {
    background: linear-gradient(135deg, #0277bd, #0288d1, #039be5);
}
.case-img-2 {
    background: linear-gradient(135deg, #00897b, #009688, #26a69a);
}
.case-img-3 {
    background: linear-gradient(135deg, #5e35b1, #7e57c2, #9575cd);
}

.case-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cpath d='M0 160 Q100 130 200 150 T400 140 L400 200 L0 200 Z' fill='%23ffffff' fill-opacity='0.1'/%3E%3Cpath d='M50 80 L100 50 L150 80 L200 40 L250 70 L300 45 L350 75 L400 50 L400 0 L0 0 L0 80 Z' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/svg%3E");
    background-size: cover;
}

.case-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
}

.case-tag {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.case-body {
    padding: 24px;
}

.case-body h3 {
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.case-body p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.case-meta {
    font-size: 12px;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.meta-divider {
    color: var(--color-border);
}

/* ===== News ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    gap: 20px;
}

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

.news-date {
    flex-shrink: 0;
    text-align: center;
    width: 60px;
}

.news-day {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.news-month {
    display: block;
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 4px;
}

.news-content h3 {
    font-size: 15px;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.news-content p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.news-link {
    font-size: 13px;
    color: var(--color-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--color-accent);
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(2, 119, 189, 0.08);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 15px;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.contact-item p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.5;
}

.contact-en {
    font-size: 12px !important;
    color: var(--color-text-light) !important;
}

.contact-cta {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    position: relative;
    background: #e8f4fd;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
}

.map-note {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 61, 98, 0.85);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 24px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-cn {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.footer-logo-en {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
}

.footer-col h4 {
    color: white;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-contact li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.footer-icp {
    font-size: 11px !important;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .qual-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-features {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-md);
        gap: 0;
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 14px 16px;
        border-radius: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .hamburger {
        display: flex;
    }

    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .services-grid,
    .products-grid,
    .qual-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta {
        flex-direction: column;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .stats-grid {
        gap: 16px;
    }

    .stat-num {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo-en {
        display: none;
    }

    .hero {
        min-height: 90vh;
    }
}

/* ===== Print ===== */
@media print {
    .header, .hero-buttons, .hamburger, .lang-toggle {
        display: none !important;
    }
    body {
        color: black;
    }
}
