/* 强制覆盖所有Tailwind字体类 */
#loading-title.loading-hitokoto {
    /* 字体大小 - 调这里的数字 */
    font-size: 22px !important;
    
    /* 电脑端 */
    @media (min-width: 768px) {
        font-size: 26px !important;
    }
    
    /* 超长句子更小 */
    #loading-title.loading-hitokoto.long-sentence {
        font-size: 18px !important;
    }
    
    @media (min-width: 768px) {
        #loading-title.loading-hitokoto.long-sentence {
            font-size: 22px !important;
        }
    }
    
    /* 确保覆盖所有可能的Tailwind字体类 */
    font-size: 22px !important;
    font-size: 1.375rem !important;
    
    /* 其他必要样式 */
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
    
    /* 保持原有渐变 */
    background: linear-gradient(to bottom, #ffffff, rgba(255,255,255,0.4)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    
    /* 布局 */
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 90% !important;
}


/* 临时添加测试样式 */
#loading-title {
    animation: slideInLeft 1s ease-in-out 0s both !important;
}


/*时间显示组件样式（添加多点翻动效果） */
/* nt.css - 时间显示组件样式（优化字体） */
/* nt.css - 完整版本（添加小2号字体） */

/* 动画定义 */
@keyframes verticalFlow {
    0% { transform: translateY(-100%) scaleY(1); opacity: 0; }
    50% { transform: translateY(0) scaleY(1.5); opacity: 1; }
    100% { transform: translateY(100%) scaleY(1); opacity: 0; }
}

@keyframes horizontalFlow {
    0% { transform: translateX(-100%) scaleX(1); opacity: 0; }
    50% { transform: translateX(0) scaleX(1.5); opacity: 1; }
    100% { transform: translateX(100%) scaleX(1); opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 翻动动画 */
@keyframes flipOut {
    0% { transform: rotateX(0deg) scale(1); opacity: 1; }
    100% { transform: rotateX(90deg) scale(0.9); opacity: 0; }
}

@keyframes flipIn {
    0% { transform: rotateX(-90deg) scale(0.9); opacity: 0; }
    100% { transform: rotateX(0deg) scale(1); opacity: 1; }
}

/* ===== 小2号字体类 ===== */
.text-smaller-2 {
    font-size: 0.75em !important; /* 小25% */
    line-height: 1.2 !important;
}

/* 响应式调整 */
@media (min-width: 640px) {
    .text-smaller-2 {
        font-size: 0.7em !important; /* 桌面端再小一点 */
    }
}

/* ===== 时间显示组件样式 ===== */
.time-display-wrapper {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 0.8s;
}

/* 分隔竖线动画 */
.separator-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    animation: verticalFlow 2s infinite ease-in-out;
}

/* 装饰线动画 */
.decorative-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    animation: horizontalFlow 3s infinite ease-in-out;
}

/* 确保装饰线容器正确显示 */
.separator-line,
.decorative-line {
    position: relative;
    overflow: hidden;
}

/* ===== 字体优化 ===== */
.time-font,
.date-font,
.weekday-font,
.highlight-text,
#elapsedSecondsDisplay {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
}

/* 时间显示优化 */
.time-font {
    font-weight: 300;
    letter-spacing: 1px;
}

.time-separator {
    opacity: 0.6;
    font-weight: 200;
}

/* 日期字体优化 */
.date-font {
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* 星期字体优化 */
.weekday-font {
    font-weight: 400;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 高亮文本 */
.highlight-text {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* 基础文本样式 */
.elapsed-time,
.current-time,
.weekday-label,
.date-display {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* 可点击元素通用样式 */
.clickable-element {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: inline-block;
    perspective: 1000px;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.clickable-element:hover {
    color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.clickable-element:active {
    transform: translateY(0);
}

/* 今日已过时间样式 */
.elapsed-time {
    composes: clickable-element;
    font-size: 10px;
}

/* 当前时间样式 */
.current-time {
    composes: clickable-element;
}

/* 星期显示样式 */
.weekday-label {
    composes: clickable-element;
}

/* 日期显示样式 */
.date-display {
    composes: clickable-element;
}

/* 翻动动画类 */
.flipping {
    animation: flipOut 0.3s ease-out forwards;
    pointer-events: none;
    transform-style: preserve-3d;
}

/* 工具提示样式 */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
    margin-bottom: -6px;
    z-index: 1000;
}

/* 基础样式重置 */
.time-display-wrapper * {
    box-sizing: border-box;
}

/* 字体抗锯齿优化 */
.time-display-wrapper {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 响应式调整 */
@media (min-width: 640px) {
    .date-display,
    .current-time {
        font-size: 1.125rem; /* 18px */
        line-height: 1.75rem;
    }
    
    .date-display.text-smaller-2,
    .current-time.text-smaller-2 {
        font-size: 0.85rem !important; /* 约13.6px，小2号 */
    }
    
    .time-font {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }
    
    .weekday-font {
        font-size: 0.9rem;
    }
    
    .elapsed-time {
        font-size: 11px;
    }
}

/* 移动端优化 */
@media (max-width: 639px) {
    .date-display,
    .current-time {
        font-size: 0.95rem; /* 15.2px */
    }
    
    .date-display.text-smaller-2,
    .current-time.text-smaller-2 {
        font-size: 0.75rem !important; /* 12px，小2号 */
    }
    
    .time-font {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .weekday-font {
        font-size: 0.8rem;
    }
    
    .elapsed-time {
        font-size: 10px;
    }
    
    .highlight-text {
        font-size: 1.1em;
    }
}


.reveal-text {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}