/* 防盗：禁止文本选择（输入框、文本域除外由JS控制，这里保留CSS兜底） */
* {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}
input,textarea {
    user-select: auto !important;
    -webkit-user-select: auto !important;
}

/* ==================== 全局样式 & 北京时间模块 ==================== */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;line-height:1.6;color:#333;background:#f5f5f5;min-height:100vh}
.container{max-width:1200px;margin:0 auto;padding:30px 20px 20px}
.card{background:#fff;border-radius:8px;box-shadow:0 2px 4px rgba(0,0,0,.1);margin-bottom:30px;overflow:hidden}
.tools-section{padding:20px}
.section-title{color:#333;font-size:20px;margin-bottom:20px;padding-bottom:10px;border-bottom:2px solid #f0f0f0}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:15px;padding:10px}
.tool-item{
    display:flex;
    align-items:center;
    padding:15px;
    background:#f8f8f8;
    border-radius:8px;
    text-decoration:none;
    color:#333;
    transition:all .3s;
    border:1px solid #e9ecef;
}
.tool-item:hover{
    background:#fff;
    transform:translateY(-3px);
    box-shadow:0 6px 12px rgba(0,0,0,0.1);
    border-color:#4caf50;
}
.tool-item:hover .tool-name {
    color:#4caf50;
    font-weight:600;
    transform:scale(1.05);
    transition:all 0.2s ease;
}
.tool-icon{font-size:24px;margin-right:15px;flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:8px;box-shadow:0 2px 4px rgba(0,0,0,.05)}
.tool-info{flex:1}
.tool-name{font-size:16px;font-weight:500;margin-bottom:4px;transition:all 0.2s ease;}
.tool-desc{font-size:13px;color:#666;transition:all 0.2s ease;}
.nav-wrapper{background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.1);position:sticky;top:0;z-index:100;margin-bottom:0}
.nav{max-width:1200px;margin:0 auto;padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between}
.nav-logo{display:flex;align-items:center;text-decoration:none;color:#333;font-size:20px;font-weight:500;z-index:2}
.nav-logo span{color:#4caf50;margin-right:8px}
.nav-logo strong{color:#4caf50;font-weight:500}
.nav-menu{display:flex;align-items:center;height:100%;gap:20px;list-style:none;transition:max-height 0.3s ease-out}
.nav-menu li{display:flex;align-items:center;height:100%}
.nav-menu li a{display:flex;align-items:center;height:100%;padding:0 12px;color:#666;text-decoration:none;font-size:15px;border-radius:6px;transition:all .3s}
.nav-menu li a:hover{color:#4caf50;background:#f0f0f0}
.nav-menu li a.active{color:#4caf50;font-weight:500}
.nav-toggle{display:none;flex-direction:column;justify-content:space-between;width:30px;height:21px;cursor:pointer;padding:12px;background:0 0;border:none;z-index:2;box-sizing:content-box}
.nav-toggle span{display:block;width:30px;height:3px;background-color:#333;border-radius:3px;transition:all .3s}

/* ==================== 北京时间在线校准 ==================== */
.bjtime-calibration {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    margin-bottom: 30px;
    overflow: hidden;
    padding: 20px;
}
.bjtime-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.bjtime-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 500;
    color: #333;
}
.bjtime-logo::before {
    content: "🕒";
    margin-right: 10px;
    font-size: 24px;
}
.bjtime-title {
    text-align: center;
    margin-bottom: 20px;
}
.bjtime-title h1 {
    color: #4caf50;
    margin-bottom: 8px;
    font-size: 1.8em;
    font-weight: 600;
}
.bjtime-title .subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    letter-spacing: 0.5px;
}
.time-diff {
    text-align: left;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 0;
    color: #333;
    background: transparent;
    border: none;
    box-shadow: none;
}
.time-diff.slow { color: #27ae60; }
.time-diff.fast { color: #e74c3c; }

.bjtime-display {
    background: linear-gradient(135deg, #f0f7ff, #e3eeff);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 20px rgba(66,133,244,0.15);
    border: 1px solid rgba(66,133,244,0.2);
    position: relative;
    overflow: hidden;
}
.bjtime-display::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #4caf50, #2196f3);
}
.bjtime-label {
    font-size: 14px;
    color: #4caf50;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bjtime-label::before {
    content: "⏱";
    margin-right: 10px;
    font-size: 16px;
}
.bjtime-label.slow { color: #27ae60; }
.bjtime-label.fast { color: #e74c3c; }

#bjTime {
    font-weight: 700;
    color: #1a73e8;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 1px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: font-size 0.3s ease;
    cursor: pointer;
    font-size: clamp(48px, 9vw, 120px);
    font-variant-numeric: tabular-nums;
}
.bj-milliseconds {
    font-size: 0.6em;
    opacity: 0.9;
    font-weight: 500;
    color: #666;
    display: inline-block;
    min-width: 2.8em;
    text-align: left;
}

.next-hour-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 5px 0 20px 0;
    padding: 10px 20px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(26,115,232,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    font-size: 15px;
    line-height: 1.5;
}
.countdown-icon { font-size: 18px; opacity: 0.9; }
.countdown-text { color: #555; white-space: nowrap; }
.countdown-time {
    background: rgba(26,115,232,0.06);
    color: #0d47a1;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 30px;
    backdrop-filter: blur(2px);
    border: 0.5px solid rgba(26,115,232,0.2);
    letter-spacing: 0.8px;
    white-space: nowrap;
    font-size: 16px;
}
.hourly-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 0.5px solid rgba(76,175,80,0.2);
    white-space: nowrap;
    color: #2c7a4b;
    background: rgba(76,175,80,0.08);
    backdrop-filter: blur(2px);
}
.hourly-status.inactive {
    color: #616161;
    background: rgba(158,158,158,0.08);
    border: 0.5px solid rgba(158,158,158,0.2);
}
.hourly-status:active { transform: scale(0.96); }

.bj-date-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    min-height: 40px;
}
.bj-date-item, .bj-lunar-date, .bj-ganzhi-date {
    background: rgba(255,255,255,0.7);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: grab;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 40px;
    line-height: 24px;
}
#bjDate { color: #333; font-weight: 500; }
#bjWeek { color: #2980b9; font-weight: 500; }
#bjWeekNumber { color: #8e44ad; font-weight: 500; }
.bj-lunar-date { color: #d35400; }
.bj-ganzhi-date { color: #9c27b0; }

.bj-festival-card {
    margin: 15px auto 5px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    border: 1px solid rgba(76,175,80,0.2);
    display: inline-block;
    max-width: 90%;
    width: auto;
    text-align: center;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.festival-message {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.fest-name {
    color: #4caf50;
    font-weight: 600;
}
.fest-days {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.2em;
    margin: 0 2px;
}
.bj-festival-card.today {
    background: rgba(76,175,80,0.15);
    border-color: #4caf50;
}
.bj-festival-card.today .festival-message {
    color: #2e7d32;
    font-weight: 500;
}

.bj-control-icons-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 15px;
}
.bj-control-icons {
    display: flex;
    gap: 12px;
    background: rgba(255,255,255,0.8);
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.bj-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4caf50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: none;
    position: relative;
    overflow: hidden;
}
.bj-icon-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.3); }
.bj-icon-btn.secondary { background: #5f6368; }
.bj-sound-status {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #34a853;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-weight: bold;
}
.bj-sync-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.bj-sync-item {
    background: rgba(255,255,255,0.8);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
#bjLastSyncTime { color: #34a853; font-weight: 600; }
#bjNextSyncCountdown { color: #ea4335; font-weight: 600; }
#bjSyncStatus { text-align: center; margin-top: 10px; color: #34a853; font-weight: 500; font-size: 13px; }

.bj-sound-settings {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease;
}
.bj-sound-settings.active { display: block; }
.sound-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.sound-setting-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sound-setting-label { font-size: 13px; color: #333; }
.sound-setting-control { display: flex; align-items: center; gap: 10px; }
.sound-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.sound-toggle input { opacity: 0; width: 0; height: 0; }
.sound-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}
.sound-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .sound-slider { background-color: #4caf50; }
input:checked + .sound-slider:before { transform: translateX(20px); }
.volume-slider {
    width: 80px; height: 6px;
    -webkit-appearance: none; appearance: none;
    background: #ddd; border-radius: 3px; outline: none;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: #4caf50; cursor: pointer;
}
.volume-slider::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%;
    background: #4caf50; cursor: pointer; border: none;
}
.volume-slider::-moz-range-track {
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.hourly-announcement {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideIn 0.5s ease, slideOut 0.5s ease 2.5s forwards;
    font-size: 14px;
    max-width: 300px;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }

/* ==================== 世界时钟 ==================== */
.world-clock-section{
    margin: 0 0 30px 0;
    padding:15px;
    background:#fff;
    border-radius:10px;
    box-shadow:0 2px 4px rgba(0,0,0,.1);
}
.world-clock-section h3{
    margin:0 0 10px 0;
    color:#333;
    font-size:1em;
    text-align:center;
}
.world-clock-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:10px;
    margin-top:5px;
}
.world-clock-item{
    padding:10px;
    background:#f8f9fa;
    border-radius:6px;
    text-align:center;
    transition:all .3s ease;
    border:1px solid #e9ecef;
    text-decoration:none;
    color:inherit;
    display:block;
}
.world-clock-item:hover{
    background:#fff;
    transform:translateY(-3px);
    box-shadow:0 6px 12px rgba(0,0,0,0.1);
    border-color:#4caf50;
}
.world-clock-item:hover .city-name {
    color:#4caf50;
    font-weight:600;
    transform:scale(1.05);
    transition:all 0.2s ease;
}
.city-header{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    margin-bottom:5px;
}
.city-name{ font-size:.9em; font-weight:500; color:#333; transition:all 0.2s ease; }
.flag-emoji{ font-size:1.1em; }
.world-clock-item .time{
    font-size:clamp(18px, 4vw, 24px);
    font-weight:300;
    color:#4caf50;
    font-family:'SF Pro Display',-apple-system,BlinkMacSystemFont,sans-serif;
    margin:5px 0;
    letter-spacing:1px;
}
.world-clock-item .date{ font-size:12px; color:#666; margin-top:2px; }
@media (max-width:768px){ 
    .world-clock-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
    .world-clock-item{ padding:12px 10px; }
}
@media (max-width:480px){ 
    .world-clock-grid{ grid-template-columns:repeat(2,1fr); gap:8px; } 
    .world-clock-item{ padding:10px 8px; }
}

/* ==================== 友情链接 ==================== */
.friend-links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.friend-links-header .section-title { margin-bottom: 0; flex-grow: 1; }
.friend-link-apply-btn {
    display: inline-block;
    padding: 6px 16px;
    background-color: #4caf50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}
.friend-link-apply-btn:hover {
    background-color: #388e3c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}
.friend-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 10px;
    margin-bottom: 15px;
}
.friend-link-item {
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    overflow: hidden;
    position: relative;
}
.friend-link-item:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-color: #4caf50;
}
.friend-link-content {
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 50px;
    position: relative;
    overflow: hidden;
}
.friend-link-item::before {
    content: "🔗";
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 10px;
    opacity: 0.7;
    transition: all 0.3s ease;
}
.friend-link-item:hover::before { opacity: 1; transform: scale(1.2); }
.friend-link-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friend-link-item:hover .friend-link-text {
    color: #4caf50;
    font-weight: 600;
    transform: scale(1.05);
    transition: all 0.2s ease;
}
@media (max-width: 768px) {
    .friend-links-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .friend-link-apply-btn { align-self: flex-start; }
    .friend-links-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
    .friend-link-content { padding: 8px 6px; min-height: 46px; }
    .friend-link-text { font-size: 11px; }
    .friend-link-item::before { top: 5px; left: 5px; font-size: 9px; }
}
@media (max-width: 480px) {
    .friend-links-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .friend-link-content { padding: 8px 4px; min-height: 44px; }
    .friend-link-text { font-size: 10px; }
    .friend-link-item::before { top: 4px; left: 4px; font-size: 8px; }
}
.friend-link-item { animation: fadeInUp 0.5s ease forwards; opacity: 0; }
.friend-link-item:nth-child(1) { animation-delay: 0.05s; }
.friend-link-item:nth-child(2) { animation-delay: 0.1s; }
.friend-link-item:nth-child(3) { animation-delay: 0.15s; }
.friend-link-item:nth-child(4) { animation-delay: 0.2s; }
.friend-link-item:nth-child(5) { animation-delay: 0.25s; }
.friend-link-item:nth-child(6) { animation-delay: 0.3s; }
.friend-link-item:nth-child(7) { animation-delay: 0.35s; }
.friend-link-item:nth-child(8) { animation-delay: 0.4s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ==================== 底部域名提醒 ==================== */
.footer-reminder {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}
.footer-reminder .alert-title {
    color: #4caf50;
    margin-right: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.footer-reminder .alert-link {
    color: #1a73e8;
    text-decoration: none;
    margin: 0 4px;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.footer-reminder .alert-link:hover {
    background-color: rgba(26,115,232,0.08);
    color: #0d47a1;
}
@media (max-width: 768px) {
    .footer-reminder {
        font-size: 15px;
        padding: 16px;
        line-height: 1.7;
    }
    .footer-reminder .alert-title {
        display: block;
        margin-bottom: 6px;
        font-size: 16px;
    }
}
@media (max-width: 480px) {
    .footer-reminder {
        font-size: 14px;
        padding: 14px;
    }
    .footer-reminder .alert-link {
        display: inline-block;
    }
}

/* ==================== 移动端全局修复 ==================== */
@media (max-width: 768px) {
    .container { 
        padding: 20px 10px 10px;
    }
    .tools-grid { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 10px; padding: 5px; }
    .tool-item { padding: 12px; }
    .tool-icon { width: 36px; height: 36px; font-size: 20px; }
    .section-title { font-size: 18px; margin-bottom: 15px; }
    .nav-toggle { display: flex; }
    .nav-menu { 
        position: fixed; 
        top: 60px; 
        left: 0; 
        right: 0; 
        background: #fff; 
        flex-direction: column; 
        gap: 0; 
        max-height: 0; 
        overflow: hidden; 
        transition: max-height .3s ease-out; 
        box-shadow: 0 2px 4px rgba(0,0,0,.1); 
        z-index: 99;
        height: auto;
        align-items: stretch;
    }
    .nav-menu li {
        height: auto;
        display: block;
    }
    .nav-menu li a { 
        display: block; 
        padding: 15px 20px; 
        border-radius: 0; 
        border-bottom: 1px solid #f0f0f0; 
        height: auto;
    }
    .nav-toggle.active span:first-child { transform: rotate(45deg) translate(8px,8px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:last-child { transform: rotate(-45deg) translate(8px,-8px); }

    .bjtime-calibration,
    .world-clock-section,
    .card,
    .footer-reminder {
        margin-bottom: 20px;
    }

    .bjtime-display { padding: 12px 10px; }
    .bjtime-title h1 { font-size: 1.5em; margin-bottom: 4px; }
    .bjtime-title .subtitle { font-size: 12px; padding: 0 8px; line-height: 1.6; word-break: break-word; }

    .bjtime-label {
        display: inline-block;
        text-align: center;
        font-size: 13px;
        margin-bottom: 12px;
        max-width: 100%;
        word-break: break-word;
        white-space: normal;
        line-height: 1.5;
    }
    .bjtime-label::before {
        content: "⏱";
        margin-right: 6px;
        font-size: 16px;
        display: inline-block;
        vertical-align: middle;
    }

    #bjTime {
        font-size: clamp(48px, 13vw, 68px);
        white-space: nowrap;
    }
    .bj-milliseconds {
        font-size: 24px !important;
        min-width: 2.8em;
        display: inline-block;
        text-align: left;
    }

    .volume-slider { width: 120px; }
    
    .bjtime-header {
        display: none;
    }
    
    .bj-festival-card {
        margin: 12px auto 8px;
        padding: 8px 16px;
        max-width: 95%;
        display: table;
        font-size: 15px;
    }

    /* 移动端保持原有间距（与老代码一致） */
    .bjtime-label {
        margin-bottom: 15px;
    }
    #bjTime {
        margin: 10px 0;
    }
    .next-hour-countdown {
        margin-top: 5px;
        margin-bottom: 20px;
    }
}
@media (max-width: 480px) {
    .bj-festival-card {
        font-size: 14px;
        padding: 6px 14px;
    }
}
@media (max-width: 360px) {
    #bjTime {
        font-size: clamp(44px, 12vw, 58px);
    }
    .bj-milliseconds {
        font-size: 22px !important;
    }
}

.footer{
    text-align:center;
    padding:20px;
    background:#fff;
    box-shadow:0 -2px 4px rgba(0,0,0,.1);
    margin-top:30px;
}
.footer p{margin:5px 0;color:#666;font-size:14px}
.footer a{color:#4caf50;text-decoration:none;transition:color .3s;margin:0 10px}
.footer a:hover{color:#388e3c}

/* 手势提示条 */
.gesture-hint {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    z-index: 1000;
    animation: hintFade 5s forwards;
    pointer-events: none;
}
@keyframes hintFade {
    0% { opacity: 0; transform: translateY(10px); }
    10% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* ==================== 新增模块美化增强 ==================== */
.card-header {
    cursor: pointer;
    user-select: none;
    padding: 18px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.card-header:hover {
    background: #f0f0f0;
}
.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-header h3 span {
    font-size: 24px;
    background: rgba(76,175,80,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 20px;
    color: #888;
}
.card-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}
.card-content {
    padding: 20px;
    transition: all 0.3s;
}
.card-content.collapsed {
    display: none;
}
.timeline-hour, .reminder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
    animation: slideIn 0.2s ease;
}
.timeline-hour:hover, .reminder-item:hover {
    border-color: #4caf50;
    box-shadow: 0 4px 12px rgba(76,175,80,0.1);
    transform: translateY(-1px);
}
.timeline-icon, .reminder-icon {
    width: 36px;
    height: 36px;
    background: rgba(76,175,80,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #4caf50;
    flex-shrink: 0;
}
.timeline-time, .reminder-time {
    background: linear-gradient(145deg, #4caf50, #3d8b40);
    color: white;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    min-width: 70px;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(76,175,80,0.2);
    flex-shrink: 0;
}
.timeline-task, .reminder-msg {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    padding-left: 4px;
    word-break: break-word;
}
.timeline-remove, .reminder-delete {
    background: transparent;
    color: #999;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.timeline-remove:hover, .reminder-delete:hover {
    background: rgba(244,67,54,0.1);
    color: #d32f2f;
    transform: scale(1.1);
}
.form-control {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}
.form-control:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.2);
}
.btn {
    padding: 10px 18px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(76,175,80,0.2);
}
.btn:hover {
    background: #388e3c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76,175,80,0.3);
}
.btn:active {
    transform: scale(0.96);
}
.countdown-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.countdown-input-group .form-control {
    flex: 1;
    min-width: 200px;
}
.empty-timeline, .empty-reminder {
    text-align: center;
    padding: 30px 20px;
    color: #aaa;
    font-size: 14px;
    border: 2px dashed #eee;
    border-radius: 12px;
    margin: 10px 0;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.card-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.card-row .card {
    flex: 1;
    margin-bottom: 0;
    width: 50%;
}
@media (max-width: 768px) {
    .card-row {
        flex-direction: column;
        gap: 20px;
    }
    .card-row .card {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .timeline-time, .reminder-time {
        min-width: 60px;
        font-size: 12px;
        padding: 5px 10px;
    }
    .timeline-task, .reminder-msg {
        font-size: 14px;
    }
    .countdown-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    .countdown-input-group .form-control,
    .countdown-input-group .btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* ========== PC端北京时间模块间距优化（宽松版，模仿老代码的舒展感） ========== */
@media (min-width: 769px) {
    .bjtime-label {
        margin-bottom: 15px;
    }
    #bjTime {
        margin: 5px 0 28px 0;
    }
    .next-hour-countdown {
        margin-top: 0;
        margin-bottom: 20px;
        gap: 8px 20px;
    }
    .hourly-status {
        line-height: 1;
        padding: 4px 14px;
    }
}