@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Noto Sans SC', 'Caveat', cursive, sans-serif; 优先思源黑体，其次英文手写体，最后系统无衬线 */
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace, sans-serif;;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%); /* 圣诞绿渐变背景 */
    color: #ffffff; /* 默认白色文字 */
    min-height: 100vh;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center; /* 改为居中对齐 */
}

/* App wrapper - 确保垂直布局 */
.app-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

/* 调整粉笔效果，使其更清晰 */
.chalk-effect {
    /* text-shadow: 1.5px 1.5px 0px rgba(255, 255, 255, 0.4), -1.5px -1.5px 0px rgba(255, 255, 255, 0.4);  */
    /* 更清晰的投影 */
    /* filter: url(#chalk-filter);  */
    /* SVG滤镜模拟粉笔粗糙感 */
}

.container {
    max-width: 3000px;
    width: 95%;
    /* margin: 10px auto; */
    margin-top: 0;
    background: linear-gradient(135deg, #1e7a4f 0%, #2c8f5f 100%); /* 圣诞绿容器背景 */
    border: 5px solid #ffffff; /* 白色边框 */
    border-radius: 10px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4); /* 增强阴影效果 */
    overflow: hidden;
    padding: 30px;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 0px;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3); /* 粉笔虚线 */
}

.header h1 {
    font-size: 3.5em;
    color: #c0392b; /* 圣诞红色标题 */
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    -webkit-text-stroke: 2px #ffffff; /* 白色边框 */
    paint-order: stroke fill; /* 确保边框在文字下方 */
}

.date-display {
    font-size: 1.8em;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff; /* 默认白色粉笔 */
    background-color: rgba(255, 255, 255, 0.1);
}

