/* 词典页面专用样式 */

/* 词典英雄区域 */
.dictionary-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 70%, #533483 100%);
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    overflow: hidden;
}

.dictionary-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(76, 236, 196, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #ffd700, #4ecdc4, #ff6b6b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* 搜索容器 */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px 0 0 50px;
    color: #e0e0e0;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.search-box input::placeholder {
    color: #b0b0c8;
}

.search-btn {
    padding: 15px 25px;
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.search-icon {
    font-size: 1.2rem;
    color: #1a1a2e;
}

.search-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.search-filters select {
    padding: 10px 15px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #e0e0e0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-filters select:hover,
.search-filters select:focus {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(26, 26, 46, 0.9);
}

/* 词典主要内容 */
.dictionary-main {
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 100%);
    padding: 40px 0;
}

.dictionary-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 词典导航 */
.dictionary-nav {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #b0b0c8;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-tab.active {
    color: #1a1a2e;
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* 词典章节 */
.dictionary-section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.dictionary-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    color: #ffd700;
    font-size: 2.2rem;
    margin: 0;
}

.section-desc {
    color: #e0e0e0;
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0;
    flex-basis: 100%;
    text-align: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.word-count {
    color: #4ecdc4;
    font-size: 1rem;
    white-space: nowrap;
}

.word-count span {
    color: #ffd700;
    font-weight: 600;
}

#addWordBtn {
    padding: 8px 16px;
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    color: #1a1a2e;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

#addWordBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    filter: brightness(1.1);
}

#addWordBtn .icon {
    font-size: 14px;
}

/* 字母筛选 */
.alphabet-filter {
    margin-bottom: 30px;
    text-align: center;
}

