/* 数字时钟网站样式 */

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

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 背景容器 */
#backgroundContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 背景图片 */
#backgroundImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 2s ease-in-out, transform 2s ease-in-out, filter 0.1s linear;
    opacity: 1;
    transform: scale(1.05); /* 轻微放大，让动画更有层次感 */
    filter: blur(8px); /* 初始模糊度，JavaScript会动态修改 */
}

/* 黑色半透明蒙层已移至JavaScript动态控制，实现随时间变化的透明度效果 */

/* 自定义工具类 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.clock-glow {
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.5), 
                 0 0 20px rgba(249, 115, 22, 0.3),
                 0 0 30px rgba(249, 115, 22, 0.1);
    animation: pulse 2s infinite alternate;
}

/* 动画效果 */
@keyframes pulse {
    0% {
        text-shadow: 0 0 10px rgba(249, 115, 22, 0.5), 
                     0 0 20px rgba(249, 115, 22, 0.3),
                     0 0 30px rgba(249, 115, 22, 0.1);
    }
    100% {
        text-shadow: 0 0 15px rgba(249, 115, 22, 0.7), 
                     0 0 30px rgba(249, 115, 22, 0.5),
                     0 0 40px rgba(249, 115, 22, 0.2);
    }
}

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

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

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

/* 主容器 */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* 顶部导航栏固定在角落 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 1.2rem; /* 缩小padding */
    pointer-events: none;
    margin-bottom: 0;
    animation: fadeIn 0.5s ease-out;
}

header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    pointer-events: auto;
    padding: 0;
    margin: 0;
}

header .text-2xl {
    font-size: 1.25rem; /* 缩小logo字体 */
    transition: all 0.3s ease;
}

/* 右上角按钮组 */
header .flex.space-x-4 {
    display: flex;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

/* 控制按钮固定在右上角 */
header .p-2.w-10.h-10 {
    width: 1.75rem; /* 缩小按钮尺寸 */
    height: 1.75rem;
    padding: 0.35rem;
    transition: all 0.3s ease;
}

/* 确保所有按钮图标尺寸严格一致 */
header .p-2.w-10.h-10 .fa {
    font-size: 0.875rem !important; /* 统一图标尺寸 */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* 大屏幕和全屏模式下的调整 */
@media (min-width: 1200px) {
    header {
        padding: 1.4rem 1.4rem; /* 缩小padding */
    }
    
    header .text-2xl {
        font-size: 1.4rem; /* 缩小logo */
    }
    
    header .p-2.w-10.h-10 {
        width: 1.9rem; /* 缩小按钮 */
        height: 1.9rem;
        padding: 0.4rem;
    }
    
    header .p-2.w-10.h-10 .fa {
        font-size: 0.95rem !important; /* 统一图标尺寸 */
    }
}

/* 超大屏幕下更加贴边 */
@media (min-width: 1600px) {
    header .text-2xl {
        font-size: 1.5rem; /* 缩小logo */
    }
    
    header .p-2.w-10.h-10 {
        width: 2rem; /* 缩小按钮 */
        height: 2rem;
    }
    
    header .p-2.w-10.h-10 .fa {
        font-size: 1rem !important; /* 统一图标尺寸 */
    }
}

/* 旧的全屏header样式已移除，使用新的自适应样式 */

/* 主内容区域 */
main {
    position: relative;
    min-height: 100vh;
}

/* 时钟模式和番茄钟模式容器 */
#clockMode,
#pomodoroMode {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* 主时钟区域 */
.main-clock {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 90%;
    animation: fadeIn 0.7s ease-out 0.2s both;
}

/* 时间显示严格居中 */
#timeDisplay {
    z-index: 20;
}

/* 文案容器样式 */
#textContainer {
    position: absolute;
    bottom: 5%;
    left: 0;
    right: 0;
    z-index: 15;
    animation: fadeIn 0.7s ease-out 0.5s both;
    text-align: center;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 文案动画状态 */
#textContainer.show {
    opacity: 0.7;
    transform: translateY(0);
}

