/* ===================================
   深圳市安科盟科技有限公司 - 企业官网
   全局样式文件
   =================================== */

/* --- 全局重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: #1e293b;
    background: #ffffff;
    overflow-x: hidden;
}

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

/* --- 通用工具类 --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.title-cn {
    display: block;
    font-size: 36px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.title-en {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.title-en::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-top: -30px;
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 15px;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(30, 58, 138, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-outline:hover {
    background: #1e3a8a;
    color: #ffffff;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
    width: 100%;
}

/* --- 导航栏 --- */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

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

.logo-icon {
    font-size: 38px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

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

.logo-cn {
    font-size: 21px;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.logo-en {
    font-size: 11px;
    color: #64748b;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 6px;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1e3a8a;
    background: rgba(30, 58, 138, 0.05);
}

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 11px 16px;
    color: #475569;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 6px;
    margin: 0;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #1e3a8a;
    padding-left: 20px;
}

.lang-switch {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}

.lang-switch:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.35);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #1e3a8a;
    padding: 4px;
}

/* --- 页面标题 --- */
.page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 140px 20px 80px;
    margin-top: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.page-header h1 {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- 首页横幅 --- */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 160px 20px 120px;
    margin-top: 60px;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 300px 300px;
    opacity: 0.4;
    animation: bgFloat 30s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 52px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- 产品中心 --- */
.products {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.product-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #1e3a8a;
    color: #1e3a8a;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-color: #1e3a8a;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.15);
    border-color: rgba(30, 58, 138, 0.2);
}

.product-card.hidden {
    display: none;
}

.product-img {
    font-size: 64px;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.product-model {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.8px;
}

.product-card h3 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 50px;
}

.product-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
    min-height: 65px;
}

.product-specs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.product-specs span {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.product-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-link:hover {
    gap: 10px;
    color: #3b82f6;
}

.view-all {
    text-align: center;
}

/* --- 解决方案 --- */
.solutions {
    padding: 100px 20px;
    background: #ffffff;
}

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

.solution-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 15px;
    padding: 45px 35px;
    text-align: center;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.solution-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.4);
}

.solution-img {
    font-size: 68px;
    margin-bottom: 22px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.solution-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 600;
    position: relative;
}

.solution-card p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.95;
    position: relative;
}

.solution-features {
    list-style: none;
    margin-top: 25px;
    text-align: left;
    position: relative;
}

.solution-features li {
    padding: 8px 0;
    padding-left: 24px;
    font-size: 14px;
    opacity: 0.9;
    position: relative;
}

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
}

/* --- 企业优势 --- */
.advantages {
    padding: 100px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 40px 25px;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    font-size: 58px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.advantage-card h3 {
    font-size: 19px;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 600;
}

.advantage-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

/* --- 关于我们预览 --- */
.about-preview {
    padding: 100px 20px;
    background: #ffffff;
}

.about-preview-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-preview-text h2 {
    font-size: 15px;
    color: #1e3a8a;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-preview-text h3 {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.about-preview-text p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-preview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: scale(1.05);
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 新闻预览 --- */
.news-preview {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

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

.news-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-date {
    font-size: 13px;
    color: #1e3a8a;
    margin-bottom: 14px;
    font-weight: 600;
    display: inline-block;
    background: rgba(30, 58, 138, 0.08);
    padding: 4px 12px;
    border-radius: 6px;
}

.news-card h3 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.news-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.news-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-link:hover {
    gap: 10px;
    color: #3b82f6;
}

/* --- 联系预览 --- */
.contact-preview {
    padding: 100px 20px;
    background: #ffffff;
}

.contact-preview-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    align-items: center;
}

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

.contact-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 10px;
    border-left: 4px solid #1e3a8a;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.contact-preview-action {
    text-align: center;
}

/* --- 页脚 --- */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #94a3b8;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #334155;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 48px;
}

.footer-company-cn {
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
}

.footer-company-en {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-left p {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
}

.qr-code {
    text-align: center;
}

.qr-placeholder {
    font-size: 80px;
    background: #ffffff;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-code p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    margin-bottom: 8px;
    color: #64748b;
}

/* ===================================
   响应式设计
   =================================== */

@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 42px;
    }
    
    .about-preview-content {
        grid-template-columns: 1fr;
    }
    
    .contact-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-right {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 140px 20px 80px;
        min-height: 500px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 17px;
    }

    .products-grid,
    .solutions-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

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

    .about-preview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header {
        padding: 120px 20px 60px;
    }

    .page-header h1 {
        font-size: 38px;
    }

    .section-title .title-cn {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 30px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stat-number {
        font-size: 36px;
    }

    .product-filter {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}
