/* =============================================
   100天减肥打卡网站 - 样式表
   ============================================= */

/* ==================== 图标系统 ==================== */
/* 使用 Font Awesome 图标库 */
.icon {
    display: inline-block;
    font-style: normal;
    vertical-align: -0.15em;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
}

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

h2:after {
    position: relative;
    z-index: 0;
    top: 1px;
    right: 18px;
    display: inline-block;
    content: "";
    width: 28px;
    height: 28px;
    background: linear-gradient(180deg, #37d786, rgba(104, 237, 187, .16));
    opacity: .52;
    border-radius: 50%;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    height: 60px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 0px;
    font-weight: bold;
    text-decoration: none;
    color: #0f172a;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0f172a;
}

.tucooladmin{
    display: flex;
    text-align: center;
    background: linear-gradient(135deg, #7fecb5 0%, #37d786 100%);
    box-shadow: 11px 6px 44px rgba(36, 142, 88, .22), inset 0 1px 13px rgba(255, 255, 255, .5);
    border-radius: 26px;
    width: 91px;
    height: 33px;
    color: #000000;
    align-content: flex-start;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    border-radius: 26px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #7fecb5 0%, #37d786 100%);
    box-shadow: 11px 6px 44px rgba(36, 142, 88, .22), inset 0 1px 13px rgba(255, 255, 255, .5);
    border-radius: 26px;
    /*width: 180px;*/
    /*height: 49px;*/
    color: #00773b;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #f1fff8 0%, #deffee 100%);
    color: #282828;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    display: flex;
    align-items: center;
    font-size: 48px;
    margin-bottom: 16px;
    flex-wrap: nowrap;
    justify-content: center;
}

.avatar-logo {
    height: 60px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* 功能介绍 */
.features {
    padding: 40px 0px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f0f9f4;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    color: rgb(39 174 96 / var(--tw-text-opacity, 1));
    /* border-radius: 9999px; */
    /* background-color: rgb(39 174 96 / 0.1); */
    font-size: 38px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: #27ae60;
    margin-bottom: 10px;
}

.feature-card p {
    color: #64748b;
}

/* 排行榜 */
.ranking-section {
    padding: 40px 0px;
    background: white;
}

.section-title {
    position: relative;
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.section-title i {
    color: #ffbd02;
}

.section-title:after {
    position: absolute;
    z-index: 0;
    top: 0px;
    right: 560px;
    display: inline-block;
    content: "";
    width: 36px;
    height: 36px;
    background: linear-gradient(180deg, #37d786, rgba(104, 237, 187, .16));
    opacity: .52;
    border-radius: 50%;
}

.ranking-table {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ranking-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px 150px;
    padding: 16px 20px;
    background: #f8fafc;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
}

.ranking-item {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px 150px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item.current-user {
    background: #eff6ff;
}

.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.medal .icon {
    font-size: 14px;
}

.medal-1 { 
    background: linear-gradient(135deg, #FFD700, #FFA500); 
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}
.medal-2 { 
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8); 
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}
.medal-3 { 
    background: linear-gradient(135deg, #CD7F32, #B8860B); 
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #64748b;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #7fecb5;
    font-size: 18px;
    flex-shrink: 0;
    color: #ffffff;
}

.nickname {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
}

.days-badge {
    background: #eff6ff;
    color: #3b82f6;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.weight-loss {
    color: #10b981;
    font-weight: 600;
}

.weight-gain {
    color: #dc2626;
    font-weight: 600;
}

.progress-mini {
    width: 80px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.progress-bar-mini {
    height: 100%;
    background: #10b981;
    border-radius: 3px;
}

.progress-text {
    font-size: 13px;
    color: #64748b;
}

/* 查看全部按钮 */
.view-all-container {
    text-align: center;
    margin-top: 30px;
}

.view-all-container .btn.btn-outline {
    background: white;
    border: 2px solid #e2e8f0;
    color: #10b981;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-all-container .btn.btn-outline:hover {
    background: linear-gradient(135deg, #7fecb5 0%, #37d786 100%);
    box-shadow: 11px 6px 44px rgba(36, 142, 88, .22), inset 0 1px 13px rgba(255, 255, 255, .5);
    border-radius: 26px;
    color: #00773b;
}

/* 认证页面 */
.auth-page {
    background: linear-gradient(135deg, #7fecb5 0%, #37d786 100%);
    min-height:100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 22px;
    color: #00773b;
    margin-bottom: 10px;
}

.auth-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
}

.auth-footer a {
    color: #10b981;
    text-decoration: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:disabled {
    background: #f8fafc;
    color: #64748b;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

/* 提示框 */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
}

.trend-down {
    color: #10b981;
}

.trend-up {
    color: #dc2626;
}

/* 头部卡片 */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #7fecb5 0%, #37d786 100%);
    color: #00773b;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin-bottom: 12px;
    font-size: 32px;
}

.header p {
    opacity: 0.9;
    font-size: 16px;
}

/* 进度条 */
.progress-section {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.progress-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
}

.progress-bar-container {
    background: #e2e8f0;
    border-radius: 999px;
    height: 24px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    min-width: 40px;
    transition: width 0.5s ease;
}

/* 详细数据区域 */
.summary-section {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.summary-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #0f172a;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.summary-item {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.summary-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 24px;
    font-weight: bold;
    color: #0f172a;
}

/* 打卡记录 */
.records-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    overflow-x: auto;
}

.records-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
}

.record-item {
    flex: 0 0 calc(15% - 8px);
    max-width: 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    aspect-ratio: 1 / 1;
    transition: all 0.2s;
}

.record-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.record-item.today {
    border-color: #10b981;
    border-width: 2px;
}

.record-item.future {
    opacity: 0.6;
}

.record-day-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.day-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7fecb5 0%, #37d786 100%);
    color: white;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}

.day-badge.today {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.day-badge.future {
    background: #cbd5e1;
}

.record-date {
    font-size: 10px;
    color: #64748b;
}

.today-label {
    color: #10b981;
    font-size: 11px;
    font-weight: bold;
}

.future-label {
    color: #94a3b8;
    font-size: 11px;
}

.record-weight-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.record-weight-label {
    font-size: 12px;
    color: #94a3b8;
}

.weight-input {
    width: 100%;
    max-width: 70px;
    padding: 4px 2px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}

.weight-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.weight-input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
    color: #94a3b8;
}

.weight-input.saving {
    border-color: #3b82f6 !important;
}

.weight-input.saved {
    border-color: #10b981 !important;
}

.weight-input.error {
    border-color: #ef4444 !important;
}

.record-change-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-top: auto;
}

.change-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    gap: 4px;
}

.change-down {
    background: #d1fae5;
    color: #059669;
}

.change-up {
    background: #fee2e2;
    color: #dc2626;
}

.change-same {
    background: #e0e7ff;
    color: #4f46e5;
}

.pending-badge {
    background: #f1f5f9;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.waiting-badge {
    color: #94a3b8;
    font-size: 12px;
}

/* 个人中心 */
.profile-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-card h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.avatar-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.avatar-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
}

.avatar-default-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #7fecb5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state p {
    margin-bottom: 20px;
}

/* 页脚 */
.footer {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* 响应式 */
/* 移动端汉堡菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* 移动端菜单遮罩 */
.menu-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .records-grid {
        flex-wrap: wrap;
    }
    .record-item {
        flex: 0 0 calc(50% - 8px);
        max-width: none;
        aspect-ratio: auto;
        min-height: 130px;
    }
    .record-day-info {
        flex-direction: row;
        gap: 10px;
    }
    .day-badge {
        width: 38px;
        height: 38px;
        border-radius: 50px;
        font-size: 14px;
    }
    .record-date {
        font-size: 12px;
    }
    .weight-input {
        max-width: none;
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    
    .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    padding: 24px 16px;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 16px;
}

.feature-card p {
    font-size: 13px;
}
    /* 移动端导航栏 */
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        display: block;
        padding: 16px 20px;
        border-bottom: 1px solid #e2e8f0;
        font-size: 15px;
        color: #334155;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a:hover {
        background: #f8fafc;
        color: #667eea;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .records-grid {
        padding: 12px;
        gap: 10px;
    }
    
    .record-item {
        padding: 12px;
        min-height: 120px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ranking-header,
    .ranking-item {
        grid-template-columns: 60px 1fr 80px 80px;
    }
    
    .col-progress {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    /* 移动端页面顶部间距 */
    body {
        padding-top: 60px;
    }
}

/* ==================== 友情链接样式 ==================== */
.friendly-links-section {
    margin-bottom: 40px;
}

/* 友情链接标题和按钮行 */
.friendly-links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.friendly-links-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #0f172a;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.3s;
    gap: 12px;
}

.link-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.link-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
}

.link-logo-default {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-info p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-arrow {
    opacity: 0;
    transition: opacity 0.3s;
}

.link-card:hover .link-arrow {
    opacity: 1;
}

.apply-link-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.apply-link-section h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #0f172a;
}

.section-desc {
    color: #64748b;
    margin-bottom: 24px;
}

.apply-tips {
    margin-top: 24px;
    padding: 20px;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.apply-tips h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #b45309;
}

.apply-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apply-tips li {
    font-size: 13px;
    color: #92400e;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.apply-tips li:before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #f59e0b;
}

/* ==================== 侧边栏社交按钮 ==================== */
.sidebar-social {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.social-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 12px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px 0 0 8px;
    white-space: nowrap;
    letter-spacing: 2px;
}

.social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 25px 25px 25px 25px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.social-btn:hover {
    width: 52px;
    box-shadow: -4px 0 12px rgba(0,0,0,0.2);
}

.social-btn .icon {
    font-size: 24px;
}

.social-tooltip {
    position: absolute;
    right: 60px;
    background: #0f172a;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
}

.social-btn:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    right: 55px;
}

