/* Global Variables */
:root {
    --primary-color: #2563eb;      /* 更亮的蓝色 */
    --secondary-color: #1e40af;    /* 深蓝色 */
    --background: #ffffff;         /* 白色背景 */
    --text-color: #1e293b;        /* 深色文本 */
    --light-text: #64748b;        /* 浅色文本 */
    --border-color: #e2e8f0;      /* 边框颜色 */
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-item-has-dropdown {
    position: relative;
}

.nav-item-has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-item-has-dropdown > a i {
    font-size: 0.7rem;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    padding: 0.5rem 0;
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: none;
    z-index: 1200;
}

.nav-item-has-dropdown:hover .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown a span {
    display: block;
}

.nav-dropdown a .nav-dropdown-label {
    font-weight: 600;
}

.nav-dropdown a .nav-dropdown-desc {
    font-size: 0.8rem;
    color: var(--light-text);
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
    background: #eff6ff;
    color: var(--primary-color);
}

/* Buttons */
.primary-button {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.primary-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.secondary-button {
    background: transparent;
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: inline-block;
}

.secondary-button:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-login {
    background: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,99,235,0.18);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-login::before {
    font-family: 'Font Awesome 5 Free';
    content: "\f2f6";
    font-weight: 900;
    display: inline-block;
    margin-right: 0.5em;
    font-size: 1.1em;
    vertical-align: middle;
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    width: calc(100% - 32px);
    max-width: 960px;
    background: #020617;
    color: #e5e7eb;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 2100;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.cookie-banner-title {
    font-weight: 600;
    color: #f9fafb;
}

.cookie-banner-text {
    color: #cbd5f5;
    font-size: 0.86rem;
}

.cookie-banner-text a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    font-size: 0.86rem;
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #f9fafb;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
}

.cookie-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.6);
}

.cookie-btn-secondary {
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.6);
}

.cookie-btn-secondary:hover {
    background: rgba(15, 23, 42, 1);
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
        gap: 10px;
        bottom: 12px;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }

    .cookie-btn {
        flex: 0 0 auto;
    }
}

/* User avatar & dropdown */
.user-area {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.user-name {
    font-weight: 500;
    color: var(--primary-color);
    margin-left: 4px;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    min-width: 180px;
    z-index: 999;
    padding: 8px 0;
}

.user-info.active .user-dropdown {
    display: block !important;
}

.dropdown-item {
    padding: 10px 20px;
    color: #333;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    text-decoration: none;
    border: none;
    background: none;
}

.dropdown-item:hover {
    background: #f3f0ff;
    color: var(--primary-color);
    text-decoration: none;
}

.user-dropdown a.dropdown-item {
    color: #222;
    text-decoration: none;
    font-weight: 500;
}

.user-dropdown a.dropdown-item:hover {
    color: var(--primary-color);
    background: #f3f0ff;
    text-decoration: none;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

.logout-btn {
    color: #d32f2f !important;
    font-weight: 500;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.logout-btn:hover {
    background: #fbe9e7;
}

/* Footer */
.footer {
    background: #f8fafc;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--light-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
} 