:root {
    --primary-color: #2a6f66;
    --secondary-color: #34d399;
    --accent-color: #4ade80;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f0fdf4;
    --gradient-primary: linear-gradient(135deg, #2a6f66 0%, #34d399 100%);
    --gradient-secondary: linear-gradient(135deg, #4ade80 0%, #22c55e 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-dark);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a32 0%, #2a6f66 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-section {
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(52, 211, 153, 0.2);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(52, 211, 153, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 15px 0;
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.lang-switch {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/* Language Toggle */
/* 默认显示英文 */
.lang-en {
    display: block;
}

.lang-zh, .lang-ru, .lang-es, .lang-ja, .lang-ko {
    display: none;
}

body.lang-chinese .lang-zh {
    display: block;
}

body.lang-chinese .lang-en, 
body.lang-chinese .lang-ru, 
body.lang-chinese .lang-es, 
body.lang-chinese .lang-ja, 
body.lang-chinese .lang-ko {
    display: none;
}

body.lang-russian .lang-ru {
    display: block;
}

body.lang-russian .lang-zh, 
body.lang-russian .lang-en, 
body.lang-russian .lang-es, 
body.lang-russian .lang-ja, 
body.lang-russian .lang-ko {
    display: none;
}

body.lang-spanish .lang-es {
    display: block;
}

body.lang-spanish .lang-zh, 
body.lang-spanish .lang-en, 
body.lang-spanish .lang-ru, 
body.lang-spanish .lang-ja, 
body.lang-spanish .lang-ko {
    display: none;
}

body.lang-japanese .lang-ja {
    display: block;
}

body.lang-japanese .lang-zh, 
body.lang-japanese .lang-en, 
body.lang-japanese .lang-ru, 
body.lang-japanese .lang-es, 
body.lang-japanese .lang-ko {
    display: none;
}

body.lang-korean .lang-ko {
    display: block;
}

body.lang-korean .lang-zh, 
body.lang-korean .lang-en, 
body.lang-korean .lang-ru, 
body.lang-korean .lang-es, 
body.lang-korean .lang-ja {
    display: none;
}

/* 语言选择器样式 */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.language-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.language-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-selector.active .language-btn i {
    transform: rotate(180deg);
}

.language-option {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-option:hover {
    background-color: var(--bg-light);
}

.language-option.active {
    background-color: rgba(52, 211, 153, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.language-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}