@import url(https://fonts.googleapis.com/css?family=Righteous);

@font-face {
    font-family: 'BrushScriptMT';
    src: url('../font/Brush Script MT Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'ShanHaiTaoYuan';
    src: url('../font/ShanHaiTaoYuanW-2.ttf') format('truetype');
}

:root {
    /* 核心颜色变量 */
    --bg-dark: #080808;
    --bg-panel: #3b3b3b;
    --accent-color: hsl(122, 40%, 60%);
    --accent-highlight: hsl(122, 40%, 75%);
    
    /* 文本颜色 */
    --text-primary: hsl(0, 0%, 95%);
    --text-secondary: hsl(0, 0%, 85%);
    --text-muted: hsl(0, 0%, 70%);
    --text-placeholder: hsl(0, 0%, 60%);

    /* 容器与边框 */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* 输入控件背景 */
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-focus-bg: rgba(255, 255, 255, 0.08);
    --input-border: rgba(255, 255, 255, 0.15);
}

/* =========================================
   1. 基础重置与全局样式
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(at 50% 0, transparent, var(--bg-dark)),
        repeating-conic-gradient(
            hsla(0, 0%, 0%, .235) 0% 25%,
            transparent 0% 50%
        ) 0 0 / 0.375em 0.375em,
        var(--bg-panel);
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
}

#background-wrapper { display: none; }

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    flex: 1;
}

/* =========================================
   2. 导航与头部区域
   ========================================= */
.nav-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
    align-items: center;
}

.back-link, .back-btn {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.back-link:hover, .back-btn:hover {
    color: #fff;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    display: inline-block;
    color: hsl(0, 0%, 90%);
    font-family: 'Righteous', 'Microsoft YaHei', serif;
    font-size: 3.5em;
    text-shadow: .03em .03em 0 hsla(230,40%,50%,1);
    position: relative;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.header h1::after {
    content: attr(data-shadow);
    position: absolute;
    top: .06em;
    left: .06em;
    width: 100%;
    height: 100%;
    z-index: -1;
    text-shadow: none;
    background-image: linear-gradient(
        45deg,
        transparent 45%,
        hsla(48,20%,90%,1) 45%,
        hsla(48,20%,90%,1) 55%,
        transparent 0
    );
    background-size: .05em .05em;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    animation: shad-anim 60s linear infinite;
}

@keyframes shad-anim {
    0% { background-position: 0 0; }
    100% { background-position: 100% -100%; }
}

.subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.processing-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* 强调主要的选项 checkbox */
.checkbox-inline.main-option {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    margin-left: 0; /* 重置可能存在的 margin */
    transition: all 0.3s;
}

.checkbox-inline.main-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.checkbox-inline.main-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* 移动端适配 */
@media screen and (max-width: 480px) {
    .processing-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .checkbox-inline.main-option {
        justify-content: center;
    }
}

/* 日间模式适配 */
body.day-mode .checkbox-inline.main-option {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.day-mode .checkbox-inline.main-option:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* =========================================
   3. 主容器与卡片系统
   ========================================= */
.container {
    /* 恢复原来的毛玻璃半透明背景 */
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.2);
    
    /* 侧边保持细线，底部保留唱片架的厚层板，颜色适配玻璃质感 */
    border: 1px solid var(--glass-border);
    border-bottom: 18px solid rgba(255, 255, 255, 0.05); 
    border-radius: var(--radius-lg);
    
    /* 恢复原有的外阴影，同时保留层板边缘的一丝微光（内阴影） */
    box-shadow: 
        inset 0 -1px 2px rgba(255, 255, 255, 0.1),
        var(--glass-shadow);
        
    overflow: hidden;
    min-height: 400px;
    transition: all 0.3s ease;
    position: relative;
}

/* 功能选择页 (Landing Page) */
.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.tool-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.tool-icon {
    font-size: 4em;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.tool-card h3 {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.tool-card p {
    color: hsl(0, 0%, 80%);
    font-size: 0.95em;
    line-height: 1.6;
}

/* =========================================
   4. 通用内容区块 (Section)
   ========================================= */
.section {
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: hsl(0, 0%, 80%);
    margin-right: 10px;
    border-radius: 2px;
}

/* =========================================
   5. 表单控件与输入
   ========================================= */
/* 文本域 */
textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    resize: vertical;
    transition: all 0.3s;
    background: var(--input-bg);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

textarea::placeholder {
    color: var(--text-placeholder);
}

textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    background: var(--input-focus-bg);
}

/* 单选框组 */
.delimiter-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
    user-select: none;
}

.radio-option:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: var(--input-bg);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: hsl(0, 0%, 80%);
}

.radio-option.custom-option {
    flex-wrap: wrap;
}

.radio-option input[type="text"] {
    padding: 8px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    font-size: 0.9rem;
    width: 200px;
    background: var(--input-bg);
    color: var(--text-primary);
}

.radio-option input[type="text"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

/* 复选框 (Inline) */
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    margin-left: 10px;
}

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

/* 按钮基础样式 */
.btn {
    -webkit-tap-highlight-color: #0000;
    cursor: pointer;
    border-radius: var(--radius-md);
    padding: 12px 30px;
    font-size: 1rem;
    background: transparent;
    border: 1px solid transparent;
    position: relative;
    color: white;
    transition: transform 0.1s ease-out, opacity 0.2s;
    display: inline-block;
    font-weight: 500;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:active:not(:disabled) {
    transform: scale(0.98) translateY(1px);
}

.btn:hover:not(:disabled) {
    transform: scale(1.02);
}

/* 按钮变体 */
.btn-primary, .btn-success {
    /* 主要按钮保持原有毛玻璃渐变效果 */
}
.btn-primary::before, .btn-success::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    z-index: -1;
    background: linear-gradient(
        hsl(0 0% 100% / 0.18),
        hsl(0 0% 4% / 0.7)
    );
    backdrop-filter: saturate(2) contrast(1) blur(10px);
    pointer-events: none;
}
.btn-primary::after, .btn-success::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 1px 0.8px hsl(0 0% 100% / 0.8) inset;
    mask: linear-gradient(-35deg, #ffffff80, #ffffff30 30% 60%, #fff);
    pointer-events: none;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================
   6. 业务模块：上传与搜索
   ========================================= */
/* 上传区域 */
.upload-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.file-upload-area {
    border: 3px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--glass-bg);
}

.file-upload-area:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.file-upload-area.drag-over {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.upload-icon { font-size: 3rem; margin-bottom: 15px; }
.upload-text { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 8px; font-weight: 600; }
.upload-hint { font-size: 0.9rem; color: var(--text-muted); }
.file-name {
    display: block;
    margin-top: 15px;
    color: var(--accent-highlight);
    font-weight: 600;
    font-size: 0.95rem;
    /* 防止文件名过长破坏布局 */
    word-break: break-all;
    max-width: 100%;
    line-height: 1.4;
}

.divider {
    text-align: center;
    color: var(--text-muted);
    position: relative;
    font-size: 0.9rem;
}
.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

/* 搜索控制栏 */
.search-controls-bar {
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.search-area textarea {
    min-height: 100px;
}

.search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

/* =========================================
   7. 结果展示 (列表与搜索)
   ========================================= */
/* 列表模式 */
.result-textarea {
    min-height: 300px;
    white-space: pre; /* 保持换行 */
}

/* 搜索结果 */
.search-results, .data-preview {
    margin-top: 20px;
}

.data-preview {
    padding: 15px;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.preview-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.preview-items {
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.preview-item {
    padding: 8px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-size: 0.85rem;
    border-left: 3px solid var(--accent-color);
    color: var(--text-secondary);
}

/* 结果项 */
.result-header {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.result-header.success {
    background: rgba(76, 175, 80, 0.15);
    color: var(--accent-highlight);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.result-header.error {
    background: rgba(244, 67, 54, 0.15);
    color: hsl(4 80% 75%);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.keyword-group {
    margin: 20px 0;
    padding: 15px;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.keyword-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.keyword-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.result-item {
    padding: 15px;
    margin: 10px 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.result-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 500;
}

.result-item-content {
    color: var(--text-secondary);
    line-height: 1.6;
    word-wrap: break-word;
}

.highlight {
    background: rgba(255, 193, 7, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
    color: hsl(45 100% 80%);
}

/* =========================================
   8. 页脚与滚动条
   ========================================= */
.footer {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: auto;
}

.footer p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 300ms ease-out;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/* =========================================
   9. 日间模式适配 (Day Mode)
   ========================================= */
body.day-mode {
    --bg-dark: #f0f4f8; /* 调整渐变背景 */
    --bg-panel: #f0f4f8;
    background-image: url(../../../../assets/image/day-background.png);
    background-size: auto;
    background-repeat: repeat;
    
    /* 覆盖颜色变量 */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-placeholder: #a0aec0;
    
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 5px 3px 30px rgba(0, 0, 0, 0.1);
    
    --input-bg: rgba(255, 255, 255, 0.7);
    --input-focus-bg: #fff;
    --input-border: rgba(0, 0, 0, 0.15);
}

body.day-mode .header h1 {
    color: #2d3748;
    text-shadow: .03em .03em 0 hsla(200, 60%, 60%, 1);
}

body.day-mode .container {
    /* 恢复原来的日间模式浅色半透明背景 */
    background: hsla(0, 0%, 100%, 0.6);
    
    /* 恢复原有的边框颜色，保留底部托板厚度 */
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-bottom: 18px solid rgba(200, 200, 200, 0.5); 
    
    /* 恢复日间模式的清爽阴影 */
    box-shadow: var(--glass-shadow);
}

body.day-mode .tool-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.05);
}

body.day-mode .tool-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body.day-mode .tool-card h3 { color: #2d3748; }
body.day-mode .tool-card p { color: #4a5568; }

body.day-mode .btn {
    background: #ffffff;
    color: #1a202c;
    border: 1px solid #cbd5e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.day-mode .btn::before, 
body.day-mode .btn::after {
    display: none; /* 日间模式去除毛玻璃伪元素 */
}

body.day-mode .btn:hover:not(:disabled) {
    background: #f7fafc;
    border-color: #a0aec0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.day-mode .file-upload-area {
    background: rgba(255, 255, 255, 0.6);
}

body.day-mode .file-upload-area:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0,0,0,0.2);
}

body.day-mode .divider::before,
body.day-mode .divider::after {
    background: rgba(0, 0, 0, 0.2);
}

body.day-mode .result-header {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0,0,0,0.05);
}

/* --- 新增部分开始 --- */
body.day-mode .result-header.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}
/* --- 新增部分结束 --- */

body.day-mode .result-item, 
body.day-mode .keyword-group {
    background: rgba(255, 255, 255, 0.5);
}
body.day-mode .highlight {
    background-color: #fef08a;
    color: #854d0e;
}

body.day-mode .footer p {
    color: rgba(0, 0, 0, 0.5);
}

/* =========================================
   10. 响应式布局 (Media Queries)
   ========================================= */
@media screen and (max-width: 768px) {
    body { padding: 10px; }
    
    .header h1 { font-size: 2.5em; }
    
    .landing-grid { padding: 20px; gap: 20px; }
    
    .section { padding: 1.5rem; }
    
    .btn { width: 100%; margin-bottom: 10px; }
    .search-actions .btn { flex: 1 1 100%; }
    
    .radio-option { font-size: 0.9rem; }
    .radio-option input[type="text"] { width: 150px; }
    
    .result-item-header { flex-direction: column; align-items: flex-start; gap: 5px; }
    .keyword-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .keyword-count { align-self: flex-start; }
}

@media screen and (max-width: 480px) {
    .header h1 { font-size: 2em; }
    .tool-icon { font-size: 3em; }
    .upload-icon { font-size: 2rem; }
    
    .radio-option { flex-wrap: wrap; }
    .radio-option input[type="text"] { width: 100%; margin-top: 5px; }
    
    .search-controls-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* 主题切换器位置 (保留原有逻辑) */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  user-select: none;
  transform: scale(0.64);
  transform-origin: top right;
}
/* 主题切换器内部样式省略，假设已在外部加载或保持不变 */
/* ... (theme-toggle internal CSS remains unchanged in function) ... */
.theme-toggle__checkbox { display: none; }
.theme-toggle__btn {
  display: block; position: relative; width: 125px; height: 70px;
  border-radius: 70px; border: 5px solid #1c1c1c; background-color: #3c4145;
  cursor: pointer; transition: all 350ms ease-in;
}
.theme-toggle__btn::before {
  content: ''; position: absolute; top: 2px; left: 2px; width: 46px; height: 46px;
  border-radius: 50%; background-color: #fff; border: 5px solid #e3e3c7; transition: all 250ms ease-in;
}
.theme-toggle__checkbox:checked + .theme-toggle__btn {
  background-color: #9ee3fb; border: 5px solid #86c3d7;
}
.theme-toggle__checkbox:checked + .theme-toggle__btn::before {
  left: 57px; background-color: #ffdf6d; border: 5px solid #e1c348;
}

/* 新增：列表模式选项栏 */
.list-options-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.label-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* 调整单选框为内联样式 */
.radio-option.inline-radio {
    display: inline-flex;
    padding: 8px 15px;
    margin-bottom: 0;
    width: auto;
    background: transparent;
    border: 1px solid transparent;
}

.radio-option.inline-radio:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 选中状态的高亮 (可选优化) */
.radio-option.inline-radio:has(input:checked) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

/* 日间模式适配 */
body.day-mode .list-options-bar {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.05);
}

body.day-mode .radio-option.inline-radio:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 修复日间模式下成功状态看不清的问题 */
body.day-mode .result-header.success {
    background: #d1e7dd;       /* 浅绿色背景 */
    color: #0f5132;            /* 深绿色文字，确保高对比度 */
    border-color: #badbcc;     /* 稍微深一点的绿色边框 */
}

/* 建议同时也优化一下错误状态（如果需要） */
body.day-mode .result-header.error {
    background: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

/* =========================================
   封面与黑胶唱片特效
   ========================================= */
.cover-grid {
    display: flex;
    justify-content: center;
    gap: 140px;
    flex-wrap: wrap;
    padding: 60px 20px;
}

.album-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;

    position: relative;
    z-index: 1;
    transition: z-index 0s;
}

.album-showcase h3 {
    margin-top: 25px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.album-showcase p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.album-card {
    position: relative;
    width: 240px;
    height: 240px;
}

/* 封面封套 */
.album-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 2;
    background-color: #eee;
    transition: transform 0.3s ease;
}

/* 内部的黑胶唱片 */
.vinyl-record {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 230px;
    height: 230px;
    /* 唱片底色 */
    background: #111;
    /* 核心魔法：使用锥形渐变模拟黑胶唱片在光线下的十字反光（高光区域） */
    background-image: conic-gradient(
        #111 0deg, 
        #3a3a3a 45deg, 
        #111 90deg, 
        #3a3a3a 135deg, 
        #111 180deg, 
        #3a3a3a 225deg, 
        #111 270deg, 
        #3a3a3a 315deg, 
        #111 360deg
    );
    border-radius: 50%;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 0 0 4px rgba(255, 255, 255, 0.05), 
        0 6px 15px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 唱片中心的贴纸标签 */
.vinyl-label {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #000;
    position: relative;
}

/* 唱片中心的小孔 */
.vinyl-label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
}

/* 鼠标悬浮时的抽拉旋转动画 */
.album-showcase:hover .vinyl-record {
    transform: translateX(110px) rotate(90deg);
}
.album-showcase:hover .album-cover {
    transform: translateX(-20px);
}

/* 生成后的静态拉出状态 */
.result-card .slide-out {
    transform: translateX(110px) rotate(45deg);
}

/* UI 小组件 */
.selected-style-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px; /* 取消四周的内边距，只保留底部的空间 */
    background: transparent; /* 去除背景颜色 */
    border: none; /* 去除之前的全包围边框 */
    border-bottom: 1px solid var(--glass-border); /* 仅在底部添加一条分割线 */
    border-radius: 0; /* 去除圆角 */
}

/* 保持图片样式不变，稍微调整一下阴影让它在透明背景下更自然 */
.selected-style-preview img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4); /* 加深一点阴影以突出图片 */
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin { 100% { transform: rotate(360deg); } }