/* 文案滑入动画 */
@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-10px);
    }
    100% {
        opacity: 0.7;
        transform: translateY(0);
    }
}

/* 文案滑出动画 */
@keyframes slideOutToBottom {
    0% {
        opacity: 0.7;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(100px);
    }
}

/* 第三行文案滑入状态 */
#carouselCounter.slide-in {
    animation: slideInFromBottom 2s ease-out forwards;
}

/* 第三行文案滑出状态 */
#carouselCounter.slide-out {
    animation: slideOutToBottom 0.5s ease-in forwards;
}

/* 引用文本样式 - 标题艺术字体 */
#quoteDisplay {
    font-size: 0.875rem;
    line-height: 1.4;
    font-family: var(--font-title-art), cursive; /* 标题艺术字体 */
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* 消息文本样式 - 隶书古韵字体 */
#messageDisplay {
    font-size: 1rem;
    line-height: 1.3;
    font-family: var(--font-li-shu), serif; /* 隶书古韵字体 */
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-top: 0.5rem;
}

/* 计数器文本样式 - 调整为更小的基础尺寸 */
#carouselCounter {
    font-size: 0.625rem; /* 进一步减小基础尺寸 */
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    /* 初始隐藏状态 */
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

/* 响应式文本大小 - 中等屏幕 */
@media (min-width: 768px) {
    #quoteDisplay {
        font-size: 1.125rem;
    }
    
    #messageDisplay {
        font-size: 1.25rem;
    }
    
    #carouselCounter {
        font-size: 0.75rem; /* 缩小 */
    }
}

/* 响应式文本大小 - 大屏幕 */
@media (min-width: 1200px) {
    #quoteDisplay {
        font-size: 1.25rem;
    }
    
    #messageDisplay {
        font-size: 1.5rem;
    }
    
    #carouselCounter {
        font-size: 0.875rem; /* 缩小 */
    }
}

/* 全屏模式下更大的header布局 */
.fullscreen header {
    padding: 1.8rem 1.8rem; /* 适度增大padding */
}

.fullscreen header .text-2xl {
    font-size: 1.75rem; /* 适度放大logo */
}

/* 旧的全屏按钮样式已移至专用按钮样式定义中 */

/* 全屏模式下的文案 */
.fullscreen #quoteDisplay {
    font-size: 1.75rem !important;
    line-height: 1.3;
}

.fullscreen #messageDisplay {
    font-size: 2.75rem !important;
    line-height: 1.2;
}

.fullscreen #carouselCounter {
    font-size: 1.125rem !important; /* 适度放大 */
}

/* 全屏模式下的时钟适度放大 - 基于分辨率自适应 */
.fullscreen #timeDisplay {
    font-size: 8rem; /* 适度的全屏尺寸 */
}

/* 超高分辨率下进一步放大 */
@media (min-width: 1920px) and (min-height: 1080px) {
    .fullscreen header {
        padding: 2rem 2rem;
    }
    
    .fullscreen header .text-2xl {
        font-size: 2rem;
    }
    
    .fullscreen header .p-2.w-10.h-10 {
        width: 2.75rem;
        height: 2.75rem;
        padding: 0.7rem;
    }
    
    .fullscreen header .fa {
        font-size: 1.25rem !important;
    }
    
    .fullscreen #timeDisplay {
        font-size: 9rem;
    }
    
    .fullscreen #quoteDisplay {
        font-size: 2rem !important;
    }
    
    .fullscreen #messageDisplay {
        font-size: 2.25rem !important;
    }
    
    .fullscreen #carouselCounter {
        font-size: 1.25rem !important;
    }
}