.date-display.green {
    color: #2ecc71; /* 绿色粉笔 */
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

.date-display.red {
    color: #e74c3c; /* 红色粉笔 */
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.content {
    padding: 10px 0;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 5px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05); /* 统计区域背景 */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: nowrap;
    position: relative;
    min-height: 120px; /* 保持原来的高度：padding(20px*2) + min-height(80px) */
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 30px;
    position: absolute;
}

.stat-item:nth-child(1) {
    left: 25%;
    transform: translateX(-50%);
}

.stat-item:nth-child(2) {
    left: 75%;
    transform: translateX(-50%);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #c0392b; /* 蓝色粉笔 */
}

.stat-label {
    color: #ffffff; /* 浅灰色粉笔 */
    font-size: 1.1em;
}

.textarea-container {
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}

textarea {
    width: 100%;
    min-height: 425px;
    padding: 25px;
    border: 2px dashed #ffffff; /* 粉笔虚线边框 */
    border-radius: 10px;
    font-size: 1.5em;
    /* font-family: 'Noto Sans SC', 'Caveat', cursive, sans-serif; 使用新字体 */
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace, sans-serif;;
    resize: vertical;
    background-color: rgba(255, 255, 255, 0.15); /* 半透明，模拟黑板上写字 */
    color: #ffffff; /* 白色粉笔字 */
    line-height: 1.8;
    transition: border-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

/* Focus模式下的textarea-container居中 */
.focus-mode-container .textarea-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* Focus模式下文本框宽度为66vw，计算时减去容器padding */
.focus-mode-container textarea {
    width: calc(66vw - 60px) !important;
    max-width: calc(100% - 60px) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Focus模式下进度条宽度与textarea保持一致 */
.focus-mode-container .progress-bar {
    width: calc(66vw - 60px) !important;
    max-width: calc(100% - 60px) !important;
    margin: 10px auto 0 auto !important;
}

textarea::placeholder {
    color: rgba(236, 240, 241, 0.6); /* 占位符颜色 */
}

textarea:focus {
    outline: none;
    border-color: #c0392b; /* 焦点时蓝色粉笔边框 */
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* 锁定状态下的textarea样式 */
textarea.locked {
    background-color: rgba(189, 195, 199, 0.3) !important;
    border-color: rgba(52, 73, 94, 0.5) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

textarea.locked:focus {
    border-color: rgba(52, 73, 94, 0.5) !important;
    box-shadow: none !important;
}

/* 锁定提示信息样式 */
.lock-notice {
    background-color: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #ffffff, #c0392b, #2ecc71); /* 彩色粉笔渐变 */
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-fill.complete {
    background: linear-gradient(90deg, #2ecc71, #27ae60); /* 完成后绿色渐变 */
}

.action-buttons-container {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.export-section,
.save-section {
    margin-bottom: 15px;
    text-align: center;
}

.export-btn {
    background: linear-gradient(45deg, #c0392b, #a93228);
    color: #ffffff;
    border: 2px dashed #ffffff;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.5em;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.export-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #a93228, #c0392b);
}

.export-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.export-btn:disabled {
    background: #616e7c; /* 灰色粉笔 */
    border-color: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #ffffff;
}

.save-section {
    margin: 30px 0;
    text-align: center;
}

.save-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: #ffffff;
    border: 2px dashed #ffffff;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.5em;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #2980b9, #3498db);
}

.save-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.save-btn:disabled {
    background: #616e7c; /* 灰色粉笔 */
    border-color: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #ffffff;
}

.tips {
    background-color: rgba(241, 196, 15, 0.1); /* 黄色粉笔提示背景 */
    border: 2px dashed #ffffff; /* 黄色粉笔虚线边框 */
    border-radius: 10px;
    padding: 20px;
    margin-top: 5px;
    color: #ffffff; /* 黄色粉笔字 */
    font-size: 1.2em;
}

.tips h3 {
    margin-bottom: 15px;
    color: #e67e22; /* 橙色粉笔 */
    font-size: 1.8em;
}

.tips ul {
    list-style: none; /* 移除默认列表点 */
    padding-left: 0;
}

.tips li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px; /* 为自定义图标留出空间 */
}

.tips li::before {
    content: '✎'; /* 粉笔图标 */
    position: absolute;
    left: 0;
    color: #e67e22; /* 橙色粉笔图标 */
    font-size: 1.2em;
    top: -2px;
}

.week-stats {
    margin: 0px 0;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.week-stats h3 {
    color: #c0392b; /* 蓝色粉笔标题 */
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    -webkit-text-stroke: 1.5px #ffffff; /* 白色边框 */
    paint-order: stroke fill; /* 确保边框在文字下方 */
}

.week-stats h3::before {
    content: '📅';
    margin-right: 10px;
}

/* 周导航头部 */
.week-stats-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.week-stats-header h3 {
    margin-bottom: 0;
    text-align: center;
}

/* 居中的周导航按钮 */
.week-navigation-center {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.week-nav-button {
    background-color: rgba(52, 152, 219, 0.2);
    border: 2px solid #3498db;
    color: #3498db;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.week-nav-button:hover {
    background-color: rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.week-nav-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.week-nav-button .arrow {
    color: #f1c40f;
}

.week-nav-button.today-button {
    background-color: rgba(241, 196, 15, 0.2);
    border-color: #f1c40f;
    color: #f1c40f;
    font-size: 1.1em;
    padding: 0 20px;
    line-height: 1;
}

.week-nav-button.today-button:hover {
    background-color: rgba(241, 196, 15, 0.4);
    box-shadow: 0 4px 8px rgba(241, 196, 15, 0.3);
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.day-item {
    position: relative;
    padding: 15px 8px;
    border-radius: 10px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.day-item .day-name {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.3em;
    color: #ffffff;
}

.day-item .day-date {
    font-size: 1.1em;
    color: #ffffff;
}

.day-item.completed {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.3), rgba(39, 174, 96, 0.3));
    border-color: #2ecc71;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    transform: translateY(0px);
}

.day-item.completed .day-name,
.day-item.completed .day-date {
    color: #2ecc71;
}

.day-item.incomplete {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.day-item.incomplete .day-name,
.day-item.incomplete .day-date {
    color: #ffffff;
}

.day-item.future-date {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    cursor: not-allowed !important;
    box-shadow: none;
    transform: none;
}

.day-item.future-date .day-name,
.day-item.future-date .day-date {
    color: rgba(255, 255, 255, 0.4);
}

.day-item.today {
    /* 移除特殊边框，让今天和其他日期边框一致 */
    box-shadow: 0 0 15px rgba(192, 57, 43, 0.5);
}

.day-item.today .day-name {
    animation: twinkle 1.5s infinite; /* 闪烁效果 */
}

.day-item.viewing {
    border: 3px solid #f39c12; /* 橙色边框表示正在查看 */
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.6);
    background-color: rgba(243, 156, 18, 0.1);
    transform: scale(1.05); /* 稍微放大 */
}

.day-item.viewing .day-name {
    color: #f39c12;
    animation: pulse 2s infinite; /* 脉冲效果 */
}

.day-item.viewing .day-date {
    color: #f39c12;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.week-progress {
    margin-top: 20px;
    text-align: center;
    color: #ffffff; /* 黄色粉笔 */
    font-size: 1.1em;
    padding: 15px;
    background-color: rgba(241, 196, 15, 0.1);
    border-radius: 10px;
    border: 2px dashed #ffffff;
}

/* 进度文本 */
.week-progress .progress-label {
    display: inline; /* 默认同行显示 */
    font-size: 1.1em;
}

.week-progress .progress-count {
    display: block; /* 第二行 */
    margin-top: 8px;
    font-weight: medium;
    font-size: 1.3em;
}

/* 数字部分绿色显示 */
.week-progress .progress-count .count-number {
    color: #2ecc71; /* 绿色粉笔 */
}

/* "7 days" 部分保持默认颜色 */
.week-progress .progress-count .count-text {
    color: #ffffff;
}

/* 粉笔手绘图标模拟 */
/* .icon-diary::before { content: "📖"; color: #ffffff; }  */
/* 黄色书本 */
/* SVG 滤镜模拟粉笔粗糙感 */
.title-star {
    vertical-align: middle;
}
svg {
    position: absolute;
    width: 0;
    height: 0;
}

/* 礼花特效样式 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffffff;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.celebration-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(241, 196, 15, 0.8);
    animation: celebration-pop 2s ease-out forwards;
    z-index: 10000;
    pointer-events: none;
}

@keyframes celebration-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 登录页面样式 */
.auth-container {
    text-align: center;
    max-width: 600px;
    margin: 100px auto;
}

.auth-box {
    background-color: rgba(52, 73, 94, 0.8);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 40px;
    margin: 30px auto;
    backdrop-filter: blur(10px);
}

.auth-box h2 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.auth-box p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
    line-height: 1.6;
}

.auth-button {
    background: linear-gradient(45deg, #c0392b, #a93228);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.auth-button:hover {
    background: linear-gradient(45deg, #a93228, #922b21);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #34495e;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-button:hover {
    background-color: rgba(231, 76, 60, 0.8);
}

/* 头部布局调整 */
.header {
    display: flex;
    justify-content: center; /* 整体居中 */
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
    position: relative; /* 为绝对定位的右侧元素提供参考 */
}

.header-left {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    align-items: center; /* 居中对齐 */
    gap: 8px; /* 标题和日期之间的间距 */
}

/* 标题和Logo的横向容器 */
.header-title-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

/* Logo样式 */
.header-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* 用户按钮容器 - 登录后显示在右侧 */
.user-button-container {
    position: absolute; /* 绝对定位到右侧 */
    right: 0;
    top: 50%;
    transform: translateY(-50%); /* 垂直居中 */
}

/* 登录提示按钮 - 未登录时显示在日期下方 */
.login-prompt {
    display: flex;
    justify-content: center; /* 居中对齐 */
    margin-top: 10px; /* 与日期的间距 */
}

/* 登录提示按钮 */
.auth-button-small {
    background: linear-gradient(45deg, #c0392b, #a93228);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.auth-button-small:hover {
    background: linear-gradient(45deg, #a93228, #922b21);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.6);
}

/* Focus模式样式 - 与原始容器保持一致 */
.focus-mode-container {
    max-width: 3000px;
    width: 98%;
    margin: 20px auto;
    background: linear-gradient(135deg, #1e7a4f 0%, #2c8f5f 100%); /* 与原始容器相同的圣诞绿背景 */
    border: 5px solid #ffffff; /* 与原始容器相同的白色边框 */
    border-radius: 10px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4); /* 与原始容器相同的阴影 */
    overflow: hidden;
    padding: 30px;
    position: relative;
}

/* 退出Focus按钮 - 位于文本框下方并居中 */
.exit-focus-button {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    margin: 20px auto 0 auto;
    display: block;
}

.exit-focus-button:hover {
    background: linear-gradient(45deg, #c0392b, #a93228);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.6);
}

.exit-focus-button:active {
    transform: translateY(0);
}

/* 模式按钮容器 */
.mode-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 10px auto;
}

/* Focus按钮 - 与Exit Focus按钮样式一致 */
.focus-button {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.focus-button:hover {
    background: linear-gradient(45deg, #c0392b, #a93228);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.6);
}

.focus-button:active {
    transform: translateY(0);
}

/* Panda按钮样式 */
.panda-button {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
}

.panda-button:hover {
    background: linear-gradient(45deg, #34495e, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.6);
}

.panda-button:active {
    transform: translateY(0);
}

/* Wander按钮样式 - 漫游模式 */
.mode-buttons .wander-button {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
}

.mode-buttons .wander-button:hover {
    background: linear-gradient(45deg, #8e44ad, #7d3c98);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(155, 89, 182, 0.6);
}

.mode-buttons .wander-button:active {
    transform: translateY(0);
}

/* 熊猫模式 - 黑白色样式 */
.panda-mode {
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
}

/* 熊猫模式下，所有子元素也应用黑白滤镜 */
.panda-mode * {
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
}

/* 登录按钮区域 - 在Header和WebsiteIntro之间 */
.login-section-wrapper {
    max-width: 3000px;
    width: 95%;
    margin: 20px auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-prompt-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-button-main {
    background: linear-gradient(45deg, #c0392b, #a93228);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1.4em;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.5);
    text-transform: none;
}

.auth-button-main:hover {
    background: linear-gradient(45deg, #a93228, #922b21);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.7);
}

.auth-button-main:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.5);
}

/* 网站介绍模块 - 只对匿名用户显示 */
.website-intro {
    max-width: 3000px;
    width: 95%;
    margin: 20px auto;
    background: linear-gradient(135deg, #1e7a4f 0%, #2c8f5f 100%);
    border: 5px solid #ffffff;
    border-radius: 10px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4);
    padding: 40px 30px;
    color: #ffffff;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-title {
    font-size: 2.5em;
    color: #f1c40f;
    margin-bottom: 20px;
    text-align: center;
    -webkit-text-stroke: 1px #ffffff;
    paint-order: stroke fill;
}

.intro-description {
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.5em;
    color: #f1c40f;
    margin-bottom: 10px;
    font-weight: bold;
}

.feature-text p {
    font-size: 1.1em;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
}

@media (max-width: 1080px) {
    body {
        display: block;
        padding: 0;
        align-items: flex-start;
    }

    #root {
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .container {
        width: 95%;
        max-width: 3000px;
        /* margin: 10px auto 0 auto; */
        padding: 30px;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .header-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .header-title-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .header-logo {
        width: 60px;
        height: 60px;
    }

    /* 平板端：网站介绍模块样式调整 */
    .intro-title {
        font-size: 2em;
    }

    .intro-description {
        font-size: 1.15em;
    }

    .intro-features {
        gap: 20px;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-text h3 {
        font-size: 1.3em;
    }

    .feature-text p {
        font-size: 1em;
    }

    /* 平板端：登录按钮样式调整 */
    .login-section-wrapper {
        margin: 20px auto 0 auto;
    }

    .auth-button-main {
        padding: 15px 40px;
        font-size: 1.3em;
    }

    /* 移动端隐藏Logo */
    .header-logo {
        display: none;
    }

    /* 移动端：用户头像显示在右侧 */
    .user-button-container.mobile-avatar {
        position: absolute; /* 绝对定位到右侧 */
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        flex-shrink: 0 !important;
        overflow: hidden;
    }

    .user-button-container.mobile-avatar > *,
    .user-button-container.mobile-avatar button,
    .user-button-container.mobile-avatar img {
        transform: scale(1) !important;
        max-width: 50px !important;
        max-height: 50px !important;
        width: 50px !important;
        height: 50px !important;
    }

    /* 移动端header布局调整 */
    .header {
        position: relative; /* 为绝对定位的头像提供参考 */
        flex-direction: column;
        gap: 15px;
    }

    .header-left {
        width: 100%;
    }

    /* header-title-row包含用户头像（通过JS移动）或显示空间 */
    .header-title-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: relative;
    }

    .login-prompt {
        margin-top: 15px;
        display: flex;
        justify-content: center;
    }

    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .stats {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .textarea-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    textarea {
        width: 100%;
        max-width: 100%;
    }

    .week-stats {
        width: 100%;
    }

    .export-section {
        width: 100%;
        text-align: center;
    }

    .tips {
        width: 100%;
    }

    /* Focus模式特殊样式 */
    .focus-mode-container {
        width: 90%;
        max-width: 900px;
        height: 80vh;
        margin: 10vh auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .focus-mode-container .content {
        flex: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .focus-mode-container .textarea-container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .focus-mode-container textarea {
        width: 100%;
        height: 100%;
        min-height: 500px;
    }

    .exit-focus-button {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    * {
        max-width: 100%; /* 所有元素最大宽度100% */
    }

    body {
        padding: 0; /* 移除padding避免内容被裁切 */
        align-items: flex-start; /* 改为顶部对齐 */
        overflow-x: hidden; /* 防止水平滚动条 */
        width: 100vw !important;
        min-width: 100vw !important;
        /* height: 95vh !important; */
    }

    #root {
        width: 100% !important;
        min-width: 100% !important;
    }

    .container {
        width: 100%; /* 使用100%宽度 */
        padding: 8px; /* 减少padding */
        margin: 0 auto;
        max-height: none; /* 移除最大高度限制 */
        box-sizing: border-box; /* 确保padding包含在宽度内 */
    }

    .header h1 {
        font-size: 1.8em;
    }

    /* 480px移动端：登录按钮样式调整 */
    .login-section-wrapper {
        width: 100%;
        margin: 15px 0 0 0;
        padding: 0 10px;
    }

    .auth-button-main {
        padding: 12px 30px;
        font-size: 1.1em;
    }

    /* 480px移动端：网站介绍模块样式调整 */
    .website-intro {
        width: 100%;
        margin: 10px 0;
        padding: 20px 15px;
        border-radius: 8px;
    }

    .intro-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .intro-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .intro-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-item {
        padding: 15px;
        gap: 15px;
    }

    .feature-icon {
        font-size: 2em;
    }

    .feature-text h3 {
        font-size: 1.2em;
        margin-bottom: 8px;
    }

    .feature-text p {
        font-size: 0.95em;
    }

    /* 480px移动端：隐藏Logo */
    .header-logo {
        display: none;
    }

    /* 480px移动端：用户头像显示在右侧 */
    .user-button-container.mobile-avatar {
        position: absolute; /* 绝对定位到右侧 */
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
        flex-shrink: 0 !important;
        overflow: hidden;
    }

    .user-button-container.mobile-avatar > *,
    .user-button-container.mobile-avatar button,
    .user-button-container.mobile-avatar img {
        transform: scale(1) !important;
        max-width: 35px !important;
        max-height: 35px !important;
        width: 35px !important;
        height: 35px !important;
    }

    .date-display {
        font-size: 1.2em;
        padding: 6px 12px;
    }

    .stats {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important; /* 允许换行 */
        gap: 4px; /* 减少间距 */
        padding: 8px; /* 减少padding */
        justify-content: center; /* 居中对齐 */
        position: relative;
        min-height: 100px; /* 移动端调整高度 */
    }

    .stat-item {
        position: absolute; /* 保持绝对定位 */
    }

    .stat-item:nth-child(1) {
        left: 25%;
        transform: translateX(-50%);
    }

    .stat-item:nth-child(2) {
        left: 75%;
        transform: translateX(-50%);
    }

    .stat-number {
        font-size: 1.5em;
    }

    .stat-label {
        font-size: 1em; /* 修正字体大小 */
    }

    textarea {
        font-size: 1.1em;
        min-height: 280px; /* 增加最小高度，确保内容显示完整 */
        padding: 15px;
        width: 95%; /* 小屏幕设备使用95%宽度 */
    }

    /* Focus模式容器在移动端占页面高度的100%，宽度填充整个屏幕 */
    .focus-mode-container {
        height: 100vh !important;
        margin: 0 !important;
        padding: 15px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        width: 100% !important;
        border-left: none !important;
        border-right: none !important;
    }

    /* Focus模式下的content容器 */
    .focus-mode-container .content {
        flex: 1 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Focus模式下的textarea-container */
    .focus-mode-container .textarea-container {
        height: 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 0 !important;
    }

    /* Focus模式下文本框宽度填充整个容器，高度占容器90% */
    .focus-mode-container textarea {
        width: 100% !important;
        max-width: 100% !important;
        height: 90% !important;
        min-height: 90% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        padding: 20px !important;
    }

    /* Focus模式下进度条宽度与textarea保持一致 */
    .focus-mode-container .progress-bar {
        width: 100% !important;
        max-width: 100% !important;
        margin: 8px auto 0 auto !important;
    }

    /* 移动端缩小Exit Focus按钮 */
    .focus-mode-container .exit-focus-button {
        padding: 8px 20px !important;
        font-size: 0.9em !important;
        margin: 10px auto 0 auto !important;
    }

    /* 移动端模式按钮样式调整 */
    .mode-buttons {
        gap: 8px;
        flex-wrap: wrap;
    }

    .focus-button,
    .panda-button,
    .mode-buttons .wander-button {
        padding: 8px 20px;
        font-size: 0.9em;
    }

    .export-btn,
    .save-btn {
        font-size: 1.1em;
        padding: 10px 20px;
    }

    /* 进一步减小移动端按钮容器间距 */
    .action-buttons-container {
        gap: 10px;
        flex-direction: column;
    }

    /* 确保export和save section在移动端居中 */
    .export-section,
    .save-section {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px 0;
    }

    .week-days {
        gap: 2px;
        grid-template-columns: repeat(7, minmax(0, 1fr)); /* 确保列不会超出容器 */
    }

    .day-item {
        padding: 4px 0; /* 进一步减少padding */
        min-width: 0; /* 允许缩小 */
        overflow: hidden; /* 防止内容溢出 */
    }

    /* 移动端让进度文本换行显示 */
    .week-progress {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px; /* 文本行间距 */
    }

    .week-progress .progress-label,
    .week-progress .progress-count {
        display: block; /* 每行独立显示 */
    }

    .week-progress .progress-count {
        font-size: 1.1em; /* 移动端稍大一些 */
    }

    .day-item .day-name {
        font-size: 0.8em;
    }

    .day-item .day-date {
        font-size: 0.7em;
    }

    .week-stats h3 {
        font-size: 1.3em;
    }

    /* 480px移动端周导航 */
    .week-stats-header {
        gap: 10px;
    }

    .week-navigation-center {
        gap: 4px;
    }

    .week-nav-button {
        font-size: 0.8em;
        padding: 5px 10px;
    }

    .week-nav-button.today-button {
        font-size: 0.85em;
        padding: 5px 12px;
    }

    .tips {
        font-size: 0.9em;
    }

    .tips h3 {
        font-size: 1.2em;
    }

    .tips li {
        margin-bottom: 8px;
        padding-left: 20px;
    }
}

/* 迁移提示动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading界面样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #2c3e50;
    position: relative;
}

.loading-chalkboard {
    background-color: #34495e;
    border: 5px solid #555;
    border-radius: 10px;
    padding: 50px 60px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
}

/* 粉笔loading动画 */
.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 0 auto 30px;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid transparent;
    border-top: 4px solid #c0392b;
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

/* Loading文字 */
.loading-text {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    animation: chalk-write 2s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Loading副标题 */
.loading-subtitle {
    font-size: 1.2em;
    color: #ffffff;
    opacity: 0.8;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    animation: fadeInOut 2s ease-in-out infinite;
}

/* 旋转动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 粉笔写字动画 */
@keyframes chalk-write {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* 淡入淡出动画 */
@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* 小点动画 */
.loading-dots {
    display: inline-flex;
    gap: 5px;
    margin-top: 10px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background-color: #c0392b;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.week-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.week-stats-header h3 {
    color: #c0392b;
    font-size: 2em;
    margin: 0;
    text-align: center;
    flex: 1;
}

.week-nav-button {
    background: linear-gradient(45deg, #c0392b, #a93228);
    color: #ffffff;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    padding: 0;
    border-radius: 10px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.week-nav-button:hover:not(:disabled) {
    background: linear-gradient(45deg, #a93228, #922b21);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 57, 43, 0.4);
}

.week-nav-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(192, 57, 43, 0.3);
}

.week-nav-button:disabled {
    background: #7f8c8d;
    border-color: #ffffff;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

/* Footer样式 - 与container保持一致的风格 */
.footer {
    background: linear-gradient(135deg, #1e7a4f 0%, #2c8f5f 100%);
    color: #ffffff;
    padding: 40px 30px 30px;
    width: 95%;
    max-width: 3000px;
    border: 5px solid #ffffff;
    border-radius: 10px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    margin-top: 5px;
}

/* Blog页面的Footer - 与内容等宽 */
.blog-page .footer,
.blog-post-page .footer {
    max-width: 1800px;
    width: 100%;
    margin: 5px auto;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h3 {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    line-height: 1.3;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    line-height: 1.4;
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 5px;
    margin-top: 5px;
    border-top: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 移动端Footer样式 */
@media (max-width: 768px) {
    .footer {
        padding: 25px 20px 20px;
        margin-top: 20px;
        width: 90%;
        max-width: 900px;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-bottom: 5px;
    }

    .footer-column h3 {
        font-size: 1.15em;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .footer-column li {
        margin-bottom: 5px;
        line-height: 1.3;
    }

    .footer-column a {
        font-size: 1em;
        line-height: 1.3;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding-top: 15px;
    }

    .footer-links {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .footer-copyright {
        font-size: 0.95em;
        line-height: 1.4;
    }

    .footer-links a {
        font-size: 0.9em;
        padding: 5px 10px;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 25px 20px 20px;
        margin-top: 5px;
        width: 100%;
        max-width: 100%;
        border: 5px solid #ffffff;
        border-radius: 10px;
    }

    .footer-content {
        max-width: 100%;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 15px;
        /* margin-bottom: 25px; */
    }

    .footer-column {
        text-align: left;
        padding: 0;
    }

    .footer-column h3 {
        font-size: 1.1em;
        margin-bottom: 6px;
        text-align: left;
        font-weight: bold;
        line-height: 1.2;
    }

    .footer-column ul {
        text-align: left;
    }

    .footer-column li {
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .footer-column a {
        font-size: 0.95em;
        display: inline-block;
        padding: 2px 0;
        line-height: 1.2;
    }

    .footer-bottom {
        gap: 12px;
        padding-top: 10px;
    }

    .footer-copyright {
        font-size: 0.85em;
        line-height: 1.4;
    }

    .footer-links {
        flex-direction: row;
        gap: 10px;
        width: 100%;
        flex-wrap: wrap;
    }

    .footer-links a {
        font-size: 0.8em;
        padding: 5px 10px;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Blog页面样式 */
.blog-page {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    min-height: 100vh;
    /* padding: 20px; */
    align-items: center;
}

.blog-container {
    max-width: 3000px;
    margin: 0 auto;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1e7a4f 0%, #2c8f5f 100%);
    border: 5px solid #ffffff;
    border-radius: 10px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4);
    padding: 40px;
    min-height: 80vh;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
}

.back-home-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.back-home-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.blog-title {
    font-size: 3.5em;
    color: #c0392b;
    margin-bottom: 10px;
    -webkit-text-stroke: 2px #ffffff;
    paint-order: stroke fill;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.blog-subtitle {
    font-size: 1.5em;
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.blog-post-date {
    color: #f39c12;
    font-size: 0.9em;
    margin-bottom: 0px;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.blog-post-title {
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    font-weight: bold;
}

.blog-post-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    flex-grow: 1;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-post-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.blog-read-more {
    background: linear-gradient(45deg, #c0392b, #a93228);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    font-weight: bold;
}

.blog-read-more:hover {
    background: linear-gradient(45deg, #a93228, #922b21);
    transform: translateX(3px);
}

.blog-newsletter {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
}

.blog-newsletter h3 {
    color: #ffffff;
    font-size: 2.2em;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.blog-newsletter p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin-bottom: 25px;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.1em;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: #c0392b;
    background-color: rgba(255, 255, 255, 0.2);
}

.newsletter-button {
    background: linear-gradient(45deg, #c0392b, #a93228);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    font-weight: bold;
}

.newsletter-button:hover {
    background: linear-gradient(45deg, #a93228, #922b21);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Blog列表页链接样式 */
.blog-post-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

/* Blog详情页样式 */
.blog-post-page {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 5px;
    padding-top: 0px;
}

.blog-post-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1e7a4f 0%, #2c8f5f 100%);
    border: 5px solid #ffffff;
    border-radius: 10px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4);
    padding: 40px;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.back-blog-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    margin-bottom: 25px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.back-blog-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.blog-post-title-main {
    font-size: 2.8em;
    color: #c0392b;
    margin-bottom: 20px;
    -webkit-text-stroke: 2px #ffffff;
    paint-order: stroke fill;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    line-height: 1.2;
}

.blog-post-meta {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-post-separator {
    color: rgba(255, 255, 255, 0.5);
}

.blog-post-featured-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.featured-image-placeholder {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.blog-post-content {
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    line-height: 1.8;
}

.blog-post-content .intro-text {
    font-size: 1.3em;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #f39c12;
    border-radius: 5px;
}

.blog-post-content section {
    margin-bottom: 40px;
}

.blog-post-content h2 {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 20px;
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.blog-post-content h3 {
    font-size: 1.5em;
    color: #f39c12;
    margin: 25px 0 15px 0;
}

.blog-post-content h4 {
    font-size: 1.2em;
    color: #ffffff;
    margin: 15px 0 10px 0;
}

.blog-post-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-post-content li {
    font-size: 1.05em;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.blog-post-content strong {
    color: #f39c12;
    font-weight: bold;
}

.tip-box,
.stat-box,
.quote-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.stat-box {
    border-left-color: #e74c3c;
}

.quote-box {
    border-left-color: #2ecc71;
    font-style: italic;
    font-size: 1.2em;
    text-align: center;
}

.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.comparison-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.comparison-item h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.blog-post-cta {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
}

.blog-post-cta h3 {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #c0392b, #a93228);
    color: #ffffff;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background: linear-gradient(45deg, #a93228, #922b21);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px dashed rgba(255, 255, 255, 0.3);
    gap: 15px;
    flex-wrap: wrap;
}

.prev-post-button,
.next-post-button,
.back-to-blog-button {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.prev-post-button:hover,
.next-post-button:hover,
.back-to-blog-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 博客详情页响应式设计 */
@media (max-width: 768px) {
    .blog-post-container {
        padding: 30px 25px;
    }

    .blog-post-title-main {
        font-size: 2.2em;
    }

    .blog-post-meta {
        font-size: 0.9em;
        flex-direction: column;
        gap: 5px;
    }

    .blog-post-separator {
        display: none;
    }

    .featured-image-placeholder {
        height: 200px;
        font-size: 2em;
    }

    .blog-post-content h2 {
        font-size: 1.6em;
    }

    .blog-post-content h3 {
        font-size: 1.3em;
    }

    .comparison-box {
        grid-template-columns: 1fr;
    }

    .blog-post-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .prev-post-button,
    .next-post-button,
    .back-to-blog-button {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-post-page {
        padding: 10px;
    }

    .blog-post-container {
        padding: 20px 15px;
    }

    .blog-post-title-main {
        font-size: 1.8em;
    }

    .blog-post-content .intro-text {
        font-size: 1.1em;
        padding: 15px;
    }

    .blog-post-content h2 {
        font-size: 1.4em;
    }

    .blog-post-content h3 {
        font-size: 1.2em;
    }

    .blog-post-content p,
    .blog-post-content li {
        font-size: 1em;
    }

    .blog-post-cta {
        padding: 25px 15px;
    }

    .blog-post-cta h3 {
        font-size: 1.5em;
    }

    .cta-button {
        font-size: 1em;
        padding: 12px 30px;
    }
}

/* Blog页面响应式设计 */
@media (max-width: 768px) {
    .blog-container {
        padding: 25px;
    }

    .blog-title {
        font-size: 2.5em;
    }

    .blog-subtitle {
        font-size: 1.2em;
    }

    .blog-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-input {
        min-width: 100%;
    }

    .newsletter-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 15px;
    }

    .blog-title {
        font-size: 2em;
    }

    .blog-post-title {
        font-size: 1.5em;
    }

    .blog-newsletter {
        padding: 25px 15px;
    }

    .blog-newsletter h3 {
        font-size: 1.8em;
    }
}

/* Legal Pages样式 (Terms of Service & Privacy Policy) */
.legal-page {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 20px;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1e7a4f 0%, #2c8f5f 100%);
    border: 5px solid #ffffff;
    border-radius: 10px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4);
    padding: 40px;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
}

.legal-title {
    font-size: 3em;
    color: #c0392b;
    margin-bottom: 10px;
    -webkit-text-stroke: 2px #ffffff;
    paint-order: stroke fill;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.legal-subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    font-style: italic;
}

.legal-content {
    color: #ffffff;
    line-height: 1.8;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.legal-section {
    margin-bottom: 35px;
}

.legal-section h2 {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.legal-section h3 {
    font-size: 1.4em;
    color: #f39c12;
    margin: 20px 0 10px 0;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
}

.legal-section p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.legal-section ul {
    list-style-position: outside;
    padding-left: 25px;
    margin-bottom: 15px;
}

.legal-section li {
    font-size: 1.05em;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.legal-section strong {
    color: #f39c12;
    font-weight: bold;
}

.legal-section a {
    color: #3498db;
    text-decoration: underline;
}

.legal-section a:hover {
    color: #5dade2;
}

.legal-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed rgba(255, 255, 255, 0.3);
    text-align: center;
}

.back-home-button {
    display: inline-block;
    background: linear-gradient(45deg, #c0392b, #a93228);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-home-button:hover {
    background: linear-gradient(45deg, #a93228, #922b21);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Legal页面响应式设计 */
@media (max-width: 768px) {
    .legal-container {
        padding: 30px 25px;
    }

    .legal-title {
        font-size: 2.5em;
    }

    .legal-subtitle {
        font-size: 1em;
    }

    .legal-section h2 {
        font-size: 1.5em;
    }

    .legal-section h3 {
        font-size: 1.2em;
    }

    .legal-section p,
    .legal-section li {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 10px;
    }

    .legal-container {
        padding: 20px 15px;
    }

    .legal-title {
        font-size: 2em;
    }

    .legal-subtitle {
        font-size: 0.9em;
    }

    .legal-section {
        margin-bottom: 25px;
    }

    .legal-section h2 {
        font-size: 1.3em;
    }

    .legal-section h3 {
        font-size: 1.1em;
    }

    .legal-section p,
    .legal-section li {
        font-size: 0.95em;
    }

    .legal-section ul {
        padding-left: 20px;
    }

    .back-home-button {
        font-size: 1em;
        padding: 10px 25px;
    }
}

/* ==================== Settings Button and Modal ==================== */

/* Floating settings button in bottom-right corner */
.settings-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e7a4f 0%, #2c8f5f 100%);
    border: 3px solid white;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-button:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #2c8f5f 0%, #1e7a4f 100%);
}

.settings-button:active {
    transform: scale(0.95) rotate(90deg);
}

/* Settings overlay */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

/* Settings panel */
.settings-panel {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    border: 5px solid white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Settings header */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.settings-title {
    color: white;
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.settings-close-button {
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.settings-close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Settings content */
.settings-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background 0.2s ease;
}

/* 修复settings-option布局，确保toggle开关右对齐且宽度一致 */
.settings-option .settings-option-label {
    flex: 1;
    margin-right: 20px;
}

.settings-option .toggle-switch {
    flex-shrink: 0;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.settings-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

.settings-option-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.settings-option-title {
    color: white;
    font-size: 1.1em;
    font-weight: bold;
}

.settings-option-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-slider:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .settings-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .settings-panel {
        padding: 20px;
        max-width: 90%;
    }

    .settings-title {
        font-size: 1.5em;
    }

    .settings-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .settings-option-title {
        font-size: 1em;
    }

    .settings-option-description {
        font-size: 0.85em;
    }
}

/* ==================== Header Component Styles ==================== */

/* Header as standalone component (outside container) */
.app-wrapper > .header {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 3000px;
    margin-bottom: 5px;
    width: 95%;
    padding: 20px;
}

/* Make header title clickable */
.header-title-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.header-title-link:hover {
    opacity: 0.8;
}

.header-title-link h1 {
    margin: 0;
    cursor: pointer;
}

/* Make logo clickable */
.header-logo {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.header-logo:hover {
    opacity: 0.8;
}

/* Adjust header in container to remove duplicate styles */
.container .header {
    background: none;
    border: none;
    box-shadow: none;
    margin: 0;
    max-width: none;
    width: 100%;
    padding-bottom: 10px;
}

/* Mobile responsive for standalone header */
@media (max-width: 768px) {
    .app-wrapper > .header {
        width: 100%;
        /* margin: 10px auto; */
        padding: 15px;
    }
}

/* Blog pages header styles */
.blog-page > .header,
.blog-post-page > .header {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin: 0px auto;
    margin-bottom: 5px;
    max-width: 3000px;
    width: 100%;
    padding: 20px;
}

@media (max-width: 768px) {
    .blog-page > .header,
    .blog-post-page > .header {
        width: 100%;
        max-width: 1200px;
        margin: 0px auto;
        padding: 15px;
    }

    .blog-page .footer,
    .blog-post-page .footer {
        width: 100%;
        max-width: 1200px;
    }
}

/* ==================== Date and Login Section in Container ==================== */

.date-login-section {
    text-align: center;
    margin-bottom: 0px;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.date-login-section .date-display {
    margin: 0;
}

.date-login-section .login-prompt {
    margin: 0;
}

/* ==================== Header User Avatar Adjustments ==================== */

/* 调整Header布局，标题居中，用户头像在右侧 */
.app-wrapper > .header,
.blog-page > .header,
.blog-post-page > .header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* header-left保持居中 */
.app-wrapper > .header .header-left,
.blog-page > .header .header-left,
.blog-post-page > .header .header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 调整用户头像位置和大小 (桌面端) - 绝对定位到右侧 */
.app-wrapper > .header .user-button-container,
.blog-page > .header .user-button-container,
.blog-post-page > .header .user-button-container {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

/* 增大用户头像尺寸 - 针对Clerk的UserButton组件 */
.app-wrapper > .header .user-button-container > div,
.app-wrapper > .header .user-button-container button,
.blog-page > .header .user-button-container > div,
.blog-page > .header .user-button-container button,
.blog-post-page > .header .user-button-container > div,
.blog-post-page > .header .user-button-container button {
    transform: scale(1.5);
    transform-origin: center;
}

/* Container内的Header保持原有样式 */
.container .header {
    justify-content: center;
}

.container .header .user-button-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
}

.container .header .user-button-container > div,
.container .header .user-button-container button {
    transform: scale(1);
}

/* About Us 页面样式 */
.about-us-page {
    min-height: 100vh;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(135deg, #1e7a4f 0%, #2c8f5f 100%);
}

.about-us-container {
    max-width: 800px;
    width: 90%;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #ffffff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.about-us-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.back-home {
    margin-bottom: 30px;
    text-align: left;
}

.back-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 16px;
    border: 2px solid #ffffff;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-link:hover {
    background: #ffffff;
    color: #1e7a4f;
    transform: translateX(5px);
}

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

.about-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-subtitle {
    font-size: 1.2em;
    color: #e0e0e0;
    font-style: italic;
}

.about-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #ffffff;
    border-left: 4px solid #4ecdc4;
    padding-left: 15px;
    margin-left: -15px;
}

.section-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffffff;
}

.feature-card p {
    font-size: 1em;
    line-height: 1.6;
    color: #e0e0e0;
}

.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #45b7d1;
}

.step-number {
    background: #17708a;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffffff;
}

.step-content p {
    font-size: 1em;
    line-height: 1.6;
    color: #e0e0e0;
}

.tech-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #ff6b6b;
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
}

.commitment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.commitment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.commitment-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.commitment-item h4,
.commitment-item h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #ffffff;
}

.commitment-item p {
    font-size: 0.9em;
    line-height: 1.5;
    color: #e0e0e0;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.contact-icon {
    font-size: 1.3em;
}

.cta-section {
    text-align: center;
    margin: 60px 0 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-description {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #f0f0f0;
}

.cta-button {
    display: inline-block;
    background: #0e8066;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #45b7d1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.about-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.about-footer p {
    color: #e0e0e0;
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.9em;
    color: #b0b0b0;
}

/* Header 导航样式 */
.header-nav {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .about-us-page {
        padding: 10px 0;
    }

    .about-us-container {
        width: 95%;
        padding: 25px;
    }

    .about-title {
        font-size: 2em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step {
        padding: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
    }

    .tech-highlights {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 30px 20px;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .about-us-container {
        padding: 20px;
    }

    .about-title {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.3em;
    }

    .section-content {
        font-size: 1em;
    }

    .feature-card {
        padding: 20px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .commitment-item {
        flex-direction: column;
        text-align: center;
    }
}


/* ===== Statistics panel (src/components/Statistics.css) ===== */
.statistics-container {
  margin: 0px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.statistics-header {
  margin-bottom: 20px;
}

.statistics-header h2 {
  margin: 0;
  font-size: 28px;
  color: #2c3e50;
}

.statistics-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ecf0f1;
}

.tab-button {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: #7f8c8d;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-button:hover {
  color: #3498db;
  background: rgba(52, 152, 219, 0.05);
}

.tab-button.active {
  color: #2c3e50;
  border-bottom-color: #3498db;
}

.statistics-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-card:nth-child(1) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card:nth-child(4) {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-icon {
  font-size: 36px;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 5px;
  color: #0d17b0;
}

.statistics-content {
  padding: 20px;
  text-align: center;
  color: #0d17b0;
}

.statistics-loading {
  text-align: center;
  padding: 40px;
  color: #7f8c8d;
  font-size: 18px;
}

.statistics-empty {
  text-align: center;
  padding: 60px 20px;
  color: #95a5a6;
}

.statistics-empty p {
  font-size: 18px;
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .statistics-overview {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-icon {
    font-size: 28px;
  }

  .stat-value {
    font-size: 24px;
  }
}
