/* 基本重置和通用样式 */
:root {
    --primary-color: #3b7a57; /* 绿色主题 */
    --secondary-color: #e47025; /* 橙色次要主题 */
    --text-color: #333;
    --light-text: #fff;
    --light-bg: #f5f5f5;
    --border-color: #333;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #3b7a57 0%, #5b9a77 100%);
    --gradient-secondary: linear-gradient(135deg, #e47025 0%, #f48e45 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: var(--light-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover:before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-large {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.hidden {
    display: none;
}

/* 添加焦点样式以增强可访问性 */
.focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* 头部导航栏样式 */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    padding: 15px 0;
    text-align: center;
    transition: var(--transition);
    overflow: visible;
}

.logo {
    max-height: 80px;
    width: auto;
    transition: transform 0.3s ease;
    margin: 0 auto;
    display: block;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    position: relative;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    background: var(--gradient-primary);
}

.main-nav > li {
    position: relative;
}

.main-nav > li > a {
    display: block;
    padding: 15px 20px;
    color: var(--light-text);
    font-weight: 500;
    transition: var(--transition);
}

.main-nav > li:hover > a {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.has-dropdown:hover .dropdown {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1001;
    list-style: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.dropdown li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown li:last-child a {
    border-bottom: none;
}

/* 主页英雄区域 */
.hero {
    background: var(--gradient-primary);
    color: var(--light-text);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.png');
    opacity: 0.1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    animation: slideUp 1s ease forwards;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    animation: slideUp 1s 0.2s ease forwards;
    opacity: 0;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 快速链接卡片 */
.quick-links {
    padding: 70px 0;
    background-color: #fff;
}

.quick-links .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.link-card {
    background-color: var(--light-bg);
    padding: 35px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.link-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.link-card h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.link-card h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
}

.link-card .btn {
    margin-top: 15px;
}

/* 疫情响应部分 */
.pandemic-response {
    padding: 60px 0;
    background: var(--gradient-secondary);
    color: var(--light-text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pandemic-response:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.png');
    opacity: 0.1;
}

.pandemic-response h2 {
    margin-bottom: 30px;
    font-size: 2.2rem;
    position: relative;
}

.pandemic-response .btn-large {
    background: #fff;
    color: var(--secondary-color);
}

.pandemic-response .btn-large:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.05);
}

/* 网络图表部分 */
.network-diagram {
    padding: 70px 0;
    background-color: #fff;
    text-align: center;
}

.network-diagram h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 2rem;
}

.network-diagram p {
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.diagram-image {
    margin: 40px auto;
    max-width: 850px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.diagram-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.mobile-only {
    display: none;
    margin-top: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

/* 关于部分 */
.about {
    padding: 70px 0;
    background-color: var(--light-bg);
    position: relative;
}

.about:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--gradient-primary);
}

.about h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
    font-size: 2rem;
}

.about p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.about ul {
    margin: 25px 0;
    padding-left: 20px;
}

.about li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.about li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* 页脚样式 */
footer {
    padding: 60px 0 40px;
    background: var(--gradient-primary);
    color: var(--light-text);
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.png');
    opacity: 0.05;
}

.footer-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
    position: relative;
}

.footer-contact h3,
.footer-support h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: inline-block;
    position: relative;
}

.footer-contact h3:after,
.footer-support h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-contact a,
.footer-support a {
    color: var(--light-text);
    text-decoration: underline;
    transition: var(--transition);
}

.footer-contact a:hover,
.footer-support a:hover {
    color: var(--secondary-color);
}

.footer-contact p,
.footer-support p {
    margin-bottom: 10px;
}

.footer-legal {
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--light-text);
    text-decoration: underline;
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

/* Cookie通知 */
#cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.9);
    color: var(--light-text);
    padding: 20px 0;
    z-index: 9999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(100%);
    animation: slideUp 0.5s forwards;
}

#cookie-notice .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

/* Cookie设置面板 */
#cookie-settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    color: var(--light-text);
    z-index: 10000;
    overflow-y: auto;
    padding: 50px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-options {
    margin: 40px 0;
}

.cookie-option {
    margin-bottom: 25px;
    padding: 20px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.cookie-option:hover {
    background-color: rgba(255,255,255,0.15);
}

.cookie-option label {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.cookie-option input {
    margin-right: 15px;
    width: 18px;
    height: 18px;
}

.cookie-settings-buttons {
    text-align: center;
    margin-top: 40px;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
} 