/* 全局样式重置和动画 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a73e8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* 汉堡菜单按钮样式 */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.8rem;
    position: relative;
    z-index: 100;
    outline: none;
    margin-right: 0;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.hamburger-menu:hover {
    background-color: rgba(26, 115, 232, 0.1);
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a73e8;
    margin: 6px 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
    border-radius: 2px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 80vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
        z-index: 90;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        padding: 1rem 0;
        margin-top: 20px;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 0.5rem;
        width: 90%;
        text-align: center;
        font-size: 0.95rem;
    }

    /* 汉堡菜单动画 */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hamburger-menu.active:hover {
        background-color: rgba(26, 115, 232, 0.15);
    }
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
}

.nav-links a:hover {
    color: #1a73e8;
    background-color: rgba(26, 115, 232, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #1a73e8;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

.user-section {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    z-index: 1001;
}

.login-btn {
    padding: 0.6rem 1.2rem;
    background-color: #1a73e8;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
}

.login-btn:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}

/* 主要内容区域 */
main {
    margin-top: 80px;
    padding: 2rem;
}

/* 倒计时部分 */
.countdown-section {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.countdown-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.countdown-section h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span {
    font-size: 3.5rem;
    font-weight: bold;
    color: #1a73e8;
    text-shadow: 2px 2px 4px rgba(26, 115, 232, 0.2);
    display: inline-block;
    transition: all 0.3s ease;
}

.countdown-item:hover span {
    transform: scale(1.1);
}

.countdown-item .label {
    font-size: 1rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

/* 页脚样式 */
footer {
    background-color: #1a1a2e;
    color: #fff;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8, #34a853, #fbbc05, #ea4335);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* 错误提示弹窗 */
.error-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background-color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.error-toast:not(.hidden) {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.error-toast.hidden {
    display: none;
}

.error-icon {
    font-size: 1.2rem;
}

.error-message {
    color: #e74c3c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }

    .hamburger-menu {
        display: block;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
        margin-right: 0;
    }

    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background: #1a73e8;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .countdown {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .countdown-item span {
        font-size: 2rem;
    }
}