* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f3b5e;
    --primary-dark: #082434;
    --secondary: #f39c12;
    --accent: #e67e22;
    --light-bg: #f5f8fc;
    --gray-text: #4a5a6e;
    --border-light: #e2e9f0;
    --white: #ffffff;
    --shadow: 0 15px 30px -10px rgba(0,30,50,0.15);
    --shadow-hover: 0 25px 40px -12px rgba(0,40,70,0.25);
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e2e3d;
    line-height: 1.5;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ========== 导航栏 ========== */
header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 65px;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo img {
    display: block;
    max-height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 1;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a.active {
    color: var(--secondary) !important;
    font-weight: 600;
}

.nav-links .contact-btn {
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.nav-links .contact-btn:hover {
    background: var(--primary-dark);
    color: white;
}

.language-selector {
    display: flex;
    gap: 0.3rem;
    margin-left: 0.5rem;
    border-left: 1px solid var(--border-light);
    padding-left: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 0.2rem 0.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.75rem;
    transition: all 0.2s;
    color: var(--gray-text);
    text-decoration: none;
    display: inline-block;
}

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

.lang-btn:hover {
    background: var(--light-bg);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(243,156,18,0.3);
}

.btn-primary:hover {
    background: #e0a01e;
    transform: translateY(-3px);
}

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

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

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
}

.btn-outline-light:hover {
    border-color: white;
    background: rgba(255,255,255,0.05);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    cursor: pointer;
}

.btn-small-outline {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    cursor: pointer;
}

/* ========== 首页样式 ========== */
.hero {
    background: linear-gradient(145deg, #0a2b41 0%, #194a67 100%);
    color: white;
    padding: 4rem 0 6rem;
    position: relative;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.05"><path d="M60 80 L140 80 L110 140 L50 140 Z" fill="white"/><circle cx="100" cy="60" r="15" fill="white"/><circle cx="40" cy="160" r="20" fill="white"/><circle cx="160" cy="130" r="25" fill="white"/></svg>') repeat;
    background-size: 300px;
}

.hero .container {
    position: relative;
    z-index: 5;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 1.8rem;
    transition: 0.2s;
}

.hero-card:hover {
    background: rgba(255,255,255,0.15);
}

.hero-card-icon {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 0.8rem;
}

.hero-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.4rem;
}

.hero-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ========== 产品卡片 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.2s;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card-image {
    height: 200px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-image i {
    font-size: 3rem;
    color: var(--secondary);
}

.product-card-content {
    padding: 2rem;
}

.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.product-card p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

/* ========== 解决方案卡片 ========== */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.solution-card {
    background: var(--light-bg);
    border-radius: 24px;
    padding: 2rem;
    transition: 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.solution-card:hover {
    background: white;
    box-shadow: var(--shadow);
}

.solution-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.solution-icon img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.solution-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.solution-card p {
    color: var(--gray-text);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: center;
}

.solution-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--primary);
    border: 1px solid var(--border-light);
}

/* ========== 技术中心文章 ========== */
.article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.article-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2rem;
    border-left: 6px solid var(--secondary);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: 0.2s;
    cursor: pointer;
}

.article-card:hover {
    background: white;
    box-shadow: var(--shadow);
}

.article-meta {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.article-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.article-excerpt {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ========== 面包屑 ========== */
.breadcrumb {
    margin: 1rem 0;
    color: var(--gray-text);
}

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

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

/* ========== 联系表单 ========== */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-family: inherit;
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

/* ========== 页脚 ========== */
footer {
    background: var(--primary-dark);
    color: #b0c7db;
    padding: 3rem 0 2rem;
    flex-shrink: 0;
    margin-top: 0;
}

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

.footer-col .logo {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-col .logo img {
    max-height: 50px;
    width: auto;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #b0c7db;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    border-top: 1px solid #264a66;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-list {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 1rem;
        position: absolute;
        top: 65px;
        left: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 1rem;
        z-index: 99;
    }
    .nav-links a {
        width: 100%;
        text-align: center;
    }
    .mobile-toggle {
        display: block;
    }
    .language-selector {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
    }
    .solution-grid {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .navbar {
        min-height: 55px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-card {
        padding: 1rem;
    }
}