/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 - 深色模式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1e293b;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 汉堡菜单样式 */
.hamburger {
    display: none; /* 默认隐藏，仅在移动端显示 */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 10px;
    margin: 0;
    outline: none;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

/* 汉堡菜单样式 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
    margin: 0;
    outline: none;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3b82f6;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 导航栏响应式样式 */
.nav-links.open {
    display: flex;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 主内容区域 */
main {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

/* 页面样式 */
.page {
    display: none;
    padding: 6rem 0 4rem;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 首页登录容器 */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 0 auto;
    max-width: 1000px;
    padding: 0 1rem;
}

/* 登录卡片 */
.login-card {
    background-color: #1e293b;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #334155;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* 登录表单 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #1e293b;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 验证码容器样式 */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-img {
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

.captcha-img:hover {
    transform: scale(1.05);
    border-color: #3b82f6;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input {
    accent-color: #3b82f6;
}

.remember-me label {
    font-size: 0.875rem;
    color: #94a3b8;
    cursor: pointer;
}

.forgot-password {
    text-decoration: none;
    color: #3b82f6;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #60a5fa;
}

/* 按钮样式 */
.login-btn,
.submit-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.login-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(59, 130, 246, 0.4);
    opacity: 0.95;
}

.login-btn:active,
.submit-btn:active {
    transform: translateY(0);
}

/* 注册链接 */
.register-link {
    text-align: center;
    margin-top: 1rem;
}

.register-link p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.register-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #60a5fa;
}

/* 登录信息 */
.login-info {
    padding: 2rem;
}

.login-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.login-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 1rem;
}

/* 页面标题 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 关于我们内容 */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-item {
    background-color: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    border-color: #3b82f6;
}

.about-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.about-item p {
    color: #94a3b8;
    line-height: 1.7;
}

/* 功能特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #334155;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    border-color: #3b82f6;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.7;
}

/* 联系我们内容 */
.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.contact-info {
    background-color: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #334155;
    max-width: 600px;
    width: 100%;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.contact-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info li {
    color: #94a3b8;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #334155;
}

.contact-info li:last-child {
    border-bottom: none;
}

/* 服务协议内容 */
.agreement-content {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.agreement-text {
    background-color: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #334155;
    max-width: 800px;
    width: 100%;
    line-height: 1.8;
}

.agreement-text h4 {
    color: #f1f5f9;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.agreement-text h4:first-child {
    margin-top: 0;
}

.agreement-text p {
    color: #cbd5e1;
    margin-bottom: 1rem;
    text-align: justify;
}

.agreement-text p:last-child {
    margin-bottom: 0;
}

.contact-form {
    background-color: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #334155;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

/* 页脚样式 */
footer {
    background-color: #1e293b;
    border-top: 1px solid #334155;
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
}

.footer-copyright h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-copyright p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.875rem;
}

/* 移动端导航优化 - 汉堡菜单功能 */
@media (max-width: 1024px) {
    /* 显示汉堡菜单 */
    .hamburger {
        display: flex;
    }
    
    /* 隐藏桌面端导航，转为下拉菜单 */
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid #1e293b;
        border-top: none;
        border-radius: 0 0 12px 12px;
        padding: 1.5rem;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
        width: 250px;
        z-index: 1000;
    }
    
    /* 显示展开的导航菜单 */
    .nav-links.show {
        display: flex;
    }
    
    /* 导航链接样式 */
    .nav-links a {
        font-size: 1rem;
        padding: 0.8rem 1rem;
        border-radius: 6px;
        background-color: rgba(30, 41, 59, 0.5);
        display: block;
        text-align: left;
    }
    
    /* 缩小logo文字 */
    .logo h1 {
        font-size: 1.2rem;
    }
    
    /* 调整导航栏内边距 */
    .navbar .container {
        padding: 0.8rem 15px;
        justify-content: space-between;
    }
    
    /* 汉堡菜单激活状态 */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 992px) {
    .login-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .login-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
        margin: 0 auto;
    }
    
    .login-container {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .login-form {
        gap: 1rem;
    }
    
    .form-group input {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .login-btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-img {
        margin-top: 0.75rem;
        height: 40px;
        width: 100%;
        max-width: 150px;
        margin-left: auto;
    }
}

main {
    margin-top: 80px;
}

@media (max-width: 768px) {
    .page {
        padding: 2rem 0;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .features-grid,
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0.75rem 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}