/* ====================== 基础重置与字体 ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --darker-bg: #0a0f1c;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(99, 102, 241, 0.2);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 主题背景层（底层） */
body.theme-bg-layer::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    transition: background 0.8s ease;
}

/* 背景图片层（顶层） */
body.theme-bg-layer::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: background-image 0.8s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 1;
	filter: blur(5px);
}

/* 定义 FontAwesome 字体族，区分不同字重 */
@font-face {
  font-family: 'FontAwesome-s';
  src: url('../fonts/fa-solid-900.woff2') format('woff2'),
       url('../fonts/fa-solid-900.ttf') format('truetype'); /* 补充ttf的format */
  font-weight: 900; /* solid版本对应900字重 */
  font-style: normal;
}

@font-face {
  font-family: 'FontAwesome-r'; /* 保持字体族名一致 */
  src: url('../fonts/fa-regular-400.woff2') format('woff2'),
       url('../fonts/fa-regular-400.ttf') format('truetype'); /* 补充format */
  font-weight: 400; /* regular版本对应400字重 */
  font-style: normal;
}
        .fa-classic, .fa-solid, .fas {font-family: "FontAwesome-s";}
        .far, .fa-regular {font-family: "FontAwesome-r";}
        .fa-solid, .fas { font-weight: 900;}
        .fa-regular, .far { font-weight: 400;}
        .fas.fa-redo-alt::before { content: "\f2f9"; }
        .fas.fa-expand::before { content: "\f065"; }
        .fas.fa-palette::before { content: "\f53f"; }
        .fa-store:before {content: "\f54e"; }
        .fa-user:before { content: "\f007";}
        .fa-sign-out:before { content: "\f08b";}
        .fa-paint-brush:before, .fa-paintbrush:before { content: "\f1fc";}
        .fa-image:before {content: "\f03e";}
        .fa-close:before, .fa-multiply:before, .fa-remove:before, .fa-times:before, .fa-xmark:before { content: "\f00d";}
        .fa-fire:before {content: "\f06d";}
        .fa-birthday-cake:before, .fa-cake-candles:before, .fa-cake:before { content: "\f1fd";}
        .fa-star:before { content: "\f005";}
        .fa-champagne-glasses:before, .fa-glass-cheers:before { content: "\f79f";}
        .fa-heart:before { content: "\f004";}
        .fa-graduation-cap:before, .fa-mortar-board:before { content: "\f19d";}
        .fa-ban:before, .fa-cancel:before { content: "\f05e";}
        .fa-sliders-h:before, .fa-sliders:before { content: "\f1de";}
        .fa-circle-info:before, .fa-info-circle:before {content: "\f05a";}
        .fa-circle-user:before, .fa-user-circle:before {content: "\f2bd";}
        .fa-clock-rotate-left:before, .fa-history:before { content: "\f1da";}
        .fa-clock-four:before, .fa-clock:before { content: "\f017";}
        .fa-crown:before { content: "\f521";}
        .fa-check-circle:before, .fa-circle-check:before { content: "\f058";}
        .fa-cart-shopping:before, .fa-shopping-cart:before {content: "\f07a";}
        .fa-circle-plus:before, .fa-plus-circle:before {content: "\f055";}
        .fa-arrow-right-rotate:before, .fa-arrow-rotate-forward:before, .fa-arrow-rotate-right:before, .fa-redo:before {
    content: "\f01e";}
        .fa-edit:before, .fa-pen-to-square:before {content: "\f044";}
        .fa-header:before, .fa-heading:before { content: "\f1dc";}
        .fa-calendar-alt:before, .fa-calendar-days:before {  content: "\f073";}
        .fa-bell:before {  content: "\f0f3";}
        .fa-volume-high:before, .fa-volume-up:before { content: "\f028";}
        .fa-database:before { content: "\f1c0";}
        .fa-eye:before { content: "\f06e";}
        .fa-trash-alt:before, .fa-trash-can:before { content: "\f2ed";}
        .fa-gem:before {content: "\f3a5";}
        .fa-compress:before { content: "\f066";}
        .fa-home-alt:before, .fa-home-lg-alt:before, .fa-home:before, .fa-house:before {content: "\f015";}
        .fa-circle-xmark:before, .fa-times-circle:before, .fa-xmark-circle:before { content: "\f057";}
        .fa, .fa-brands, .fa-classic, .fa-regular, .fa-sharp, .fa-solid, .fab, .far, .fas { -moz-osx-font-smoothing: grayscale;  -webkit-font-smoothing: antialiased; display: var(--fa-display, inline-block); font-style: normal; font-variant: normal; line-height: 1;  text-rendering: auto;}

