﻿

/* 色彩变量 - 与cidian.css保持一致 */
:root {
    --primary-color: #4e8cbb;
    --primary-dark: #3a7cb2;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #f5f5f5;
    --border-color: #e6d8b6;
    --hover-color: #b89b5b;
    --section-bg: #f9f6ec;
    --card-shadow: 0 2px 12px rgba(180,160,100,0.10);
    --orange-color: #ff6b35;
    --orange-light: #ff8c69;
    --table-header-bg: #f0f0f0;
    --table-border: #ddd;
}

.g-bd {
    background-color: var(--bg-color);
}

/* 容器和基础布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 面包屑导航 */


.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #999;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 词典页面布局 */
.cidian-layout {
    display: flex;
    gap: 5px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Courier New', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

/* 左侧主要内容区域 */
.cidian-main {
    flex: 1;
    min-width: 0;
}

/* 右侧边栏区域 */
.cidian-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* 词语标题区域 */
.word-header {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 5px;
    box-shadow: var(--card-shadow);
}

.word-header h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.word-subtitle {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 16px;
    margin: 0;
}

.word-subtitle span {
    padding: 5px 12px;
    background-color: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

/* 词语基本信息 */
.word-basic-info {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 5px;
    box-shadow: var(--card-shadow);
}

.word-description {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* 词语详细信息表格 */
.word-detail-table {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 5px;
}

.word-display-section {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.word-large-display {
    font-size: 120px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
}

.word-info-table {
    flex: 1;
}

.word-info-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.word-info-table td {
    padding: 12px 15px;
    border: 1px solid var(--table-border);
    vertical-align: middle;
}

.word-info-table .table-header {
    background-color: var(--table-header-bg);
    font-weight: bold;
    text-align: center;
}

.word-info-table .header-traditional,
.word-info-table .header-word {
    font-size: 16px;
    color: var(--primary-color);
}

.word-info-table .header-word {
    font-size: 24px;
    font-weight: bold;
}

.word-info-table .label {
    background-color: #f8f9fa;
    font-weight: bold;
    color: var(--text-color);
    width: 80px;
    text-align: center;
}

.word-info-table .value {
    color: var(--text-light);
    font-family: 'Microsoft YaHei', sans-serif;
}

.word-info-table .synonyms,
.word-info-table .antonyms,
.word-info-table .word-formation {
    max-width: 300px;
    word-wrap: break-word;
    line-height: 1.5;
}

/* 组词、近义词、反义词超链接样式 */
.word-info-table .word-formation a,
.word-info-table .synonyms a,
.word-info-table .antonyms a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 1px 2px;
    font-size: 14px;
}

.word-info-table .word-formation a:hover,
.word-info-table .synonyms a:hover,
.word-info-table .antonyms a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(78, 140, 187, 0.3);
}

/* 组词、近义词、反义词中的普通文字样式 */
.word-info-table .word-formation .word-text,
.word-info-table .synonyms .word-text,
.word-info-table .antonyms .word-text {
    color: var(--text-color);
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    display: inline-block;
    margin: 1px 2px;
    font-size: 14px;
    font-weight: normal;
}

/* 导航链接 */
.word-navigation {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 5px;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-label {
    color: var(--text-light);
    font-size: 14px;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 词语含义区域 */
.word-meaning-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 5px;
    box-shadow: var(--card-shadow);
}

.word-meaning-section h2 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.meaning-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
    padding: 10px 0;
}

/* 网络解释区域特殊样式 */
.word-network-section h2 {
    color: var(--orange-color);
    border-bottom-color: var(--orange-color);
}

.network-content {
    background-color: #fff9f5;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

/* 相关词语区域 */
.word-related-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 5px;
    box-shadow: var(--card-shadow);
}

.word-related-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.word-related-section h2 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.section-action {
    color: var(--text-lighter);
    font-size: 12px;
    cursor: pointer;
}

.related-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.related-group h3 {
    color: var(--text-color);
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding: 8px 12px;
    background-color: var(--section-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    transition: all 0.3s ease;
}

.related-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 右侧边栏样式 - 与CiDian.aspx保持一致 */
.cidian-sidebar section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2px;
    margin-bottom: 5px;
    box-shadow: var(--card-shadow);
}

.cidian-sidebar h3 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
}

/* 词性分类网格 */
.word-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 3px;
}

.word-type-item {
    display: block;
    padding: 8px 12px;
    background-color: var(--section-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.word-type-item:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 词式分类网格 */
.word-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 3px;
}

.word-style-item {
    display: block;
    padding: 8px 12px;
    background-color: var(--section-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.word-style-item:hover {
    background-color: var(--orange-color);
    color: #fff;
    border-color: var(--orange-color);
    transform: translateY(-2px);
}

/* 字母导航网格 */
.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
}

.alphabet-item {
    display: block;
    padding: 8px 12px;
    background-color: var(--section-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.alphabet-item:hover {
    background-color: var(--hover-color);
    color: #fff;
    border-color: var(--hover-color);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .g-bd {
        padding: 0;
    }
    
    .container {
        padding: 0;
        margin: 0;
        max-width: none;
    }
    
    .cidian-layout {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
    }
    
    .cidian-sidebar {
        width: 100%;
    }
    
    /* 所有主要区域无边距 */
    .word-header,
    .word-basic-info,
    .word-detail-table,
    .word-navigation,
    .word-meaning-section,
    .word-related-section,
    .cidian-sidebar section {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .word-detail-table {
        flex-direction: column;
    }
    
    .word-display-section {
        width: 100%;
    }
    
    .word-large-display {
        font-size: 80px;
    }
    
    .word-navigation {
        gap: 1px;
        text-align: center;
    }
    
    .related-content {
        gap: 20px;
    }
    
    .word-type-grid,
    .word-style-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .alphabet-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .g-bd {
        padding: 0;
        margin: 0;
    }
    
    .container {
        padding: 0;
        margin: 0;
        max-width: none;
        width: 100%;
        margin-top:5px;
    }
    
    .cidian-layout {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .cidian-main,
    .cidian-sidebar {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    /* 所有区域完全无边距 */
    .word-header,
    .word-basic-info,
    .word-detail-table,
    .word-navigation,
    .word-meaning-section,
    .word-related-section,
    .cidian-sidebar section {
        margin: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 词语信息表格区域也无边距 */
    .word-info-table {
        padding: 0;
        margin: 0;
    }
    
    .word-display-section {
        padding: 1px;
        margin: 0;
    }
    
    .word-header {
       
    }
    
    .word-header h1 {
        font-size: 24px;
    }
    
    .word-subtitle {
        flex-direction: column;
        gap: 10px;
    }
    
    .word-large-display {
        font-size: 60px;
    }
    
    .word-info-table table {
        font-size: 16px;
    }
    
    .word-info-table td {
        padding: 8px 10px;
    }
    
    /* 移动端组词、近义词、反义词样式调整 */
    .word-info-table .word-formation a,
    .word-info-table .word-formation .word-text,
    .word-info-table .synonyms a,
    .word-info-table .synonyms .word-text,
    .word-info-table .antonyms a,
    .word-info-table .antonyms .word-text {
        font-size: 16px;
        padding: 1px 4px;
        margin: 1px;
    }
    
    .word-type-grid,
    .word-style-grid,
    .alphabet-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 面包屑导航也无边距 */
    .breadcrumb {
        margin: 0;
        padding: 10px 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* 含义内容区域 */
    .meaning-content,
    .network-content {
        margin: 0;
        padding: 0;
    }
    
    .meaning-details {
        margin: 0;
        padding: 0;
    }
} 