/* ==================== 微信二维码弹窗 ==================== */
.wechat-qrcode-modal {
    display: none;
    z-index: 2000;
}

.wechat-qrcode-modal.active {
    display: block;
}

.qrcode-modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 230px;
    width: 100%;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.qrcode-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.qrcode-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.qrcode-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.qrcode-modal-body {
    padding: 15px 15px;
    text-align: center;
}

.qrcode-modal-body img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
}

.qrcode-modal-body p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .qrcode-modal-content {
        max-width: 280px;
    }

    .qrcode-modal-body img {
        width: 180px;
        height: 180px;
    }

    .qrcode-modal-header h3 {
        font-size: 16px;
    }

    .qrcode-modal-body p {
        font-size: 12px;
    }
}

/* ==================== 移动端底部导航 ==================== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: none;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748b;
    padding: 4px 12px;
    transition: all 0.3s;
    min-width: 0;
}

.mobile-nav-item .icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: #667eea;
}

/* 移动端显示底部导航 */
@media (max-width: 768px) {
    .mobile-nav {
       flex-flow: nowrap;
        align-items: center;
        margin: 0 20px 2vh;
        padding: 10px 8px;
        border-radius: 50vh;
        background: rgba(255, 255, 255, .5);
        -webkit-backdrop-filter: saturate(2) blur(10px);
        backdrop-filter: saturate(2) blur(10px);
        box-shadow: 0 4px 6px -2px rgba(0, 0, 0, .1), 4px 0 6px -2px rgba(0, 0, 0, .1);
        display: flex;
    }
    
    body {
        padding-bottom: 70px; /* 为底部导航留出空间 */
    }
}