/* latin */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/yMJRMIlzdpvBhQQL_Qq7dy0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/yMJRMIlzdpvBhQQL_Qq7dy0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/yMJRMIlzdpvBhQQL_Qq7dy0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ====================== 主容器 ====================== */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ====================== 顶部控制栏 ====================== */
.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

/* Logo样式 */
.logo {
    /* backdrop-filter: blur(20px); */
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    user-select: none;
    transition: all var(--transition-normal);
    position: absolute;
    left: 40px;
    top: 20px;
    z-index: 100;
    min-width: 240px;
    min-height: 70px;
    /* background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-md); */
}

.logo:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.logo:hover .close-logo {
    opacity: 1;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.logo-image {
    max-width: 100%;
    max-height: 45px;
    display: none;
    border-radius: var(--radius-sm);
}

.logo.has-image .logo-text {
    display: none;
}

.logo.has-image .logo-image {
    display: block;
}

.close-logo {
    margin-left: 16px;
    font-size: 1rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity var(--transition-normal);
    cursor: pointer;
}

.close-logo:hover {
    color: var(--danger-color);
}

/* ====================== Logo提示框样式 ====================== */
.logo-hint {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 101;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: all var(--transition-normal);
}

.logo-hint::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--primary-color);
}

.logo-hint .close-hint {
    font-size: 0.9rem;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity var(--transition-normal);
    margin-left: 8px;
}

.logo-hint .close-hint:hover {
    opacity: 1;
}

.logo-hint.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

