/* ===== 重置与基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0a0a;
    --primary-blue: #1a3a5c;
    --accent-blue: #0066ff;
    --accent-teal: #00d4ff;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-dark: #1e293b;
    --border-color: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-dark);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(26, 58, 92, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

/* Hero 容器特殊处理 */
.hero .container {
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
}

/* 背景图片容器调整 */
.hero-bg-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%; /* 只占右侧60% */
    height: 100%;
    z-index: 1;
}

/* 左侧黑色背景 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    border-radius: 1px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.language-switch:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

.mobile-menu-btn {
    display: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

/* ===== Hero 首屏区 ===== */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 70vh; /* 竖向占半个屏幕 */
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 背景图片容器 */
.hero-bg-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%; /* 只占右侧70% */
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding-top: 0;
    gap: 40px;
}

/* 品牌介绍（在图片上方，靠左） */
.hero-text-overlay {
    flex: 1;
    max-width: 500px;
    padding-right: 40px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    left: 0;
    top: 0;
}

/* 右侧占位图片 */
.hero-placeholder-image {
    flex: 0 0 300px;
}

.placeholder-img {
    display: none;
}

/* 虚空占位元素 */
.hero-placeholder-image::after {
    content: '';
    display: block;
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    background: transparent;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--accent-blue);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

/* 三个品牌图标 */
.hero-brands-overlay {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.brand-icon-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.brand-icon-circle {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-icon-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}



.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 18px;
    color: var(--accent-blue);
    margin-bottom: 20px;
    font-weight: 500;
}

.section-description {
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 500px;
}

.search-container {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    max-width: 600px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    font-size: 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    color: var(--text-dark);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.search-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.search-hint i {
    color: var(--accent-blue);
}

/* 证书预览 */
.certificate-visual {
    display: flex;
    justify-content: center;
}

.preview-card {
    width: 300px;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid #e2e8f0;
}

.preview-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.preview-grade {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.preview-body {
    padding: 30px;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 40px;
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.info-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== 为什么选择Z评级 ===== */
.why-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-title {
    color: var(--text-primary);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-header .section-subtitle {
    color: var(--text-secondary);
    font-size: 20px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-8px);
}

.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.why-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.why-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== 评级的作用 ===== */
.benefits-section {
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.benefit-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== 底部 ===== */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo .logo-text {
    font-size: 36px;
}

.footer-logo .logo-sub {
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-group a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

/* ===== 弹窗 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: rgba(20, 30, 50, 0.7);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(0, 102, 255, 0.2);
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.close {
    font-size: 28px;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close:hover {
    color: white;
}

.modal-body {
    padding: 30px;
    color: white;
}

.modal-placeholder {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
}

.placeholder-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.placeholder-img {
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.placeholder-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.placeholder-line {
    height: 20px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
}

.placeholder-line:nth-child(1) { width: 80%; }
.placeholder-line:nth-child(2) { width: 60%; }
.placeholder-line:nth-child(3) { width: 70%; }

/* ===== 动画 ===== */

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .why-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 120px 0 60px;
        min-height: 60vh;
    }
    
    .hero-content {
        padding-top: 40px;
        align-items: center;
    }
    
    .hero-bg-overlay {
        background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 100%);
    }
    
    .hero-text-overlay {
        text-align: center;
        max-width: 100%;
        padding-right: 0;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-brands-overlay {
        justify-content: center;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .why-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
        padding: 100px 0 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-brands-overlay {
        gap: 15px;
    }
    
    .brand-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .brand-name {
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .preview-card {
        width: 100%;
    }
}