/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #f5f5f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    /* 减慢动画速度，减小位移，消除眩晕感 */
    animation: fadeIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 引入 Montserrat 字体 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); } /* 减小位移幅度 */
    to { opacity: 1; transform: translateY(0); }
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 70px; /* 稍微增加高度 */
}

.navbar-container {
    max-width: 1400px; /* 增加最大宽度 */
    margin: 0 auto;
    padding: 0 10px; /* 减小内边距 */
    display: flex;
    /* 左对齐，以便与标题左侧对齐（视觉上） */
    justify-content: flex-start; 
    align-items: center;
    height: 100%;
}

/* 删除 .navbar-brand 相关样式，或者保留但不起作用 */
.navbar-brand {
    display: none; /* 隐藏品牌 */
}

.navbar-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 100%;
    /* 移除 width: 100% 以便左对齐生效，或者保持但控制内部对齐 */
    flex-grow: 1; 
}

/* 让最后一个导航项（登录/用户）自动靠右 */
.navbar-menu .navbar-item:last-child,
.navbar-menu .user-menu-container {
    margin-left: auto;
}

.navbar-item {
    text-decoration: none;
    color: #424245;
    font-size: 16px;
    font-weight: 500;
    /* 优化过渡效果 - 更快结束且无多余颜色过渡 */
    transition: background-color 0.2s ease-out, box-shadow 0.2s ease-out;
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    height: 40px;
    background: transparent;
}

/* 悬停效果 - 玻璃质感 */
.navbar-item:hover {
    color: #000;
    background: rgba(255, 255, 255, 0.8); /* 稍微更白一点，增加对比 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.1s ease-in; /* 悬停时极快响应 */
}

/* 激活状态 */
.navbar-item.active {
    color: #0071e3;
    background: rgba(0, 113, 227, 0.1);
    font-weight: 600;
}

.navbar-item.active::after {
    display: none; /* 移除原来的下划线 */
}

/* 英雄横幅样式 - 浅色系 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f7; /* 浅色底色 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 10px 0;
}

/* 景深渐变背景动画 - 适配浅色 - 增强效果 */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* 增加透明度，让颜色更明显 */
    background: radial-gradient(circle at center, rgba(0, 113, 227, 0.25) 0%, rgba(142, 68, 173, 0.2) 30%, rgba(255, 255, 255, 0) 70%);
    animation: rotate 20s linear infinite;
    z-index: 1;
    filter: blur(50px); /* 稍微减小模糊，让轮廓更清晰 */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 增加透明度，让颜色更明显 */
    background: radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.25), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(155, 89, 182, 0.25), transparent 50%);
    z-index: 1;
    filter: blur(30px);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2; /* 确保内容在背景之上 */
    padding-left: 10px;
    padding-right: 10px;
}

.hero-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 40px; /* 增加底部间距，防止下方文字跑上来 */
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: none;
    text-transform: none;
    white-space: nowrap;
    display: flex; /* 使用 flex 布局来对齐文字 */
    align-items: baseline; /* 基线对齐 */
    justify-content: center;
    gap: 8px; /* 稍微增加单词间距 */
    padding-left: 15px; /* 调整左侧内边距，使C字母与导航栏首页按钮对齐 */
}

/* 首字母特殊样式 - 玻璃质感 */
.first-letter {
    font-size: 3.8em; /* 稍微再大一点点 */
    font-weight: 600;
    line-height: 0.9;
    display: inline-block;
    transform: translateY(10px);
    
    /* 玻璃质感核心代码 - 往深蓝色偏转 */
    color: transparent; /* 文字透明 */
    background: linear-gradient(135deg, #003366 0%, #0055aa 30%, #3388ff 50%, #0055aa 70%, #003366 100%); /* 深蓝色渐变 */
    -webkit-background-clip: text; /* 背景裁剪为文字形状 */
    background-clip: text;
    
    /* 添加多重阴影模拟玻璃的光泽和厚度 */
    filter: drop-shadow(0 4px 6px rgba(0, 51, 102, 0.3));
    
    /* 添加一个微妙的内发光效果（通过 text-shadow 模拟） */
    text-shadow: 0 0 0 rgba(255,255,255,0.2); 
}

.hero-content .zh-title {
    display: none; /* 隐藏中文标题 */
}

.subtitle {
    font-size: 20px;
    color: #86868b;
    margin-bottom: 4px; /* 大幅减小间距，让文字靠近按钮 */
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    top: 0; /* 复位 */
}

.hero-buttons {
    margin-top: 30px; /* 调整按钮上边距 */
    display: flex;
    justify-content: center;
}

/* 大号按钮样式 - 适配浅色背景 */
.btn-large {
    padding: 18px 48px;
    font-size: 20px;
    border-radius: 50px;
    background: #0071e3; /* 实色背景 */
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-large:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 113, 227, 0.4);
}