.logo:hover .logo-hint:not(.hidden) {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ====================== 控制按钮容器 ====================== */
.control-buttons {
    display: flex;
    gap: 12px;
    position: absolute;
    right: 40px;
    top: 20px;
    z-index: 100;
}

/* 控制按钮样式 */
.control-btn {
    background: rgb(30 41 59 / 45%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1.3rem;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* 全屏模式下隐藏不必要的按钮 */
body.fullscreen-mode .settings-btn,
body.fullscreen-mode .add-countdown-btn,
body.fullscreen-mode .countdown-controls,
body.fullscreen-mode #init-btn {
    display: none !important;
    pointer-events: none !important;
}

/* 全屏模式下只对全屏按钮进行鼠标检测 */
body.fullscreen-mode .fullscreen-btn-control {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* 全屏模式下隐藏的全屏按钮状态 */
body.fullscreen-mode .fullscreen-btn-control.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 确保全屏按钮悬停时不会消失 */
body.fullscreen-mode .fullscreen-btn-control:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ====================== 主倒计时显示区域 ====================== */
.countdown-display {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-xl);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        var(--shadow-xl);
    width: min(1000px, 85vw);
    height: min(500px, 75vh);
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    transform-origin: center center;
}

.countdown-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.time-container {
    transition: all var(--transition-normal);
}

.countdown-display:hover .countdown-controls {
    opacity: 1;
    visibility: visible;
}

/* ====================== 时间显示区域 ====================== */
.time-display {
    text-align: center;
    padding: 40px 20px 10px 20px;
    width: 100%;
    transition: all var(--transition-normal);
}

.current-time {
    display: block;
    transition: all var(--transition-normal);
}

.countdown-timer {
    display: none;
    transition: all var(--transition-normal);
}

.time-digits {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: none!important;
    letter-spacing: 2px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    transition: all var(--transition-normal);
}

.time-digits .hour,
.time-digits .minute,
.time-digits .second {
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    transition: all var(--transition-normal);
}

.time-digits .colon {
    animation: blink 1.2s infinite;
    margin: 0 8px;
    min-width: 0.5em;
    text-align: center;
    transition: all var(--transition-normal);
    color: var(--primary-light);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.date-display {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-top: 15px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

/* ====================== 倒计时显示样式 ====================== */
.countdown-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-weight: 700;
    transition: all var(--transition-normal);
    padding: 0 20px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.countdown-digits {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 10px;
    width: 100%;
    transition: all var(--transition-normal);
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    flex: 1;
    max-width: 180px;
    transition: all var(--transition-normal);
}

.time-unit .number {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    background: rgba(15, 23, 42, 0.6);
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    min-width: 120px;
    text-align: center;
    transition: all var(--transition-normal);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    letter-spacing: 0;
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-md);
}

.time-unit .label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

/* ====================== 进度环样式 ====================== */
.progress-ring {
    position: absolute;
    bottom: 40px;
    right: 40px;
    opacity: 0.7;
    transition: all var(--transition-normal);
}

.progress-ring__circle {
    stroke: var(--primary-color);
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.35s;
}

/* ====================== 按钮样式 ====================== */
.action-buttons {
    margin-top: 0px;
    display: flex;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 999;
    padding: 20px;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
}

#test-sound-btn{width: 100%;background: #534de7!important;font-size: 0.9rem!important; padding: 12px 30px!important;}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.countdown-controls {
    display: flex;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

/* ====================== 模态对话框样式 ====================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    width: min(550px, 90vw);
    max-height: 90vh;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 32px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.5);
}

.modal-header h2 {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-normal);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.close-modal:hover {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(90vh - 140px);
    
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.5) rgba(255, 255, 255, 0.05);
}

/* 自定义Webkit滚动条 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select {
    width: 100%;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-normal);
}

.checkbox:hover {
    color: var(--text-primary);
}

.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.sound-select {
    margin-top: 20px;
}

.sound-select select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.sound-select select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal-footer {
    padding: 15px 32px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.5);
}

/* ====================== 设置面板样式 ====================== */
.settings-panel {
    position: fixed;
    top: 0;
    right: -550px;
    width: 500px;
    height: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.settings-panel.active {
    right: 0;
}

/* 固定菜单栏区域 */
.settings-header {
    padding: 15px 32px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 15, 28, 0.8);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.settings-header h2 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

/* 固定标签页区域 */
.settings-tabs-container {
    position: sticky;
    top: 0px;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9;
    padding: 10px 32px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
}

.settings-tabs {
    display: flex;
    gap: 8px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: var(--radius-lg);
    padding: 6px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

/* 美化滚动条 */
.settings-body {
    padding: 0 32px 32px;
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.6) rgba(255, 255, 255, 0.05);
}

/* 自定义Webkit滚动条 */
.settings-body::-webkit-scrollbar {
    width: 10px;
}

.settings-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin: 5px 0;
}

.settings-body::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.6);
    border-radius: 5px;
    border: 2px solid rgba(15, 23, 42, 0.8);
}

.settings-body::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.8);
}

.close-settings {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-normal);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.close-settings:hover {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

/* ====================== 主题网格样式 ====================== */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.theme-item {
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.theme-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.theme-item.active {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.theme-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    z-index: 2;
}

.theme-item.active .theme-preview::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 3;
}

.theme-preview {
    height: 110px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
}

.theme-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.theme-item:hover .theme-preview img {
    transform: scale(1.05);
}

.theme-info {
    padding: 8px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

/* 移除描述文字 */
.theme-description {
    display: none;
}

/* ====================== 背景图片设置样式 ====================== */
.background-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.background-item {
    cursor: pointer;
    transition: all var(--transition-normal);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card-bg);
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}

.background-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.background-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.background-item.active::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    z-index: 3;
    box-shadow: var(--shadow-sm);
}

.background-preview {
    height: 110px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    position: relative;
}

.background-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.background-item:hover .background-preview img {
    transform: scale(1.05);
}

.background-info {
    padding: 8px;
    text-align: center;
}

.background-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* 移除描述文字 */
.background-description {
    display: none;
}

.background-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.background-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 60%;
}

/* ====================== 尺寸控制滑块样式 ====================== */
.size-control {
    margin: 30px 0;
}

