﻿/* ===== 全局变量 ===== */
: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);
    --gradient-bg: linear-gradient(135deg, #f9f6ec 0%, #f3e9d7 100%);
    --spacing-xs: 5px;
    --spacing-sm: 8px;
    --spacing-md: 10px;
    --spacing-lg: 15px;
    --spacing-xl: 20px;
}

/* ===== 基础布局 ===== */
.g-main {
    background: var(--section-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.m-content {
    background: var(--gradient-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

/* ===== 内容头部区域 ===== */
.content-header {
    text-align: center;
    margin-bottom: var(--spacing-xs);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.content-header .header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: 6px;
    position: relative;
    padding-top: 10px;
}

.content-header .title {
    margin: 0 auto;
    padding-bottom: 0;
    flex: none;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-header .author {
    font-size: 16px;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
}

.content-header .tags {
    margin-bottom: var(--spacing-xs);
}

/* ===== 标签样式 ===== */
.tags {
    margin: 2px 0 var(--spacing-xs) 0;
    padding: var(--spacing-md) 0 var(--spacing-md) var(--spacing-md);
    background:#fff;
    border-radius: 8px;
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    flex-wrap: wrap;
    border: 1.5px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    width: 100%;
}

.tags span {
    display: inline-block;
    background: #fffbe8;
    color: #b07a1c;
    font-size: 16px;
    border-radius: 12px;
    padding: 2px var(--spacing-md);
    margin-right: 4px;
    cursor: pointer;
    border: 1px solid #f0e2b6;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(200,180,100,0.03);
}

.tags span:hover {
    background: #ffe9b3;
    color: #a05a00;
    box-shadow: 0 2px 8px rgba(200,180,100,0.10);
    border-color: #ffd36b;
}

/* ===== 内容主体 ===== */
.content-body {
    line-height: 1.6;
}

/* ===== 诗歌内容样式 ===== */
.poem {
    margin-bottom: 2px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1.5px solid var(--border-color);
}

.poem P,
.poem .poem-line,
.poem .poem-line-single {
    font-family: system-ui, Arial, sans-serif;
    font-weight: 500;
    color: #222;
    letter-spacing: 7px;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    border-top: none;
    border-bottom: none;
    border-radius: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: 16px;
    background: transparent;
    display: block;
}

.poem P {
    margin: 0;
    font-size: 18px;
    line-height: 2;
    padding: var(--spacing-sm) 0;
    text-align: center;
    letter-spacing: 1px;
}

.poem P:first-child {
    margin-top: var(--spacing-xl);
}


.poem-uniform .poem-line {
    display: block;
    font-size: 20px;
    font-family: system-ui, Arial, sans-serif;
    letter-spacing: 8px;
    margin: 2px 0;
    line-height: 2.2;
}

/* ===== 拼音相关样式 ===== */




/* ===== 信息区域样式 ===== */
.info {
    margin-top: var(--spacing-xs);
}

.info-item {
    margin-bottom: var(--spacing-xs);
    line-height: 2;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: var(--spacing-xl);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item h3 {
    font-size: 20px;
    color: #5a4321;
    margin-bottom: var(--spacing-xs);
    padding-bottom: var(--spacing-md);
    text-align: left;
    position: relative;
    font-weight: 600;
    border-bottom: 2px solid var(--hover-color);
}

.info-item h3:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--hover-color);
}

.info-item h3:after {
    display: none;
}

.info-content p {
    font-size: 16px;
    color: #6d5b3b;
    line-height: 2;
    margin-bottom: var(--spacing-sm);
    text-align: justify;
}

.info-content strong {
    color: var(--hover-color);
    font-size: 1.1em;
    font-weight: 600;
    display: block;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: var(--spacing-xs);
}

/* ===== 标签页样式 ===== */
.info-tabs {
    margin-top: var(--spacing-xs);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(200,180,100,0.08);
    border: 1.5px solid var(--border-color);
    padding: 0;
    overflow: hidden;
}

.info-tab-header {
    display: flex;
    background: linear-gradient(90deg, var(--section-bg) 0%, #f5f3ea 100%);
    border-bottom: 1.5px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 8px rgba(200,180,100,0.04);
}

.info-tab-header .tab-btn {
    flex: 1;
    text-align: center;
    padding: 12px 0 var(--spacing-md) 0;
    font-size: var(--spacing-lg);
    color: #a88a4e;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    outline: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border-radius: 0;
    position: relative;
    letter-spacing: 1px;
    line-height: 1.2;
}

.info-tab-header .tab-btn.active {
    background: linear-gradient(90deg, #fffbe8 0%, var(--section-bg) 100%);
    color: #7c5a1a;
    box-shadow: 0 4px 12px rgba(200,180,100,0.10);
    border-bottom: 3px solid #ffd36b;
    z-index: 2;
}

.info-tab-header .tab-btn:not(.active):hover {
    background: #f7ecd1;
    color: #b07a1c;
}

.info-tab-content {
    padding: 28px 24px 18px 24px;
    background: #fcfbf7;
    border-radius: 0 0 12px 12px;
    min-height: 120px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 不同面板的特定样式 */
.tab-panel-1 .info-content,
.tab-panel-2 .info-content,
.tab-panel-3 .info-content,
.tab-panel-4 .info-content,
.tab-panel-5 .info-content {
  
    border-radius: 4px;
}

.tab-panel-1 .info-content { background-color: #f9f9f9; }
.tab-panel-2 .info-content { background-color: #f5f5f5; }
.tab-panel-3 .info-content { background-color: #f0f0f0; }
.tab-panel-4 .info-content { background-color: #fafafa; }
.tab-panel-5 .info-content { background-color: #f7f7f7; }

/* ===== 作者信息区域 ===== */
.author-info-block {
    margin: var(--spacing-xs) 0 0 0;
    background: var(--section-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(200,180,100,0.06);
    padding: 0 0 18px 0;
    overflow: hidden;
}

.author-info-title {
    font-size: 17px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--border-color) 0%, var(--hover-color) 100%);
    padding: 12px 22px;
    margin-bottom: 0;
    border-radius: var(--spacing-md) var(--spacing-md) 0 0;
}

.author-info-flex {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    padding: 18px 22px 0 22px;
    background: #fff;
}

.author-avatar {
    flex: none;
    width: 80px;
    height: 110px;
    border-radius: var(--spacing-sm);
    overflow: hidden;
    background: #eee;
    box-shadow: 0 2px 8px rgba(180,160,100,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-info-content {
    font-size: var(--spacing-lg);
    color: #444;
    line-height: 2;
    flex: 1;
    min-width: 0;
}

.author-stats {
    margin-top: var(--spacing-xs);
    display: flex;
    gap: var(--spacing-xs);
    font-size: 14px;
    color: #a88a4e;
    font-weight: 500;
}

.author-stats span {
    background: #f5f3ea;
    border-radius: var(--spacing-sm);
    padding: 3px 12px;
    display: inline-block;
}

.author-stats b {
    color: #7c5a1a;
    font-weight: 700;
    font-size: var(--spacing-lg);
    margin-left: 2px;
}

/* ===== 浮动控制按钮 ===== */
.floating-controls {
    position: fixed;
    top: 10%;
    right: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    z-index: 100;
    background-color: rgba(249, 246, 236, 0.85);
    padding: var(--spacing-md);
    border-radius: var(--spacing-sm);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px var(--spacing-md) rgba(0, 0, 0, 0.1);
}

.mizige-toggle-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}











.voice-btn {
    background: #fffbe8;
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin: 0 auto;
    box-shadow: 0 1px 4px rgba(200,180,100,0.06);
}

.voice-btn:hover {
    background: #ffe9b3;
    box-shadow: 0 2px var(--spacing-sm) rgba(200,180,100,0.10);
}

.voice-btn svg {
    display: block;
}

/* ===== 列表样式 ===== */

/* 通用列表样式 - 简洁版 */
.card-content ul,
.expand-content ul,
.info-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 16px 0 !important;
}

.card-content li,
.expand-content li,
.info-content li {
    line-height: 1.8 !important;
    color: var(--text-color) !important;
    position: relative !important;
    padding: 8px 0 8px 12px !important;
    border-left: 2px solid #e0e0e0 !important;
    list-style-type: none !important;
}

.card-content li:hover,
.expand-content li:hover,
.info-content li:hover {
    border-left-color: var(--hover-color) !important;
}

.card-content li:last-child,
.expand-content li:last-child,
.info-content li:last-child {
    margin-bottom: 0 !important;
}

/* 词条解释样式 - 简洁版 */
.card-content li strong,
.expand-content li strong,
.info-content li strong {
    color: var(--hover-color) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    margin-right: 6px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* 移除原有的项目符号样式 */
.card-content ul li:before,
.expand-content ul li:before,
.info-content ul li:before {
    display: none !important;
}

.info-content ol {
    counter-reset: item;
}

.info-content ol li {
    counter-increment: item;
    list-style-type: none;
    padding-left: 25px;
    position: relative;
}

.info-content ol li:before {
    content: counter(item) ".";
    color: var(--hover-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.info-content li strong {
    color: var(--hover-color);
    font-weight: 600;
    margin-right: var(--spacing-xs);
    border-bottom: none;
    padding-bottom: 0;
    display: inline;
}

/* ================== 卡片式布局样式 ================== */
/* 卡片式布局主容器 */
.info-cards {
    margin-top: 5px;
}

.info-cards-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 卡片基础样式 */
.info-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: box-shadow 0.3s ease;

}

.info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 卡片头部 */
.card-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* 卡片内容 */
.card-content {
    padding: 20px;
}

.expand-content {
    line-height: 1.6;
    color: #333;
    max-height: 200px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

/* 卡片内容中的段落样式 */
.card-content p,
.expand-content p {
    margin: 0 0 16px 0;
    line-height: 1.8;
    font-size: 16px;
    color: #444;
    text-align: justify;
    text-indent: 2em; /* 段落首行缩进 */
}

.card-content p:last-child,
.expand-content p:last-child {
    margin-bottom: 0;
}

/* 首段不缩进 */
.card-content p:first-child,
.expand-content p:first-child {
    text-indent: 0;
    font-weight: 500;
    color: #333;
    font-size: 17px; /* 首段字体稍大一些 */
}

/* 段落中的链接样式 */
.card-content p a,
.expand-content p a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dotted #3498db;
    transition: all 0.3s ease;
}

.card-content p a:hover,
.expand-content p a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
    background: rgba(52, 152, 219, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

/* 段落中的强调文本 */
.card-content p strong,
.expand-content p strong,
.card-content p b,
.expand-content p b {
    color: #2c3e50;
    font-weight: 600;
}

/* 段落中的斜体文本 */
.card-content p em,
.expand-content p em,
.card-content p i,
.expand-content p i {
    color: #7f8c8d;
    font-style: italic;
}

/* 引用样式 */
.card-content blockquote,
.expand-content blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: #555;
}

.card-content blockquote p,
.expand-content blockquote p {
    margin: 0;
    text-indent: 0;
}

.expand-content.expanded {
    max-height: none !important;
    overflow: visible;
}

.expand-content.collapsed {
    max-height: 200px !important;
    overflow: hidden;
}

.expand-content.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
}

/* 卡片操作按钮 */
.card-actions {
    margin-top: 15px;
    text-align: right;
}

.expand-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.expand-btn:hover {
    background: #2980b9;
}

/* 默认卡片样式 */
.default-card .card-content {
    background: #f8f9fa;
}

/* 错误卡片样式 */
.error-card {
    border-color: #e74c3c;
}

.error-card .card-header {
    background: linear-gradient(135deg, #fdedec 0%, #f1948a 100%);
}

/* ===== 响应式设计 ===== */

/* 平板和手机通用样式 (768px以下) */
@media screen and (max-width: 768px) {
    .g-main,
    .container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }
    

    .m-content {
     
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .content-header {
        padding-bottom: 6px;
        margin-bottom: var(--spacing-xs);
    }
    
    .content-header .header-row {
        font-size:18px;
    }

    .content-header .title {
        font-size: 18px;
        margin: var(--spacing-xs) 0;
        width: 100%;
        padding: 0 var(--spacing-xs);
    }

    .content-header .author {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .poem .line .text {
        font-size: 16px;
    }

  

    .info-item h3 {
        font-size: 16px;
        padding-bottom: var(--spacing-sm);
    }

   

    .poem P {
        line-height: 1.8;
    }
    
    /* 移动端浮动控制按钮 */
    .floating-controls {
        position: fixed !important;
        top: auto !important;
        right: 10px !important;
        bottom: 80px !important;
        padding: 8px !important;
        gap: 8px !important;
        z-index: 1000 !important;
        background-color: rgba(249, 246, 236, 0.95) !important;
        border-radius: 8px !important;
        border: 1px solid #e6d8b6 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .pinyin-toggle-row,
    .mizige-toggle-row {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .pinyin-switch {
        display: flex !important;
        align-items: center !important;
        cursor: pointer !important;
        user-select: none !important;
    }
    
    .pinyin-switch .slider {
        width: 28px !important;
        height: 16px !important;
        background: #e6d8b6 !important;
        border-radius: 10px !important;
        position: relative !important;
        margin-right: 6px !important;
        transition: background 0.2s !important;
    }
    
    .pinyin-switch .slider:before {
        content: "" !important;
        position: absolute !important;
        left: 2px !important;
        top: 2px !important;
        width: 12px !important;
        height: 12px !important;
        background: #fff !important;
        border-radius: 50% !important;
        transition: transform 0.2s !important;
    }
    
    .pinyin-switch input:checked + .slider {
        background: #b89b5b !important;
    }
    
    .pinyin-switch input:checked + .slider:before {
        transform: translateX(12px) !important;
    }
    
    .pinyin-label {
        font-size: 11px !important;
        color: #a88a4e !important;
        font-weight: 500 !important;
    }
    
    .voice-btn {
        width: 30px;
        height: 30px;
    }
    
    .voice-btn svg {
        width: 16px;
        height: 16px;
    }
    
  

    /* 标签页移动端优化 */
    .info-tab-header {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        border-radius: var(--spacing-sm) var(--spacing-sm) 0 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
    }

    .info-tab-header::-webkit-scrollbar {
        display: none;
    }

    .info-tab-header .tab-btn {
        display: inline-block;
        min-width: 80px;
        max-width: none;
        font-size: 13px;
        padding: var(--spacing-sm) 12px 7px 12px;
        letter-spacing: 0.5px;
        margin-right: 2px;
        flex: 1 0 auto;
    }

    .info-tab-content {
        padding: 1px;
        min-height: 60px;
    }

    /* 作者信息移动端优化 */
    .author-info-block {
        padding: 0 0 var(--spacing-md) 0;
        margin: 18px 0 0 0;
    }

    .author-info-title {
        font-size: var(--spacing-lg);
        padding: var(--spacing-md) 14px;
        text-align: center;
    }

    .author-info-flex {
        flex-direction: column;
        gap: var(--spacing-xs);
        padding: 14px 12px 0 12px;
        align-items: center;
    }

    .author-avatar {
        width: 75px;
        height: 95px;
        margin: 0 auto;
    }

    .author-info-content {
        font-size: 14px;
        line-height: 1.8;
        text-align: center;
    }

    .author-stats {
        gap: var(--spacing-xs);
        font-size: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .author-stats span {
        padding: 2px var(--spacing-sm);
        margin-bottom: 2px;
    }

    .author-stats b {
        font-size: 13px;
    }
    
    /* 移动端卡片样式 */
    .info-cards-container {
        gap: 2px;
    }
    
    .card-header {
        padding: 12px 16px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-content {
        padding: 16px;
    }
    
    /* 移动端段落样式优化 */
    .card-content p,
    .expand-content p {
        font-size: 16px;
        line-height: 1;
        margin-bottom: 14px;
        text-indent: 1.5em; /* 移动端缩进稍小 */
    }
    
    .card-content p:first-child,
    .expand-content p:first-child {
        text-indent: 0;
        font-size: 16px;
    }
    
    /* 移动端引用样式 */
    .card-content blockquote,
    .expand-content blockquote {
        margin: 12px 0;
        padding: 10px 16px;
        font-size: 16px;
    }
    
    /* 移动端展开按钮 */
    .expand-btn {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    /* 移动端列表样式优化 */
    .card-content li,
    .expand-content li,
    .info-content li {
        padding: 6px 0 6px 10px !important;
        font-size: 16px !important;
    }
    
    .card-content li strong,
    .expand-content li strong,
    .info-content li strong {
        font-size: 16px !important;
        margin-right: 5px !important;
    }
}

/* 小屏手机设备 (最大宽度 480px) */
@media screen and (max-width: 480px) {
    .g-main,
    .container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }
    

    
    .m-content {
        padding: 0px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid #ddd;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    /* 所有主要区域无边距 */
    .content-header,
    .content-body,
    .poem,
    .tags,
    .info-tabs {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .content-header {
        border-bottom: 1px solid var(--border-color);
        margin-bottom: var(--spacing-xs) !important;
    }
    
    .poem {
        border-bottom: 1px solid #ddd;
    }
    
    .tags {
        border: none !important;
        border-bottom: 1px solid #ddd;
    }
    
    /* 作者信息区域特殊处理 */
    .author-info-block {
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid #ddd;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .author-info-title {
        padding: 10px !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    /* 超小屏幕浮动控制按钮 */
    .floating-controls {
        position: fixed !important;
        right: 8px !important;
        bottom: 60px !important;
        padding: 6px !important;
        gap: 6px !important;
        z-index: 1000 !important;
        background-color: rgba(249, 246, 236, 0.98) !important;
        border-radius: 6px !important;
        border: 1px solid #e6d8b6 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
    
    .pinyin-switch .slider {
        width: 24px !important;
        height: 14px !important;
        margin-right: 4px !important;
    }
    
    .pinyin-switch .slider:before {
        left: 1px !important;
        top: 1px !important;
        width: 10px !important;
        height: 10px !important;
    }
    
    .pinyin-switch input:checked + .slider:before {
        transform: translateX(10px) !important;
    }
    
    .pinyin-label {
        font-size: 10px !important;
    }
    
    .voice-btn {
        width: 24px !important;
        height: 24px !important;
    }
    
    .voice-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    .author-info-flex {
        padding: 10px !important;
        margin: 0 !important;
        gap: var(--spacing-xs);
        flex-direction: column;
        align-items: center;
    }
    
    /* 小屏幕卡片样式 */
    .info-cards-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .info-card {
        margin: 0 0 1px 0 !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid #ddd !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .card-header {
        border-radius: 0 !important;
        padding: 10px !important;
    }
    
    .card-content {
        padding: 10px !important;
    }
    
    /* 小屏幕展开按钮 */
    .expand-btn {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* 小屏幕列表样式优化 */
    .card-content li,
    .expand-content li,
    .info-content li {
        padding: 5px 0 5px 8px !important;
        font-size: 16px !important;
    }
    
    .card-content li strong,
    .expand-content li strong,
    .info-content li strong {
        font-size: 16px !important;
        margin-right: 4px !important;
      
        margin-bottom: 2px !important;
    }
}

/* ===== 左右分栏布局 ===== */
.content-wrapper {
    display: flex;
    gap: 5px;
    align-items: flex-start;
}

.content-main {
    flex: 1;
    min-width: 0; /* 防止flex子项溢出 */
}

.content-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ===== 作者其他古诗样式（复用热门推荐样式）===== */
.author-other-poems.hot-poetry {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e6d8b6;
    margin-bottom: 5px;
}

.author-other-poems.hot-poetry h3 {
    color: #5a4321;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e6d8b6;
    display: flex;
    align-items: center;
}

.author-other-poems .hot-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-other-poems .hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #e6d8b6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.author-other-poems .hot-item:last-child {
    border-bottom: none;
}

.author-other-poems .hot-item:hover {
    background: #f3e9d7;
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

.author-other-poems .hot-rank-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.author-other-poems .hot-item:nth-child(1) .hot-rank-circle {
    background: linear-gradient(135deg, #b89b5b, #8b6b4a);
}

.author-other-poems .hot-item:nth-child(2) .hot-rank-circle {
    background: linear-gradient(135deg, #c0a97d, #9c8661);
}

.author-other-poems .hot-item:nth-child(3) .hot-rank-circle {
    background: linear-gradient(135deg, #d4bc91, #b89b5b);
}

.author-other-poems .hot-item:nth-child(n+4) .hot-rank-circle {
    background: linear-gradient(135deg, #d4caba, #b8aa96);
}

.author-other-poems .hot-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-other-poems .hot-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.author-other-poems .hot-title a {
    color: #5a4321;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-other-poems .hot-title a:hover {
    color: #8b6b4a;
}

.author-other-poems .hot-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8b6b4a;
    flex-shrink: 0;
}

.author-other-poems .hot-views {
    color: #6d5b3b;
    font-weight: 500;
    background: #f3e9d7;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    border: 1px solid #e6d8b6;
}

/* ===== 响应式设计 ===== */
@media screen and (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .content-sidebar {
        width: 100%;
    }
    
    .author-other-poems.hot-poetry {
        padding: 15px;
    }
    
    .author-other-poems.hot-poetry h3 {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
    
    .author-other-poems .hot-item {
        gap: 8px;
        padding: 10px 0;
    }
    
    .author-other-poems .hot-rank-circle {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .author-other-poems .hot-title {
        font-size: 13px;
    }
    
    .author-other-poems .hot-views {
        font-size: 10px;
        padding: 1px 4px;
    }
}