/* 基本样式文件 - 默认暗色系 */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 20px;
    margin: 0;
    line-height: 1.6;
}

a {
    color: #64b5f6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
select {
    background-color: #424242;
    color: #e0e0e0;
    border: 1px solid #555;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #2d2d2d;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(255,255,255,0.05);
    padding: 25px;
}

h1 {
    text-align: center;
    color: #7d3c98;
    margin-bottom: 25px;
    font-size: 28px;
}

.search-container {
    margin-bottom: 20px;
}

.search-box {
    width: 300px;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #555;
    border-radius: 30px;
    outline: none;
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    background-color: #424242;
    color: #e0e0e0;
}

.search-box:focus {
    border-color: #7d3c98;
    box-shadow: 0 4px 12px rgba(125, 60, 152, 0.3);
}

.alphabet-btn {
    padding: 10px 20px;
    background: #424242;
    color: #e0e0e0;
    border: 2px solid #64b5f6;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.alphabet-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 24px;
    color: #e0e0e0;
}

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

.control-item {
    display: flex;
    align-items: center;
}

/* 为每个独立单元添加专属样式钩子 */
.search-container { width: 250px; }
.filter-container { min-width: 120px; }
.random-btn-container, .quiz-btn-container { min-width: 120px; }
.control-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.control-label {
    margin-right: 10px;
}

#pronunciation-unit-filter.filter-select {
    /* 修复CSS语法错误并添加完整隐藏规则 */
    width: 100px !important;
    visibility: hidden !important;
    display: none !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    z-index: -9999 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* 同时隐藏父容器避免布局影响 */
.controls > select:first-of-type {
    display: none !important;
}
    background-color: #1a1a1a;
    color: #1a1a1a;
    border: none;
    text-indent: -9999px;
    appearance: none;
}

.unit-section {
    margin-bottom: 30px;
    border-top: 1px solid #555;
    padding-top: 20px;
    background-color: #2d2d2d;
}

.word-card { margin-bottom: 20px; padding: 20px; border: 1px solid #555; border-radius: 8px; background-color: #2d2d2d; }

.word {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #64b5f6;
}

.phonetic {
    font-size: 18px;
    color: #90a4ae;
    font-style: italic;
    margin-bottom: 10px;
}

.meaning {
    font-size: 16px;
    line-height: 1.5;
    color: #e0e0e0;
}

/* 暗色主题样式增强 */
.card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid #555;
    color: #e0e0e0;
}

.pronunciation-unit {
    color: #cc99ff;
}

button {
    background-color: #7d3c98;
    color: white;
}

button:hover {
    background-color: #7d3c98;
}
button.control-button {
    padding: 10px 20px;
    background: #424242 !important;
    color: #e0e0e0 !important;
    border: 2px solid #64b5f6 !important;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    /* 提高优先级以覆盖通用button样式 */
    background-color: #424242 !important;
}

button.control-button:hover {
    background: #555 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    background-color: #555 !important;
}
.control-button:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