.size-control h4 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.size-slider {
    width: 100%;
    height: 8px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 15px;
}

.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.size-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: var(--primary-light);
}

.size-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.size-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    background: var(--primary-light);
}

.size-value-display {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.size-value-display span {
    font-weight: 600;
}

.size-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.size-preset-btn {
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.95rem;
    text-align: center;
    font-weight: 600;
}

.size-preset-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.size-preset-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* ====================== 特效设置样式 ====================== */
.effect-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.effect-description p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 70%;
}

#preview-effect-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
}

.effect-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.effect-item {
    cursor: pointer;
    transition: all var(--transition-normal);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.effect-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.effect-item.active {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.effect-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    z-index: 2;
}

.effect-item.active .effect-preview::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 3;
}

.effect-preview {
    height: 100px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    background: rgba(15, 23, 42, 0.5);
}

.effect-preview i {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.effect-item:hover .effect-preview i {
    opacity: 1;
    transform: scale(1.1);
}

.effect-info {
    padding: 8px;
    text-align: center;
}

.effect-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* 移除描述文字 */
.effect-description {
    display: none;
}

/* ====================== 最终倒计时样式（全屏大字） ====================== */
.final-countdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
}

.final-countdown.active {
    display: flex;
    flex-direction: column;
}

.final-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 30vw;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 
        0 0 50px rgba(99, 102, 241, 0.8),
        0 0 100px rgba(99, 102, 241, 0.6),
        0 0 150px rgba(99, 102, 241, 0.4);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
        text-shadow: 
            0 0 50px rgba(99, 102, 241, 0.8),
            0 0 100px rgba(99, 102, 241, 0.6),
            0 0 150px rgba(99, 102, 241, 0.4);
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.9; 
        text-shadow: 
            0 0 70px rgba(99, 102, 241, 1),
            0 0 140px rgba(99, 102, 241, 0.8),
            0 0 200px rgba(99, 102, 241, 0.6);
    }
}

.end-message {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-primary);
    z-index: 2001;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    animation: fadeInOut 2s infinite alternate;
    padding: 20px;
    font-weight: 600;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    backdrop-filter: blur(10px);
}

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

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

.firework {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
}

