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

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #e8e8e8;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    overflow-x: hidden;
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced color system */
:root {
    --primary-orange: #FF6A00;
    --primary-orange-light: #FF8C00;
    --primary-orange-dark: #E55A00;

    --graphite-black: #1a1a1a;
    --graphite-black-light: #2a2a2a;
    --graphite-black-dark: #0f0f0f;

    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;

    --surface-primary: #2a2a2a;
    --surface-secondary: #333333;
    --surface-tertiary: #404040;

    --accent-success: #27ae60;
    --accent-warning: #f39c12;
    --accent-error: #e74c3c;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.25);
    --shadow-hard: 0 12px 40px rgba(0, 0, 0, 0.35);

    --border-light: rgba(255, 106, 0, 0.1);
    --border-medium: rgba(255, 106, 0, 0.2);
    --border-strong: rgba(255, 106, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

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

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    min-width: 120px;
}

.btn-primary {
    background: var(--surface-primary);
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.1), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-orange);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 加载动画 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top: 4px solid #FF6A00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 导航栏 */
.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand .brand-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand .brand-link:hover {
    color: #FF6A00;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.nav-menu .nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu .nav-link:hover {
    color: #FF6A00;
}

.nav-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6A00;
    transition: width 0.3s ease;
}

.nav-menu .nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 英雄区域 */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--graphite-black) 0%, var(--graphite-black-light) 100%);
    color: white;
    text-align: center;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
    border-bottom: 4px solid var(--primary-orange);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 106, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

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

.page-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.scroll-button {
    background: rgba(255, 106, 0, 0.1);
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.scroll-button:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
}

.scroll-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.scroll-button:hover .scroll-icon {
    transform: translateY(2px);
}

/* 内容区域通用样式 */
.history-section,
.cameras-section,
.timeline-section,
.comparison-section,
.faq-section,
.cta-section {
    padding: 80px 0;
}

.content-section {
    background: var(--surface-primary);
    padding: 60px 40px;
    margin-bottom: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

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

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.cta-buttons .btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--surface-primary);
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-3px);
}

/* 增强动画样式 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* 页面标题动画 */
.animate-title {
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.animate-subtitle {
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.animate-button {
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

/* 区域标题动画 */
.animate-in {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

/* 特性标签动画 */
.animate-feature {
    animation: pulse 0.3s ease-out;
    animation-fill-mode: both;
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    animation-fill-mode: both;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ICP备案页脚 */
.icp-footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.site-link {
    color: #FF6A00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-link:hover {
    color: #FF8C00;
}

.copyright {
    color: #808080;
    font-size: 13px;
}

.compliance-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.icp-info, .police-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.police-badge {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.beian-link {
    color: #808080;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.beian-link:hover {
    color: #FF6A00;
}