/* 4K分辨率下的进一步放大 */
@media (min-width: 2560px) and (min-height: 1440px) {
    .fullscreen header {
        padding: 2.5rem 2.5rem;
    }
    
    .fullscreen header .text-2xl {
        font-size: 2.5rem;
    }
    
    .fullscreen header .p-2.w-10.h-10 {
        width: 3.25rem;
        height: 3.25rem;
        padding: 0.875rem;
    }
    
    .fullscreen header .fa {
        font-size: 1.5rem !important;
    }
    
    .fullscreen #timeDisplay {
        font-size: 11rem;
    }
    
    .fullscreen #quoteDisplay {
        font-size: 2.5rem !important;
    }
    
    .fullscreen #messageDisplay {
        font-size: 2.5rem !important;
    }
    
    .fullscreen #carouselCounter {
        font-size: 1.75rem !important;
    }
}

/* 时间显示 - 分离式布局 */
#timeDisplay {
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em; /* 减少字间距 */
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0.75; /* 设置透明度为75% */
}

/* 数字元素样式 - 固定宽度确保稳定显示 */
.time-digit {
    width: 0.9em; /* 调整宽度以减少间距 */
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
}

/* 分隔符样式 */
.time-separator {
    width: 0.4em; /* 调整分隔符宽度 */
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.8; /* 稍微降低分隔符不透明度以提升视觉效果 */
}

/* 响应式调整 */
@media (max-width: 1200px) {
    #timeDisplay {
        font-size: 7rem;
    }
}

@media (max-width: 992px) {
    #timeDisplay {
        font-size: 6rem;
    }
    
    .time-digit {
        width: 0.85em;
    }
}

@media (max-width: 768px) {
    #timeDisplay {
        font-size: 5rem;
    }
    
    .time-digit {
        width: 0.8em;
    }
}

@media (max-width: 576px) {
    #timeDisplay {
        font-size: 4rem;
    }
    
    .time-digit {
        width: 0.75em;
    }
}

@media (max-width: 576px) {
    #timeDisplay {
        font-size: 4rem;
    }
    
    .time-digit {
        width: 0.75em;
    }
}

/* 控制面板 */
.control-panel {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: slideInRight 0.5s ease-out 0.4s both;
}

/* 控制按钮 */
.control-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

/* 按钮悬停效果 - 统一样式 */
.btn-hover {
    transition: all 0.2s ease;
}

.btn-hover:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-hover:hover i {
    opacity: 1 !important;
}

.btn-hover:active {
    transform: scale(0.95);
}

/* 页脚 */
.footer {
    position: relative;
    z-index: 10;
    margin-top: auto;
    padding: 1rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    animation: fadeIn 0.5s ease-out 0.6s both;
}

/* 字体选择模态框 */
#fontModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    animation: fadeIn 0.3s ease-out;
    padding-bottom: 2rem;
}

.modal-content {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideInRight 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #111827;
}

.font-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.font-option {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.font-option:hover {
    border-color: #f97316;
    background-color: #fff7ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.font-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.font-preview {
    font-size: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #timeDisplay {
        font-size: 4rem;
    }
    
    .font-options {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    #timeDisplay {
        font-size: 3rem;
    }
    
    .control-panel {
        gap: 0.75rem;
    }
    
    .control-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* 默认字体 */
.font-orbitron {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 番茄钟样式 */
#pomodoroTimer {
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75; /* 设置透明度为75% */
}

/* 时间选项样式 */
.time-option {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.time-option:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.time-option.bg-primary {
    background-color: #f97316;
    border-color: #f97316;
    color: white;
}

/* 番茄钟控制按钮样式 */
#startButton, #pauseButton, #resetButton {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#startButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

#pauseButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

#resetButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 番茄钟状态文本 */
#pomodoroStatus {
    font-style: italic;
    transition: all 0.3s ease;
}

/* 模式切换按钮样式已移至通用class中 */

/* 3D翻转特效样式 */
main {
    perspective: 1000px;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
}

main.mode-flipping {
    animation: flip3D 0.8s ease-in-out;
}

@keyframes flip3D {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(-90deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

/* 确保模式容器在翻转时保持正确的层级 */
#clockMode,
#pomodoroMode {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* 悬停效果已通过通用btn-hover类实现 */

/* 全屏模式 */
.fullscreen {
    background-color: #000;
    color: #fff;
}

/* 移除旧的全屏时钟样式，使用新的自适应样式 */

@media (max-width: 1200px) {
    #pomodoroTimer {
        font-size: 7rem;
    }
}

@media (max-width: 992px) {
    #pomodoroTimer {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    #pomodoroTimer {
        font-size: 5rem;
    }
    
    #timeOptions {
        flex-direction: column;
        align-items: center;
    }
    
    .time-option {
        width: 100%;
        max-width: 200px;
    }
    
    #startButton, #pauseButton, #resetButton {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    #pomodoroTimer {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    #pomodoroTimer {
        font-size: 3.5rem;
    }
}