.alphabet-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.alphabet-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.alphabet-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.alphabet-btn.active {
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    border-color: transparent;
    color: #1a1a2e;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* 词汇列表 */
.word-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.word-item {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.word-item:hover {
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.word-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.word-linkaitian {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.word-chinese {
    color: #4ecdc4;
    font-size: 1.1rem;
    font-weight: 500;
}

.word-type {
    background: rgba(76, 236, 196, 0.2);
    color: #4ecdc4;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(76, 236, 196, 0.3);
}

.word-pronunciation {
    color: #b0b0c8;
    font-style: italic;
    margin: 8px 0;
    font-size: 0.9rem;
}

.word-usage {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* 语法词汇 */
.grammar-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.category-group h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.grammar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.grammar-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.grammar-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
}

.grammar-word {
    color: #4ecdc4;
    font-weight: 600;
    margin-bottom: 5px;
}

.grammar-meaning {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.grammar-example {
    color: #b0b0c8;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 5px;
}

/* 字母发音 */
.alphabet-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.alphabet-group h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.letter-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.letter-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.letter-char {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.letter-pronunciation {
    color: #4ecdc4;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.letter-ipa {
    color: #b0b0c8;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

/* 常用短语 */
.phrases-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.phrase-category h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

/* 短语操作按钮 */
.phrase-actions {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.phrase-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.phrase-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.phrase-actions .icon {
    font-size: 1rem;
}

/* 新的可扩展短语系统样式 */
.phrase-category-group {
    margin-bottom: 40px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.phrase-category-title {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.phrases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.phrase-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 250px;
}

.phrase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4ecdc4, transparent);
    transition: left 0.5s ease;
}

.phrase-item:hover::before {
    left: 100%;
}

.phrase-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

/* 难度等级样式 */
.phrase-item.level-基础 {
    border-left: 4px solid #4ecdc4;
}

.phrase-item.level-中级 {
    border-left: 4px solid #ffd700;
}

.phrase-item.level-高级 {
    border-left: 4px solid #ff6b6b;
}

/* 特殊短语样式 */
.phrase-item.special-phrase {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(138, 43, 226, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
}

.phrase-item.special-phrase::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #8a2be2, #ff6b6b, #4ecdc4);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.phrase-item.special-phrase:hover::after {
    opacity: 0.3;
}

.phrase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.phrase-linkaitian {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    flex: 1;
}

.phrase-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.phrase-level {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.phrase-level.level-基础 {
    background: rgba(76, 236, 196, 0.2);
    color: #4ecdc4;
    border: 1px solid rgba(76, 236, 196, 0.3);
}

.phrase-level.level-中级 {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.phrase-level.level-高级 {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.audio-badge {
    padding: 4px 6px;
    background: rgba(76, 236, 196, 0.2);
    border: 1px solid rgba(76, 236, 196, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-badge:hover {
    background: rgba(76, 236, 196, 0.3);
    transform: scale(1.1);
}

.special-badge {
    padding: 4px 6px;
    background: linear-gradient(45deg, #ffd700, #8a2be2);
    border-radius: 8px;
    font-size: 0.8rem;
    animation: sparkle 2s infinite;
}

.phrase-chinese {
    color: #ff1493;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.phrase-usage {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
    opacity: 0.9;
}

.phrase-grammar {
    color: #b0b0c8;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid rgba(138, 43, 226, 0.5);
}

/* 自定义分类和短语样式 */
.custom-badge {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 8px;
    text-transform: uppercase;
}

.phrase-meta {
    color: #a0a0a0;
    font-size: 0.7rem;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
}

.delete-phrase-btn {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.delete-phrase-btn:hover {
    background: rgba(244, 67, 54, 0.4);
    transform: scale(1.1);
}

.add-phrase-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #b0b0c8;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-phrase-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
    transform: translateY(-2px);
}

.add-phrase-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.add-icon {
    font-size: 2rem;
    color: #4ecdc4;
    font-weight: bold;
    transition: all 0.3s ease;
}

.add-phrase-btn:hover .add-icon {
    color: #ffd700;
    transform: scale(1.1);
}

/* 动画效果 */
@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes magicGlow {
    0% { 
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 35px rgba(138, 43, 226, 0.6);
        transform: scale(1.02);
    }
    100% { 
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
}

.phrase-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.phrase-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.phrase-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
}

.phrase-linkaitian {
    color: #4ecdc4;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.phrase-chinese {
    color: #ffd700;
    font-size: 1rem;
    margin-bottom: 5px;
}

.phrase-usage {
    color: #b0b0c8;
    font-size: 0.8rem;
    font-style: italic;
}

/* 数词系统 */
.numbers-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.number-group h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.number-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.number-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.number-value {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.number-word {
    color: #4ecdc4;
    font-size: 0.9rem;
}

.suffix-list,
.measure-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.suffix-item,
.measure-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.suffix-item:hover,
.measure-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
}

.suffix-name,
.measure-name {
    color: #4ecdc4;
    font-weight: 600;
    margin-bottom: 5px;
}

.suffix-meaning,
.measure-meaning {
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* 搜索结果 */
.search-results {
    display: none;
    margin-bottom: 30px;
}

.search-results.show {
    display: block;
}

.search-header {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
}

.no-results {
    text-align: center;
    color: #b0b0c8;
    font-size: 1.1rem;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.page-btn.active {
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    border-color: transparent;
    color: #1a1a2e;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 有限词汇系统样式 */
.finite-word-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.finite-tab {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #b0b0c8;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.finite-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.finite-tab.active {
    color: #1a1a2e;
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.finite-word-content {
    min-height: 500px;
}

.finite-category {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.finite-category.active {
    display: block;
}

.category-title {
    color: #ffd700;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.subcategory-group {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.subcategory-group h4 {
    color: #4ecdc4;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid rgba(76, 236, 196, 0.3);
    padding-bottom: 10px;
}

.subcategory-group h5 {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

/* 代词表格 */
.pronoun-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.pronoun-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
}

.pronoun-table th,
.pronoun-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pronoun-table th {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-weight: 600;
}

.pronoun-table .row-label {
    background: rgba(76, 236, 196, 0.1);
    color: #4ecdc4;
    font-weight: 600;
}

.pronoun-table td {
    color: #e0e0e0;
}

.linkaitiya {
    color: #ffd700;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}

/* 指示代词网格 */
.demonstrative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.demo-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.demo-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.demo-type {
    display: block;
    color: #4ecdc4;
    font-size: 0.8rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

/* 疑问代词网格 */
.question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.question-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.question-item:hover {
    background: rgba(76, 236, 196, 0.1);
    border-color: rgba(76, 236, 196, 0.3);
}

/* 数词网格 */
.numeral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.numeral-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.numeral-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

/* 数词词缀 */
.numeral-affixes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.affix-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.affix-item:hover {
    background: rgba(76, 236, 196, 0.1);
    border-color: rgba(76, 236, 196, 0.3);
}

.affix-type {
    color: #4ecdc4;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 量词 */
.quantity-words {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.quantity-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.quantity-item:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
}

/* 连词列表 */
.conjunction-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.conj-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.conj-item:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.conj-type {
    display: block;
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

/* 助词列表 */
.particle-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.particle-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.particle-item:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
}

/* 抒情词列表 */
.emotive-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.emotive-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.emotive-item:hover {
    background: rgba(255, 20, 147, 0.1);
    border-color: rgba(255, 20, 147, 0.3);
}

/* 止词分类 */
.stop-words-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stop-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
}

.stop-words {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stop-words .linkaitiya {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #ffd700;
    transition: all 0.3s ease;
}

.stop-words .linkaitiya:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .finite-word-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .finite-tab {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .pronoun-table-container {
        font-size: 0.8rem;
    }
    
    .pronoun-table th,
    .pronoun-table td {
        padding: 8px 6px;
    }
    
    .demonstrative-grid,
    .numeral-affixes,
    .conjunction-list,
    .particle-list,
    .emotive-list {
        grid-template-columns: 1fr;
    }
    
    .question-grid,
    .numeral-grid,
    .quantity-words {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .stop-words {
        justify-content: center;
    }
}

/* 标准词汇系统样式 */
.open-word-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.open-tab {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #b0b0c8;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.open-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.open-tab.active {
    color: #1a1a2e;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.open-word-content {
    min-height: 500px;
}

.open-category {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.open-category.active {
    display: block;
}

/* 词尾样式 */
.word-endings,
.adjective-endings,
.adverb-endings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.ending-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ending-item:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.ending-type {
    color: #ff6b6b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 动词体态表格 */
.aspect-table,
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
}

.aspect-table th,
.aspect-table td,
.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.aspect-table th,
.comparison-table th {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    font-weight: 600;
}

.aspect-table .row-label,
.comparison-table .row-label {
    background: rgba(76, 236, 196, 0.1);
    color: #4ecdc4;
    font-weight: 600;
}

.aspect-table td,
.comparison-table td {
    color: #e0e0e0;
}

/* 声叹词规则 */
.interjection-rule {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.interjection-rule p {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin: 0;
}

/* 标准词汇例词样式 */
.open-category .examples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.open-category .example-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.open-category .example-item:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
}

/* 标准词汇响应式设计 */
@media (max-width: 768px) {
    .open-word-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .open-tab {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .word-endings,
    .adjective-endings,
    .adverb-endings {
        grid-template-columns: 1fr;
    }
    
    .aspect-table,
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .aspect-table th,
    .aspect-table td,
    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
    }
    
    .open-category .examples {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* 原有词汇系统样式 */
.original-word-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.original-tab {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #b0b0c8;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.original-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.original-tab.active {
    color: #1a1a2e;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.original-word-content {
    min-height: 500px;
}

.original-category {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.original-category.active {
    display: block;
}

/* 时间表达样式 */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.time-item {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.time-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.time-item:hover::before {
    left: 100%;
}

.time-item:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.time-adverbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.adverb-item {
    background: rgba(76, 236, 196, 0.08);
    border: 1px solid rgba(76, 236, 196, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.adverb-item:hover {
    background: rgba(76, 236, 196, 0.15);
    border-color: rgba(76, 236, 196, 0.4);
    transform: translateY(-2px);
}

/* 问候用语样式 */
.phrase-examples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.phrase-example {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(138, 43, 226, 0.1));
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.phrase-example::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff1493, #8a2be2, #ff6b6b, #ffd700);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.phrase-example:hover::before {
    opacity: 0.3;
}

.phrase-example:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
}

.phrase-example .linkaitiya {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
}

.phrase-example .meaning {
    display: block;
    color: #ff1493;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.phrase-example .type {
    color: #b0b0c8;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

.phrase-note {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.phrase-note p {
    color: #e0e0e0;
    margin: 0;
    line-height: 1.6;
}

.phrase-note strong {
    color: #ffd700;
}

/* 词缀系统样式 */
.suffix-examples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.suffix-example {
    background: rgba(76, 236, 196, 0.08);
    border: 1px solid rgba(76, 236, 196, 0.2);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.suffix-example:hover {
    background: rgba(76, 236, 196, 0.15);
    border-color: rgba(76, 236, 196, 0.4);
    transform: scale(1.02);
}

.suffix-example .linkaitiya {
    color: #4ecdc4;
    font-weight: 600;
    font-size: 1rem;
}

.suffix-example .meaning {
    color: #b0b0c8;
    font-size: 0.8rem;
}

/* 常用标准词根样式 */
.word-roots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.root-item {
    background: linear-gradient(135deg, rgba(76, 236, 196, 0.1), rgba(138, 43, 226, 0.1));
    border: 1px solid rgba(76, 236, 196, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.root-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4ecdc4, transparent);
    transition: left 0.5s ease;
}

.root-item:hover::before {
    left: 100%;
}

.root-item:hover {
    background: linear-gradient(135deg, rgba(76, 236, 196, 0.15), rgba(138, 43, 226, 0.15));
    border-color: rgba(76, 236, 196, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 236, 196, 0.2);
}

.root-item .linkaitiya {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #4ecdc4;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
}

.root-usage {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* 原有词汇响应式设计 */
@media (max-width: 768px) {
    .original-word-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .original-tab {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .time-grid,
    .time-adverbs {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .phrase-examples {
        grid-template-columns: 1fr;
    }
    
    .suffix-examples {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .word-roots-grid {
        grid-template-columns: 1fr;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .search-container {
        padding: 0 20px;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-tab {
        width: 100%;
        text-align: center;
        max-width: 200px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .header-actions {
        justify-content: center;
        order: -1;
    }
    
    .section-desc {
        order: 1;
    }
    
    .word-list {
        grid-template-columns: 1fr;
    }
    
    .alphabet-buttons {
        max-width: none;
    }
    
    .letters-grid,
    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .phrase-list,
    .grammar-grid,
    .suffix-list,
    .measure-list {
        grid-template-columns: 1fr;
    }
    
    /* 新的短语系统响应式 */
    .phrases-grid {
        grid-template-columns: 1fr;
    }
    
    .phrase-examples {
        grid-template-columns: 1fr;
    }
    
    .phrase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .phrase-badges {
        align-self: flex-end;
    }
    
    .phrase-category-title {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .phrase-grammar {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}