/* ====================== 通知样式 ====================== */
.notification {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 16px 28px;
    border-radius: var(--radius-lg);
    z-index: 9999;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: opacity 0.5s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 90%;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ====================== 响应式设计优化 ====================== */
/* 超大屏幕 (2560px及以上) - 优化大屏显示 */
@media (min-width: 2560px) {
    .container {
        max-width: 2000px;
        padding: 40px;
    }
    
    .countdown-display {
        width: min(1400px, 70vw);
        height: min(700px, 60vh);
    }
    
    .countdown-title {
        font-size: 3rem;
        margin-bottom: 50px;
    }
    
    .time-unit .number {
        font-size: 7rem;
        min-width: 180px;
        padding: 20px 40px;
    }
    
    .time-unit .label {
        font-size: 1.5rem;
    }
    
    .time-digits {
        font-size: clamp(5rem, 8vw, 7rem);
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .logo {
        min-width: 300px;
        min-height: 80px;
        left: 60px;
        top: 40px;
    }
    
    .control-buttons {
        right: 60px;
        top: 40px;
    }
    
    .settings-panel {
        width: 600px;
    }
    
    .theme-grid,
    .background-grid,
    .effect-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* 大屏幕 (1920px-2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .container {
        max-width: 1800px;
        padding: 30px;
    }
    
    .countdown-display {
        width: min(1200px, 75vw);
        height: min(600px, 65vh);
    }
    
    .countdown-title {
        font-size: 2.5rem;
    }
    
    .time-unit .number {
        font-size: 6rem;
        min-width: 150px;
    }
    
    .settings-panel {
        width: 550px;
    }
}

/* 中等屏幕 (1366px-1919px) */
@media (min-width: 1366px) and (max-width: 1919px) {
    .container {
        max-width: 1400px;
    }
    
    .countdown-display {
        width: min(1000px, 80vw);
        height: min(500px, 70vh);
    }
    
    .theme-grid,
    .background-grid,
    .effect-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 小屏幕 (1024px-1365px) */
@media (min-width: 1024px) and (max-width: 1365px) {
    .countdown-display {
        width: min(900px, 85vw);
        height: min(450px, 75vh);
    }
    
    .time-unit .number {
        font-size: 4.5rem;
        min-width: 110px;
        padding: 12px 20px;
    }
    
    .countdown-title {
        font-size: 1.8rem;
    }
    
    .settings-panel {
        width: 480px;
    }
}

/* 平板横向 (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .countdown-display {
        width: min(800px, 90vw);
        height: min(400px, 80vh);
    }
    
    .time-unit .number {
        font-size: 4rem;
        min-width: 100px;
        padding: 10px 16px;
    }
    
    .countdown-title {
        font-size: 1.6rem;
        padding: 0 15px;
    }
    
    .time-digits {
        font-size: clamp(3rem, 6vw, 4rem);
    }
    
    .logo {
        left: 20px;
        top: 15px;
        min-width: 200px;
        min-height: 60px;
        padding: 12px 20px;
    }
    
    .control-buttons {
        right: 20px;
        top: 15px;
    }
    
    .settings-panel {
        width: 450px;
        right: -450px;
    }
    
    .theme-grid,
    .background-grid,
    .effect-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* 平板纵向和手机横向 (600px-767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .container {
        padding: 15px;
    }
    
    .countdown-display {
        width: 95vw;
        height: 75vh;
        border-radius: var(--radius-lg);
    }
    
    .countdown-digits {
        gap: 15px;
    }
    
    .time-unit {
        min-width: 100px;
        max-width: 120px;
    }
    
    .time-unit .number {
        font-size: 3.5rem;
        min-width: 90px;
        padding: 8px 14px;
    }
    
    .time-unit .label {
        font-size: 1rem;
    }
    
    .countdown-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    
    .logo {
        left: 15px;
        top: 10px;
        min-width: 180px;
        min-height: 55px;
        padding: 10px 16px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .control-buttons {
        right: 15px;
        top: 10px;
        gap: 8px;
    }
    
    .control-btn {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
    
    .settings-panel {
        width: 100%;
        right: -100%;
    }
    
    .settings-tabs {
        overflow-x: auto;
        padding: 6px;
    }
    
    .tab-btn {
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 12px 14px;
    }
    
    .theme-grid,
    .background-grid,
    .effect-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .theme-preview,
    .background-preview,
    .effect-preview {
        height: 120px;
    }
    
    .theme-info,
    .background-info,
    .effect-info {
        padding: 12px;
    }
    
    .modal-content {
        width: 95vw;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(95vh - 130px);
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 20px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .end-message {
        font-size: 1.4rem;
        bottom: 40px;
        padding: 15px;
    }
}

/* 手机 (480px-599px) */
@media (max-width: 599px) {
    .container {
        padding: 10px;
    }
    
    .countdown-display {
        width: 95vw;
        height: 80vh;
        border-radius: var(--radius-lg);
    }
    
    .time-display {
        padding: 20px;
    }
    
    .countdown-digits {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .time-unit {
        min-width: 80px;
        max-width: 100px;
        margin: 5px;
    }
    
    .time-unit .number {
        font-size: 3rem;
        min-width: 75px;
        padding: 8px 12px;
        border-radius: var(--radius-md);
    }
    
    .time-unit .label {
        font-size: 0.9rem;
    }
    
    .countdown-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .time-digits {
        font-size: clamp(2.5rem, 7vw, 3rem);
        margin-bottom: 15px;
    }
    
    .date-display {
        font-size: 1.1rem;
    }
    
    .logo {
        left: 10px;
        top: 10px;
        padding: 8px 12px;
        min-width: 160px;
        min-height: 50px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .control-buttons {
        right: 10px;
        top: 10px;
        gap: 6px;
    }
    
    .control-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .settings-panel {
        width: 100%;
        right: -100%;
    }
    
    .settings-header {
        padding: 20px;
    }
    
    .settings-body {
        padding: 20px;
    }
    
    .tab-btn {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    
    .tab-content h3 {
        font-size: 1.2rem;
    }
    
    .theme-grid,
    .background-grid,
    .effect-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .theme-preview,
    .background-preview,
    .effect-preview {
        height: 100px;
    }
    
    .theme-info,
    .background-info,
    .effect-info {
        padding: 10px;
    }
    
    .theme-name,
    .background-name,
    .effect-name {
        font-size: 0.9rem;
    }
    
    .effect-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .effect-description p {
        max-width: 100%;
    }
    
    #preview-effect-btn {
        align-self: flex-start;
    }
    
    .modal-content {
        width: 95vw;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(95vh - 120px);
    }
    
    .modal-header {
        padding: 10px;
    }
    
    .modal-footer {
        padding: 10px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .checkbox-group {
        gap: 12px;
    }
    
    .end-message {
        font-size: 1.2rem;
        bottom: 30px;
        padding: 12px;
    }
}

/* 小手机 (360px-479px) */
@media (max-width: 479px) {
    .countdown-display {
        height: 85vh;
    }
    
    .time-unit {
        min-width: 70px;
        max-width: 90px;
    }
    
    .time-unit .number {
        font-size: 2.5rem;
        min-width: 65px;
        padding: 6px 10px;
    }
    
    .countdown-title {
        font-size: 1.2rem;
    }
    
    .time-digits {
        font-size: clamp(2.2rem, 6vw, 2.5rem);
    }
    
    .logo {
        min-width: 140px;
        min-height: 45px;
        padding: 6px 10px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .theme-grid,
    .background-grid,
    .effect-grid {
        grid-template-columns: 1fr;
    }
}

/* 超小手机 (320px-359px) */
@media (max-width: 359px) {
    .countdown-display {
        height: 90vh;
    }
    
    .time-unit {
        min-width: 60px;
        max-width: 80px;
    }
    
    .time-unit .number {
        font-size: 2.2rem;
        min-width: 55px;
        padding: 5px 8px;
    }
    
    .time-unit .label {
        font-size: 0.8rem;
    }
    
    .countdown-title {
        font-size: 1.1rem;
    }
    
    .logo {
        min-width: 120px;
        min-height: 40px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}




/* ====================== 设置面板标题栏操作按钮 ====================== */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
}

/* ====================== 个人中心样式 ====================== */
.user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.user-status {
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.free-user {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

.badge.premium-user {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
}

/* 我的倒计时区域 */
.my-countdowns-section {
    margin-bottom: 40px;
}

.my-countdowns-section h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.membership-section h4{margin-bottom: 15px;}

.membership-section button{width:100%; background: linear-gradient(135deg, var(--accent-color), #f97316); margin-top: 20px;}

.my-countdowns-list {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(30, 41, 59, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 16px;
}

.my-countdowns-list::-webkit-scrollbar {
    width: 6px;
}

.my-countdowns-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.my-countdowns-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 3px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.empty-state .hint {
    font-size: 0.9rem;
    opacity: 0.7;
}

.countdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.countdown-item:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(5px);
}

.countdown-info {
    flex: 1;
}

/**.countdown-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 1rem;
} **/

.countdown-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    gap: 20px;
}

.countdown-actions {
    display: flex;
    gap: 10px;
}

.countdown-action-btn {
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 会员特权区域 */
.membership-benefits {
    background: rgba(30, 41, 59, 0.6);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.benefit-item i {
    color: var(--success-color);
    font-size: 1rem;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

/* 会员套餐
.membership-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
} */

.plan-card {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.plan-card.popular {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.plan-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-color), #f97316);
    color: white;
    padding: 6px 20px;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 24px;
}

.plan-header h5 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.plan-price .currency {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.plan-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.plan-save {
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 600;
}

.plan-features {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.plan-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li:before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-select-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.plan-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.plan-card.popular .plan-select-btn {
    background: linear-gradient(135deg, var(--accent-color), #f97316);
}

.plan-card.popular .plan-select-btn:hover {
    background: linear-gradient(135deg, #fbbf24, var(--accent-color));
}

/* ====================== 登录注册模态框样式 ====================== */
.login-tabs {
    display: flex;
    gap: 2px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 30px;
}

.login-tab-btn {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.login-tab-btn.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

.login-form,
.register-form {
    display: none;
}

.login-form.active,
.register-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.full-width {
    width: 100%;
    margin-top: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-normal);
}

.forgot-password:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(99, 102, 241, 0.2);
}

.divider span {
    padding: 0 15px;
}

.social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.social-btn {
    padding: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.social-btn.google {
    background: rgba(220, 74, 61, 0.1);
    border-color: rgba(220, 74, 61, 0.3);
}

.social-btn.google:hover {
    background: rgba(220, 74, 61, 0.2);
}

.social-btn.github {
    background: rgba(24, 23, 23, 0.1);
    border-color: rgba(24, 23, 23, 0.3);
}

.social-btn.github:hover {
    background: rgba(24, 23, 23, 0.2);
}

.social-btn.wechat {
    background: rgba(7, 193, 96, 0.1);
    border-color: rgba(7, 193, 96, 0.3);
}

.social-btn.wechat:hover {
    background: rgba(7, 193, 96, 0.2);
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.login-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ====================== 响应式调整 ====================== */
@media (max-width: 768px) {
   /* .membership-plans {
        grid-template-columns: 1fr;
        gap: 16px;
    } */
    
    .plan-card.popular {
        transform: none;
    }
    
    .plan-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .plan-badge {
        left: 20px;
        transform: none;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .user-profile {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .my-countdowns-list {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .plan-card {
        padding: 20px;
    }
    
    .plan-price .amount {
        font-size: 2rem;
    }
    
    .settings-header h2 {
        font-size: 1.2rem;
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}
/* 2026.01 erx@qq.com */
#back-btn{text-decoration:none;}
.e-nologin-tips{display:none;color:#f97316;}
.my-countdown{list-style:none;}
.my-countdown li{margin:7px 0;}
.my-countdown li a{color:#fff;text-decoration:none;}
.my-countdown li i{margin-right:6px;}
.my-countdown li .e-rec-dele{color:#f97316;margin-left:8px;font-size:12px;cursor:pointer;}
.my-countdown li .countdown{margin-left:8px;color:var(--success-color);}
.common-mode #init-btn, .common-mode #settings-btn, .common-mode .settings-panel, body.fullscreen-mode #back-btn{display:none;}
a.btn-secondary{text-decoration:none;}
.user-name{font-size:16px;}
.user-name em{font-size:12px;font-weight:normal;margin-left:5px;opacity:.5;}
.theme-item .vip-tag, .background-item .vip-tag, .effect-item .vip-tag{position:absolute;top:0;left:0;color:#fff;background:gold;padding:1px 5px;border-radius:3px;}
.vip-up-wrap{display:none;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.1);backdrop-filter:blur(3px);z-index:9999;justify-content:center;align-items:center;}
.vip-up-wrap.erxshow{display:flex;}
.vip-up-box{width:1200px;max-width:80%;height:80vh;border-radius:15px;overflow:hidden;position:relative;}
.vip-up-box iframe{width:100%;height:100%;}
.vip-up-box .close{position:absolute;top:5px;right:5px;cursor:pointer;}
.vip-up-box .close i::before{color:#333;font-size:40px;}
.vip-up-box .close:hover i::before{color:#f97316;}
.vip-overtime{font-size:14px;font-weight:normal;}
.logout{color:#f97316;font-size:14px;}


/* 在CSS文件末尾添加友情链接模块的样式 */

/* ====================== 简洁友情链接模块样式 ====================== */
.simple-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    font-size: 0.85rem;
    color: var(--text-muted);
   position: absolute;
    bottom: 10px;
}

.simple-links:hover {
    opacity: 0.8;
}

.links-label {
    color: var(--text-muted);
    font-weight: 500;
}

.link-item {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.link-item:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.link-separator {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 2px;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .simple-links {
        font-size: 0.8rem;
        margin-top: 30px;
        padding-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 简化版 - 只修改图标颜色 */
#target-date::-webkit-calendar-picker-indicator,
#target-time::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}