/* 小风车图标 */
#windmillIcon {
    display: inline-block;
    font-size: 1.25rem;
}

/* Header 右上角交互按钮（全屏/换壁纸/滴答声）- 重新设计：默认弱化，hover显著增强 */
#fullscreenToggle, #changeBackground, #tickSoundToggle, #modeToggle, #whiteNoiseToggle {
  /* 默认态：极度弱化的半透明状态 */
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  width: 1.75rem; /* 与header .p-2.w-10.h-10保持一致 */
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, background-color, box-shadow;
  padding: 0.35rem; /* 与header .p-2.w-10.h-10保持一致 */
}

/* 全屏状态下的按钮尺寸调整 */
.fullscreen #fullscreenToggle, 
.fullscreen #changeBackground, 
.fullscreen #tickSoundToggle,
.fullscreen #modeToggle,
.fullscreen #whiteNoiseToggle {
  width: 2.5rem !important; /* 全屏时放大 */
  height: 2.5rem !important;
  padding: 0.6rem !important;
}

/* 默认图标状态：非常弱化，几乎融入背景 */
#fullscreenToggle i, #changeBackground i, #tickSoundToggle i, #modeToggle i, #whiteNoiseToggle i {
  color: #ffffff;
  opacity: 0.4;
  font-size: 0.875rem !important; /* 统一图标尺寸 */
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* 全屏状态下的图标尺寸 */
.fullscreen #fullscreenToggle i, 
.fullscreen #changeBackground i, 
.fullscreen #tickSoundToggle i,
.fullscreen #modeToggle i,
.fullscreen #whiteNoiseToggle i {
  font-size: 1.125rem !important; /* 全屏时放大图标 */
}

/* 悬停态：显著增强 */
#fullscreenToggle:hover, #changeBackground:hover, #tickSoundToggle:hover, #modeToggle:hover, #whiteNoiseToggle:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 3px 10px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#fullscreenToggle:hover i, #changeBackground:hover i, #tickSoundToggle:hover i, #modeToggle:hover i, #whiteNoiseToggle:hover i {
  opacity: 1;
  font-size: 1rem !important;
  transform: scale(1.1);
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

/* 全屏状态下的悬停图标尺寸 */
.fullscreen #fullscreenToggle:hover i, 
.fullscreen #changeBackground:hover i, 
.fullscreen #tickSoundToggle:hover i,
.fullscreen #modeToggle:hover i,
.fullscreen #whiteNoiseToggle:hover i {
  font-size: 1.25rem !important; /* 全屏悬停时进一步放大 */
}

/* 点击态：在hover基础上微压缩 */
#fullscreenToggle:active, #changeBackground:active, #tickSoundToggle:active, #modeToggle:active, #whiteNoiseToggle:active {
  transform: scale(1.08) translateY(-1px);
  background-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(255, 255, 255, 0.15);
}

/* 聚焦态：柔和焦点环 */
#fullscreenToggle:focus-visible, #changeBackground:focus-visible, #tickSoundToggle:focus-visible, #modeToggle:focus-visible, #whiteNoiseToggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Header 内部对齐：按钮间距适中 */
header .flex.space-x-4 {
  gap: 0.75rem;
  align-items: center;
}