/* ==================== 内容包装器 ==================== */
.content-wrapper {
    /*display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;*/
    padding-top: 80px;
    padding-bottom: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.main-content {
    min-width: 0;
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar-social {
        display: none;
    }
}

/* ==================== 页面区域 ==================== */
.page-section {
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}
}

/* ==================== 成就消息 ==================== */
.achievement-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

/* 成就消息通知栏 - 滚动样式 */
.achievement-messages {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f8fafc 100%);
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin: 20px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 左侧图标 */
.achievement-notice-icon {
    flex-shrink: 0;
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}

/* 中间滚动内容区 */
.achievement-notice-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 40px;
    position: relative;
}

/* 滚动容器 */
.achievement-notice-scroll {
    display: flex;
    gap: 50px;
    animation: scroll 25s linear infinite;
    white-space: nowrap;
}

/* 滚动动画 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 单条消息 */
.achievement-notice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 5px;
}

/* 用户头像 */
.achievement-notice-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
    flex-shrink: 0;
}

.achievement-notice-avatar-default {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border: 2px solid #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 12px;
}

.achievement-notice-avatar i {
    font-size: 12px;
}

/* 消息文字 */
.achievement-notice-text {
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

/* 内联成就图标 */
.achievement-icon-inline {
    font-size: 16px;
    margin-right: 4px;
}

/* 右侧箭头 */
.achievement-notice-arrow {
    flex-shrink: 0;
    font-size: 24px;
    color: #718096;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.achievement-notice-arrow:hover {
    transform: translateX(3px);
    color: #667eea;
}

@media (max-width: 768px) {
    .achievement-messages {
        padding: 8px 14px;
        gap: 8px;
    }

    .achievement-notice-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .achievement-notice-avatar,
    .achievement-notice-avatar-default {
        width: 24px;
        height: 24px;
    }

    .achievement-notice-avatar-default i {
        font-size: 10px;
    }

    .achievement-notice-text {
        font-size: 13px;
    }

    .achievement-notice-arrow {
        font-size: 20px;
    }

    .achievement-notice-scroll {
        gap: 30px;
    }
}