/* 登录页面样式 */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a; /* 调亮背景色 */
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 113, 227, 0.4), transparent 60%); /* 增加亮度 */
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 10;
    text-align: center;
}

.login-logo {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.login-subtitle {
    color: #86868b;
    margin-bottom: 40px;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form .form-input {
    background: #f5f5f7;
    border: 1px solid transparent;
    padding: 16px;
    font-size: 16px;
}

.login-form .form-input:focus {
    background: #fff;
    border-color: #0071e3;
}

.btn-block {
    width: 100%;
    margin-bottom: 16px;
    padding: 16px;
}

.guest-link {
    color: #86868b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.guest-link:hover {
    color: #1d1d1f;
    text-decoration: underline;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #0071e3;
    color: white;
}

.btn-primary:hover {
    background-color: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #0071e3;
    border: 1px solid #0071e3;
}

.btn-secondary:hover {
    background-color: rgba(0, 113, 227, 0.06);
}

.btn-outline {
    background-color: transparent;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: #86868b;
}

/* 模块区域样式 */
.modules {
    padding: 80px 10px;
    background-color: #f5f5f7;
}

.modules-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.module-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 113, 227, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.module-card > * {
    margin-bottom: 16px;
}

.module-card > :last-child {
    margin-bottom: 0;
    margin-top: auto;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.module-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.module-card h4 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.module-card p {
    font-size: 16px;
    color: #86868b;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 关于我们样式 */
.about {
    padding: 40px 20px;
    background-color: #e8e8ed;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.about-text h4 {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-text p {
    font-size: 18px;
    color: #86868b;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 关于我们页面样式 */
.about-us-section {
    background-color: #e0e0e0;
    padding: 80px 0;
}

.about-us-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

.about-us-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-us-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.about-us-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #424245;
}

/* 关于我们页面样式 */
.about-page {
    padding: 40px 0;
    background-color: #f5f5f7;
}

.about-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

.about-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-page-header h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.about-page-header p {
    font-size: 16px;
    color: #424245;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-section h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #424245;
}

/* 页脚样式 */
.footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.footer-info p:last-child {
    margin-bottom: 0;
}

.footer-info a {
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
}

.footer-info a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .modules-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .module-card {
        padding: 30px 20px;
    }

    .module-card h4 {
        font-size: 20px;
    }
}

/* 模块页面样式调整 - 静态背景微调 */
.module-page {
    margin-top: 0;
    padding-top: 100px;
    min-height: 100vh;
    padding-bottom: 60px;
    padding-left: 10px;
    padding-right: 10px;
    /* 调整背景：更柔和，与首页色系一致 */
    background: 
        radial-gradient(circle at 15% 15%, rgba(0, 113, 227, 0.05), transparent 40%), /* 降低透明度 */
        radial-gradient(circle at 85% 85%, rgba(142, 68, 173, 0.05), transparent 40%),
        #f5f5f7;
    background-attachment: fixed;
}

.module-page-container {
    max-width: 1400px;
    margin: 0 auto;
}

.module-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.module-page-header h3 {
    font-size: 40px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.module-page-header p {
    font-size: 18px;
    color: #86868b;
}

/* 表单样式 */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: #ffffff;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

/* 消息列表样式 */
.message-list {
    margin-top: 40px;
}

.message-item {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.message-author {
    font-weight: 600;
    color: #1d1d1f;
}

.message-date {
    font-size: 14px;
    color: #86868b;
}

.message-content {
    color: #424245;
    line-height: 1.6;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 113, 227, 0.3);
    border-radius: 50%;
    border-top-color: #0071e3;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 状态提示 */
.status {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

.status.success {
    background-color: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.status.error {
    background-color: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.status.info {
    background-color: rgba(0, 122, 255, 0.1);
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.3);
}

/* 登录表单选项样式 */
.form-options {
    margin-bottom: 20px;
    text-align: left;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #424245;
    margin: 0;
    padding: 0;
}

.checkbox-wrapper input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-wrapper span {
    line-height: 1;
    vertical-align: middle;
}