/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', '微软雅黑', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #0066cc;
}

ul {
    list-style: none;
}

/* 容器和布局 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航栏 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.5rem;
    color: #0066cc;
}

.logo a {
    text-decoration: none;
}

.logo a:hover {
    text-decoration: none;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: #333;
    padding: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

nav ul li a:hover, 
nav ul li a.active {
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
}

/* 暗黑模式切换按钮和语言选择器的公共容器 */
.utility-buttons {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* 暗黑模式切换按钮 */
.dark-mode-toggle {
    margin-left: 1rem;
    margin-right: 1rem;
}

.dark-mode-toggle button {
    background-color: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dark-mode-toggle button:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

/* 在暗黑模式下的按钮样式 */
body.dark-mode .dark-mode-toggle button {
    background-color: #333;
    color: #f0f0f0;
}

/* 语言选择器 */
.language-selector {
    position: relative;
}

.language-selector label.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.language-selector select {
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    padding-right: 1.8rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 120px;
}

.language-selector select:hover,
.language-selector select:focus {
    border-color: #00acc1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 172, 193, 0.2);
}

/* 英雄区域 */
.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00838f;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #006064;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #00acc1;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #007c91;
}

.hero-animation {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#animation-container {
    width: 100%;
    height: 100%;
}

/* 功能特色区域 */
.features {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #00838f;
}

.feature-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    padding: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #00838f;
    margin-bottom: 0.8rem;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-links ul li a {
    color: #b2ebf2;
}

.footer-links ul li a:hover {
    color: #e0f7fa;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #555;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #b2ebf2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo, nav {
        width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.75rem;
    }
    
    .utility-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .dark-mode-toggle {
        margin: 0 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .feature-card {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .features h2 {
        font-size: 1.8rem;
    }
    
    .feature-cards {
        gap: 1rem;
    }
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent.hide {
    display: none;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-consent-header h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
    margin-left: 10px;
}

.cookie-consent-icon {
    font-size: 1.5rem;
}

.cookie-consent-body {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.cookie-consent-actions {
    display: flex;
    justify-content: flex-end;
}

.cookie-consent-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
}

.cookie-consent-btn.accept {
    background-color: #0066cc;
    color: #fff;
    margin-left: 10px;
}

.cookie-consent-btn.accept:hover {
    background-color: #0055aa;
}

.cookie-consent-btn.customize {
    background-color: #f0f0f0;
    color: #333;
}

.cookie-consent-btn.customize:hover {
    background-color: #e0e0e0;
}

/* Dark mode styles for cookie consent */
body.dark-mode .cookie-consent {
    background-color: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cookie-consent-header h3 {
    color: #f0f0f0;
}

body.dark-mode .cookie-consent-body {
    color: #cccccc;
}

body.dark-mode .cookie-consent-btn.customize {
    background-color: #444;
    color: #eee;
}

body.dark-mode .cookie-consent-btn.customize:hover {
    background-color: #555;
} 