* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 背景光效 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 80, 200, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(80, 120, 200, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(100, 100, 200, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.app {
    max-width: 430px;
    margin: 0 auto;
    padding: 24px 20px;
    min-height: 100vh;
    position: relative;
}

/* ===== 头部 ===== */
.header {
    text-align: center;
    padding: 40px 0 32px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    border-radius: 2px;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== 主播放区域 ===== */
.player-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 32px;
    padding: 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.player-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* ===== 搜索框 ===== */
.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.5;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 44px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-input:focus {
    border-color: rgba(120, 80, 200, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(120, 80, 200, 0.1);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ===== 分类筛选标签 ===== */
.category-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 20px 0;
    margin-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-filter::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: rgba(120, 80, 200, 0.15);
    border-color: rgba(120, 80, 200, 0.3);
    color: #fff;
    box-shadow: 0 2px 12px rgba(120, 80, 200, 0.15);
}

/* ===== 当前播放 ===== */
.now-playing {
    text-align: center;
    padding: 20px 0 32px;
    position: relative;
}

.sound-visual {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 音波动画圆环 */
.sound-visual .ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: ring-expand 3s ease-out infinite;
}

.sound-visual .ring:nth-child(1) { width: 100%; height: 100%; animation-delay: 0s; }
.sound-visual .ring:nth-child(2) { width: 80%; height: 80%; animation-delay: 0.5s; }
.sound-visual .ring:nth-child(3) { width: 60%; height: 60%; animation-delay: 1s; }

@keyframes ring-expand {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0; }
}

.sound-icon {
    font-size: 4rem;
    position: relative;
    z-index: 2;
    animation: gentle-float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.1));
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.sound-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
    letter-spacing: 1px;
}

.sound-category {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.sound-timer {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', Monaco, monospace;
    letter-spacing: 2px;
}

/* ===== 播放列表 ===== */
.playlist-container {
    height: 160px;
    overflow: hidden;
    position: relative;
    margin: 24px 0;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.playlist {
    position: absolute;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.playlist-item {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s ease;
    opacity: 0.3;
    position: relative;
}

.playlist-item.active {
    background: rgba(255, 255, 255, 0.04);
    opacity: 1;
}

.playlist-item.active .item-name {
    color: #fff;
}

.playlist-item .item-icon {
    font-size: 1.3rem;
    margin-right: 14px;
    width: 28px;
    text-align: center;
    opacity: 0.7;
}

.playlist-item .item-name {
    flex: 1;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.playlist-item .item-duration {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'SF Mono', Monaco, monospace;
    margin-right: 12px;
}

.playlist-item .favorite-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.playlist-item .favorite-btn:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

.playlist-item .favorite-btn.active {
    opacity: 1;
}

.playlist-item.hidden {
    display: none;
}

/* ===== 播放控制 ===== */
.controls {
    display: flex;
    justify-content: center;
    margin: 32px 0;
    position: relative;
}

.controls::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 80, 200, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.play-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.play-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(120,80,200,0.3), rgba(80,120,200,0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.play-btn:hover::before {
    opacity: 1;
}

.play-btn:active {
    transform: scale(0.96);
}

.play-btn.playing {
    background: linear-gradient(135deg, rgba(120,80,200,0.2) 0%, rgba(80,120,200,0.2) 100%);
    border-color: rgba(120, 80, 200, 0.3);
    animation: playing-pulse 2s ease-in-out infinite;
}

@keyframes playing-pulse {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 60px rgba(120, 80, 200, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.play-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.play-btn:hover .play-icon {
    transform: scale(1.1);
}

.btn-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* ===== 定时设置 ===== */
.timer-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.timer-label {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.timer-options {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.timer-btn {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.timer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(120,80,200,0.1), rgba(80,120,200,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timer-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.timer-btn:hover::before {
    opacity: 1;
}

.timer-btn.active {
    background: rgba(120, 80, 200, 0.15);
    border-color: rgba(120, 80, 200, 0.3);
    color: #fff;
    box-shadow: 0 4px 20px rgba(120, 80, 200, 0.1);
}

.timer-btn.active::before {
    opacity: 1;
}

.countdown {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(120, 80, 200, 0.8);
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', Monaco, monospace;
    letter-spacing: 2px;
    min-height: 24px;
}

/* ===== 底部 ===== */
.footer {
    text-align: center;
    padding: 32px 0;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer span {
    color: rgba(120, 80, 200, 0.6);
    font-weight: 600;
}

/* ===== 音量控制 ===== */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.volume-icon {
    font-size: 1.2rem;
    opacity: 0.7;
}

.volume-slider {
    flex: 1;
    max-width: 200px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(120, 80, 200, 0.8), rgba(80, 120, 200, 0.8));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(120, 80, 200, 0.3);
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(120, 80, 200, 0.8), rgba(80, 120, 200, 0.8));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(120, 80, 200, 0.3);
}

.volume-value {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    min-width: 40px;
    text-align: right;
    font-family: 'SF Mono', Monaco, monospace;
}

/* ===== Toast 提示 ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* ===== 统计面板按钮 ===== */
.stats-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(135deg, rgba(120, 80, 200, 0.2), rgba(80, 120, 200, 0.2));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 80, 200, 0.3);
    border-radius: 24px;
    padding: 12px 20px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    box-shadow: 0 4px 20px rgba(120, 80, 200, 0.2);
    transition: all 0.3s ease;
    z-index: 100;
}

.stats-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(120, 80, 200, 0.3);
}

.stats-icon {
    font-size: 1.1rem;
}

/* ===== 统计面板 ===== */
.stats-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 430px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-panel.open {
    right: 0;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.stats-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.stats-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(120, 80, 200, 0.9), rgba(80, 120, 200, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.stats-section {
    margin-bottom: 24px;
}

.stats-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.favorite-sounds {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.favorite-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.favorite-item .fav-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.favorite-item .fav-info {
    flex: 1;
}

.favorite-item .fav-name {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 4px;
}

.favorite-item .fav-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.empty-tip {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    padding: 20px;
}

.time-distribution {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    min-width: 120px;
}

.time-progress {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.time-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(120, 80, 200, 0.6), rgba(80, 120, 200, 0.6));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.time-value {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    min-width: 40px;
    text-align: right;
}

/* ===== AI 生成按钮 ===== */
.ai-generate-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(120, 80, 200, 0.3), rgba(80, 120, 200, 0.3));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 80, 200, 0.4);
    border-radius: 24px;
    padding: 12px 20px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    box-shadow: 0 4px 20px rgba(120, 80, 200, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.ai-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(120, 80, 200, 0.4);
}

.ai-icon {
    font-size: 1.1rem;
}

/* ===== 弹窗 ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(20, 20, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.prompt-examples {
    margin-bottom: 20px;
}

.example-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.example-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.example-btn:hover {
    background: rgba(120, 80, 200, 0.1);
    border-color: rgba(120, 80, 200, 0.3);
    transform: translateX(4px);
}

.custom-prompt {
    margin-bottom: 20px;
}

.custom-prompt label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.custom-prompt textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}

.custom-prompt textarea:focus {
    border-color: rgba(120, 80, 200, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.ai-options {
    margin-bottom: 20px;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-group label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.option-group select {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.generate-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(120, 80, 200, 0.4), rgba(80, 120, 200, 0.4));
    border: 1px solid rgba(120, 80, 200, 0.5);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(120, 80, 200, 0.4);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.generation-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: rgba(120, 80, 200, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ===== 音频提示 ===== */
.audio-notice {
    text-align: center;
    padding: 16px;
    margin-top: 8px;
}

.audio-notice p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* ===== 加载动画 ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: rgba(120, 80, 200, 0.8);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .app {
        padding: 16px;
    }
    
    .header {
        padding: 32px 0 24px;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .sound-visual {
        width: 150px;
        height: 150px;
    }
    
    .sound-icon {
        font-size: 3rem;
    }
    
    .play-btn {
        width: 100px;
        height: 100px;
    }
    
    .play-icon {
        font-size: 1.75rem;
    }
    
    .timer-options {
        gap: 6px;
    }
    
    .timer-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* ===== 安全区域适配（iPhone X+） ===== */
@supports (padding-top: env(safe-area-inset-top)) {
    .app {
        padding-top: max(24px, env(safe-area-inset-top));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
}
