/* 易经大衍之数演示样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.1;
    color: #333;
    background-color: #f5f5f5;
}

.yijing-container {
    display: flex;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e8e8e8;
}

/* 左侧结果区域 - 1/3 */
.result-section {
    width: 33.33%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 2px solid rgba(255, 215, 0, 0.3);
}

/* 右侧交互区域 - 2/3 */
.interaction-section {
    width: 66.67%;
    display: flex;
    flex-direction: column;
}

/* 卦象显示 */
.gua-display {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.gua-display h2 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 24px;
    font-family: 'KaiTi', '楷体', serif;
}

.gua-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gua-header h2 {
    margin-bottom: 0;
    flex: 1;
}

.jiegua-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.jiegua-btn {
    padding: 8px 16px;
    border: 2px solid #ffd700;
    border-radius: 6px;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'KaiTi', '楷体', serif;
}

.jiegua-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.jiegua-btn.member-btn {
    border-color: #4a9eff;
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
}

.jiegua-btn.member-btn:hover {
    background: rgba(74, 158, 255, 0.3);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.4);
}

.gua-name {
    text-align: center;
    font-size: 32px;
    color: #ffd700;
    margin-bottom: 20px;
    font-family: 'KaiTi', '楷体', serif;
}

.gua-symbol {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.yao-line {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.yao-line:hover {
    background: rgba(255, 215, 0, 0.1);
}

.yao-name {
    width: 40px;
    min-width: 40px;
    text-align: left;
    color: #ffd700;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.yao-symbol {
    height: 20px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 2px;
    transition: all 0.3s;
    position: relative;
    flex-shrink: 0;
}

.yao-line.yang .yao-symbol,
.yao-line.yin .yao-symbol {
    background: #ffd700;
}

.yao-line.yang .yao-symbol {
    width: 120px;
}

.yao-line.yin .yao-symbol {
    width: 120px;
    background: transparent;
}

.yao-line.yin .yao-symbol::before {
    content: '';
    width: 55px;
    height: 20px;
    background: #ffd700;
    border-radius: 2px;
    position: absolute;
    left: 0;
}

.yao-line.yin .yao-symbol::after {
    content: '';
    width: 55px;
    height: 20px;
    background: #ffd700;
    border-radius: 2px;
    position: absolute;
    right: 0;
}

.yao-line:not(.yang):not(.yin) .yao-symbol {
    width: 120px;
    background: rgba(255, 215, 0, 0.1);
}

.yao-line.changing .yao-symbol {
    background: #ff6b6b;
    box-shadow: 0 0 10px #ff6b6b;
}

.yao-number {
    width: 30px;
    min-width: 30px;
    text-align: right;
    color: #ffd700;
    font-size: 14px;
    font-weight: bold;
    opacity: 1 !important;
    display: inline-block !important;
    visibility: visible !important;
}

.gua-text {
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
}

.gua-text h3 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 16px;
}

.gua-text p {
    line-height: 1.8;
    color: #e8e8e8;
    font-size: 14px;
}

/* 当前爻显示 */
.current-yao {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.current-yao h2 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 20px;
    font-family: 'KaiTi', '楷体', serif;
}

.yao-result {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.yao-big {
    font-size: 100px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'KaiTi', '楷体', serif;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.yao-big.yang {
    color: #ffd700;
}

.yao-big.yin {
    color: #4a9eff;
}

.yao-info {
    text-align: center;
    font-size: 18px;
}

.yao-info p {
    margin: 5px 0;
}

.yao-text {
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.yao-text h3 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 16px;
}

.yao-text p {
    line-height: 1.8;
    color: #e8e8e8;
    font-size: 14px;
}

/* 蓍草显示区域 - 上部分 */
.stalks-display {
    flex: 2;
    padding: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.stalks-display h2 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 20px;
    font-family: 'KaiTi', '楷体', serif;
}

.stalks-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    gap: 0;
    padding: 40px 20px 20px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.stalk {
    width: 8px;
    height: 60px;
    background: linear-gradient(180deg, #8b7355 0%, #6b5344 100%);
    border-radius: 2px;
    transition: all 0.5s ease;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1px;
}

.stalk-number {
    display: none;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.stalk.center {
    transform: translateY(0);
    margin-right: 5px;
}

.stalk.aside {
    position: absolute;
    left: 10px;
    top: 10px;
    background: linear-gradient(180deg, #a0522d 0%, #8b4513 100%);
    transform: none;
    box-shadow: 0 0 15px rgba(160, 82, 45, 0.6);
    margin-right: 0;
}

.stalk.left {
    background: linear-gradient(180deg, #4a9eff 0%, #3a7ecc 100%);
    transform: translateX(-30px);
    margin-right: 5px;
}

.stalk.right {
    background: linear-gradient(180deg, #ff6b6b 0%, #cc5555 100%);
    transform: translateX(30px);
    margin-right: 5px;
}

.stalk.left-group {
    background: linear-gradient(180deg, #4a9eff 0%, #3a7ecc 100%);
    transform: translateX(-50px);
    margin-right: 1px;
}

.stalk.right-group {
    background: linear-gradient(180deg, #ff6b6b 0%, #cc5555 100%);
    transform: translateX(50px);
    margin-right: 1px;
}

.stalk.last-in-group {
    margin-right: 4px !important;
}

.stalk.lefthand {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: linear-gradient(180deg, #9b59b6 0%, #8e44ad 100%);
    transform: none;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.6);
    margin-right: 0;
}

.stalk.lefthand {
    transform: translateX(calc(var(--offset, 0px)));
}

.stalk.lefthand[data-offset] {
    --offset: calc(var(--data-offset) * 10px);
}

.stalk.remainder-left {
    position: relative;
    transform: translate(-30px, 100px);
    z-index: 10;
    margin-right: 5px;
    background: linear-gradient(180deg, #4a9eff 0%, #3a7ecc 100%);
}

.stalk.remainder-right {
    position: relative;
    transform: translate(30px, 100px);
    z-index: 10;
    margin-right: 5px;
    background: linear-gradient(180deg, #ff6b6b 0%, #cc5555 100%);
}

.stalk.remainder {
    position: relative;
    transform: translateY(100px);
    z-index: 10;
    margin-right: 5px;
}

.stalk.remainder.left {
    background: linear-gradient(180deg, #4a9eff 0%, #3a7ecc 100%);
}

.stalk.remainder.right {
    background: linear-gradient(180deg, #ff6b6b 0%, #cc5555 100%);
}

.stalk.selected {
    box-shadow: 0 0 10px #ffd700;
}

.stalks-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    font-size: 16px;
}

.stalks-info p {
    color: #ffd700;
}

/* 命令区域 - 下部分 */
.command-section {
    flex: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* 输入区域 */
.input-area {
    display: flex;
    gap: 10px;
}

.input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #e8e8e8;
    font-size: 16px;
    transition: all 0.3s;
}

.input-area input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.input-area input::placeholder {
    color: #888;
}

.input-area button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.input-area button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.input-area button:active {
    transform: translateY(0);
}

.input-area button.listening {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 快捷命令 */
.quick-commands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-commands button {
    padding: 10px 18px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffd700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-commands button:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.quick-commands button.highlight {
    background: rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: pulse 1s infinite;
}

/* 状态显示 */
.status-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.status-display h3 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 16px;
}

.status-display p {
    margin: 5px 0;
    font-size: 14px;
}

/* 历史记录 */
.history-display {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    overflow-y: auto;
    min-height: 150px;
    max-height: 200px;
}

.history-display h3 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 16px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 14px;
}

.history-step {
    color: #ffd700;
    font-weight: bold;
    min-width: 30px;
}

.history-command {
    color: #4a9eff;
}

.history-result {
    color: #e8e8e8;
    flex: 1;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
}

.action-buttons button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.action-buttons button:first-child {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: #e8e8e8;
}

.action-buttons button:first-child:hover {
    background: linear-gradient(135deg, #777 0%, #555 100%);
}

.action-buttons button:last-child {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
}

.action-buttons button:last-child:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.action-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 滚动条样式 */
.command-section::-webkit-scrollbar,
.history-display::-webkit-scrollbar {
    width: 8px;
}

.command-section::-webkit-scrollbar-track,
.history-display::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.command-section::-webkit-scrollbar-thumb,
.history-display::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

.command-section::-webkit-scrollbar-thumb:hover,
.history-display::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* 弹窗遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    color: #e8e8e8;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 15px;
}

.modal-header h2 {
    color: #ffd700;
    font-size: 28px;
    font-family: 'KaiTi', '楷体', serif;
    margin: 0;
}

.modal-close {
    background: none;
    border: 2px solid #ffd700;
    color: #ffd700;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 215, 0, 0.2);
}

.modal-body h3 {
    color: #ffd700;
    font-size: 24px;
    font-family: 'KaiTi', '楷体', serif;
    text-align: center;
    margin-bottom: 20px;
}

.gua-detail,
.yaos-detail {
    margin-bottom: 25px;
}

.gua-detail h4,
.yaos-detail h4 {
    color: #ffd700;
    font-size: 18px;
    font-family: 'KaiTi', '楷体', serif;
    margin-bottom: 10px;
}

.gua-detail p {
    line-height: 1.8;
    font-size: 16px;
}

.yao-detail-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.yao-detail-item:last-child {
    border-bottom: none;
}

.yao-detail-item p {
    margin: 0;
    line-height: 1.6;
    font-size: 15px;
}

.yao-detail-item strong {
    color: #ffd700;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .yijing-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .result-section {
        width: 100%;
        flex-direction: row;
        gap: 15px;
        border-right: none;
        border-bottom: 2px solid rgba(255, 215, 0, 0.3);
        padding: 15px;
    }
    
    .interaction-section {
        width: 100%;
    }
    
    .gua-display,
    .current-yao {
        flex: 1;
        margin-bottom: 0;
        padding: 15px;
    }
    
    .stalks-display {
        padding: 15px;
    }
    
    .command-section {
        padding: 15px;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .result-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .gua-header {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .jiegua-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .jiegua-btn {
        width: 100%;
        text-align: center;
    }
    
    .gua-name {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .yao-big {
        font-size: 60px;
    }
    
    .stalk {
        height: 30px;
        width: 6px;
    }
    
    .stalks-container {
        min-height: 200px;
        padding: 30px 15px 15px 15px;
    }
    
    .stalks-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .stalks-info p {
        margin: 0;
        font-size: 12px;
    }
    
    .quick-commands {
        justify-content: center;
    }
    
    .quick-commands button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .history-item {
        flex-direction: column;
        gap: 5px;
        font-size: 12px;
    }
    
    .yao-line {
        gap: 5px;
    }
    
    .yao-name {
        width: 30px;
        min-width: 30px;
        font-size: 12px;
    }
    
    .yao-symbol {
        height: 15px;
    }
    
    .yao-line.yang .yao-symbol {
        width: 80px;
    }
    
    .yao-line.yin .yao-symbol {
        width: 80px;
    }
    
    .yao-line.yin .yao-symbol::before {
        width: 35px;
        height: 15px;
    }
    
    .yao-line.yin .yao-symbol::after {
        width: 35px;
        height: 15px;
    }
    
    .yao-number {
        width: 25px;
        min-width: 25px;
        font-size: 12px;
    }
    
    .gua-text h3,
    .yao-text h3 {
        font-size: 14px;
    }
    
    .gua-text p,
    .yao-text p {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .current-yao h2,
    .stalks-display h2 {
        font-size: 18px;
    }
    
    .status-display h3,
    .history-display h3 {
        font-size: 14px;
    }
    
    .status-display p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .result-section {
        padding: 10px;
    }
    
    .gua-display,
    .current-yao {
        padding: 10px;
    }
    
    .stalks-display {
        padding: 10px;
    }
    
    .command-section {
        padding: 10px;
        gap: 10px;
    }
    
    .gua-name {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .yao-big {
        font-size: 50px;
    }
    
    .stalk {
        height: 25px;
        width: 3px;
        margin-right: 1px;
    }
    
    .stalk.center {
        margin-right: 2px;
    }
    
    .stalk.left,
    .stalk.right {
        margin-right: 2px;
    }
    
    .stalk.left-group,
    .stalk.right-group {
        margin-right: 1px;
    }
    
    .stalk.last-in-group {
        margin-right: 2px !important;
    }
    
    .stalk.remainder-left {
        transform: translate(-30px, 50px);
    }
    
    .stalk.remainder-right {
        transform: translate(30px, 50px);
    }
    
    .stalks-container {
        min-height: 150px;
        padding: 20px 5px 10px 5px;
    }
    
    .quick-commands button {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .action-buttons button {
        padding: 10px;
        font-size: 14px;
    }
    
    .yao-line.yang .yao-symbol {
        width: 60px;
    }
    
    .yao-line.yin .yao-symbol {
        width: 60px;
    }
    
    .yao-line.yin .yao-symbol::before {
        width: 25px;
        height: 15px;
    }
    
    .yao-line.yin .yao-symbol::after {
        width: 25px;
        height: 15px;
    }
    
    /* 解卦按钮移动端适配 */
    .jiegua-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 5px;
    }
    
    .jiegua-btn {
        padding: 6px 12px;
        font-size: 12px;
        flex: 1;
        text-align: center;
    }
}

/* 蓍草信息弹出框样式 */
.stalk-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.stalk-info-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 16px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: #e8e8e8;
    cursor: default;
    position: relative;
    z-index: 1001;
}

/* 添加点击背景关闭功能 */
.stalk-info-modal .stalk-info-content {
    pointer-events: auto;
}

.stalk-info-modal {
    pointer-events: auto;
}

.stalk-info-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.stalk-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.stalk-info-header h3 {
    color: #ffd700;
    font-size: 24px;
    margin: 0;
    font-family: 'KaiTi', '楷体', serif;
}

.close-btn {
    background: none;
    border: 2px solid #ffd700;
    color: #ffd700;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #ffd700;
    color: #1a1a2e;
}

.stalk-info-body h4 {
    color: #ffd700;
    font-size: 18px;
    margin: 20px 0 10px 0;
    font-family: 'KaiTi', '楷体', serif;
}

.stalk-info-body p {
    color: #e8e8e8;
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
}

.stalk-info-body p:first-child {
    margin-top: 0;
}

.info-link {
    color: #ffd700;
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px;
    padding: 2px 8px;
    border: 1px solid #ffd700;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-link:hover {
    background-color: #ffd700;
    color: #1a1a2e;
}

/* 蓍草信息弹出框移动端适配 */
@media (max-width: 480px) {
    .stalk-info-content {
        padding: 20px;
        width: 95%;
    }
    
    .stalk-info-header h3 {
        font-size: 20px;
    }
    
    .stalk-info-body h4 {
        font-size: 16px;
    }
    
    .stalk-info-body p {
        font-size: 14px;
    }
    
    .info-link {
        font-size: 12px;
        padding: 1px 6px;
    }
}

/* 话题对话框样式 */
.topic-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.topic-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: #e8e8e8;
}

.topic-modal-content h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 10px;
    font-family: 'KaiTi', '楷体', serif;
}

.topic-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #b0b0b0;
}

.topic-presets {
    margin-bottom: 30px;
}

.topic-preset-group h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-family: 'KaiTi', '楷体', serif;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.preset-btn {
    padding: 8px 16px;
    border: 2px solid #ffd700;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-family: 'KaiTi', '楷体', serif;
}

.preset-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.preset-btn.selected {
    background: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.topic-preset-items h4 {
    color: #4a9eff;
    margin-bottom: 15px;
    font-family: 'KaiTi', '楷体', serif;
}

.preset-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.preset-item-btn {
    padding: 8px 12px;
    border: 2px solid #4a9eff;
    border-radius: 8px;
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-family: 'KaiTi', '楷体', serif;
    text-align: center;
}

.preset-item-btn:hover {
    background: rgba(74, 158, 255, 0.3);
    box-shadow: 0 0 8px rgba(74, 158, 255, 0.4);
}

.preset-item-btn.selected {
    background: rgba(74, 158, 255, 0.4);
    box-shadow: 0 0 12px rgba(74, 158, 255, 0.6);
}

.topic-custom {
    margin-bottom: 30px;
}

.topic-custom p {
    color: #b0b0b0;
    margin-bottom: 10px;
}

.topic-custom input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #e8e8e8;
    font-size: 14px;
    font-family: 'KaiTi', '楷体', serif;
}

.topic-custom input::placeholder {
    color: #666;
}

.topic-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.topic-btn {
    padding: 12px 30px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: bold;
    font-family: 'KaiTi', '楷体', serif;
}

.topic-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.topic-btn.confirm {
    background: rgba(80, 200, 120, 0.2);
    border-color: #50c878;
    color: #50c878;
}

.topic-btn.confirm:hover {
    background: rgba(80, 200, 120, 0.4);
    box-shadow: 0 0 15px rgba(80, 200, 120, 0.6);
}

.topic-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .topic-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .preset-buttons {
        gap: 8px;
    }
    
    .preset-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .preset-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .preset-item-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .topic-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .topic-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
