* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out;
}

/* 每日一签入口按钮 */
.fortune-entrance {
    margin-top: 30px;
    animation: fadeInUp 1s ease-out;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fortune-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.fortune-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 165, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.fortune-icon {
    font-size: 1.5rem;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.guardian-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.back-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

/* 主要内容区域 */
.main-content {
    padding: 20px 0;
}

/* 生肖网格布局 */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* 生肖卡片样式 */
.zodiac-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.zodiac-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.zodiac-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: linear-gradient(45deg, #f3e7e9, #e3eeff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

.zodiac-card-content {
    padding: 25px;
    text-align: center;
}

.zodiac-card-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.zodiac-card-guardian {
    font-size: 1.3rem;
    color: #764ba2;
    margin-bottom: 10px;
    font-weight: 500;
}

.zodiac-card-blessing {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* 守护神详情页面样式 - 整页图片 */
.guardian-page {
    min-height: 100vh;
    background: #000;
}

.image-full-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.guardian-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.6) 100%);
    padding: 0;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 电脑端默认样式 */
.blessing-top {
    padding: 80px 30px 40px;
}

.description-bottom {
    padding: 40px 30px 60px;
}

.blessing-left {
    display: none;
}

.description-right {
    display: none;
}

.text-area-top {
    display: none;
}

.zodiac-name {
    display: none;
}

.blessing-text {
    font-size: 1.8rem;
    color: #fff;
    line-height: 2;
    font-weight: 300;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    margin: 0;
    letter-spacing: 4px;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif;
}

.description-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    margin: 0;
    font-weight: 300;
}

/* 竖向文字样式 */
.blessing-text-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1.2rem;
    color: #fff;
    line-height: 2.5;
    font-weight: 300;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    margin: 0;
    letter-spacing: 8px;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif;
}

.description-text-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 2;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    margin: 0;
    font-weight: 300;
    letter-spacing: 4px;
}

/* 两列竖向排列样式 */
.blessing-columns {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 0;
}

.description-columns {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 0;
}

.blessing-col-1,
.blessing-col-2 {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1.1rem;
    color: #fff;
    line-height: 2.2;
    font-weight: 300;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    margin: 0;
    letter-spacing: 6px;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif;
}

.description-col-1,
.description-col-2 {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 2;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    margin: 0;
    font-weight: 300;
    letter-spacing: 4px;
}

.audio-section {
    margin-bottom: 20px;
}

.audio-player {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 25px;
    height: 40px;
}

.home-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* 子页面底部每日一签入口 */
.fortune-entrance-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
    padding: 25px 20px 20px;
    text-align: center;
    z-index: 100;
}

.fortune-button-bottom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.fortune-button-bottom:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.fortune-icon-bottom {
    font-size: 1rem;
    animation: shake 2s infinite;
}

/* 导航区域 */
.navigation-section {
    background: #1a1a2e;
    padding: 30px 20px;
}

.nav-title {
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.zodiac-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.zodiac-mini-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 10px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.zodiac-mini-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: white;
    margin-top: 50px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 - 优先移动端 */
@media (max-width: 768px) {
    /* 手机端全屏模式 */
    .guardian-page {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }
    
    .image-full-container {
        width: 100vw;
        height: 100vh;
    }
    
    /* 隐藏横向布局 */
    .blessing-top {
        display: none;
    }
    
    .description-bottom {
        display: none;
    }
    
    /* 显示两列竖向布局 */
    .text-area-top {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        pointer-events: none;
    }
    
    .blessing-columns {
        position: absolute;
        top: 60px;
        left: 25px;
        gap: 15px;
    }
    
    .description-columns {
        position: absolute;
        bottom: 60px;
        right: 25px;
        gap: 12px;
    }
    
    .blessing-col-1,
    .blessing-col-2 {
        font-size: 1rem;
        letter-spacing: 5px;
        line-height: 2;
    }
    
    .description-col-1,
    .description-col-2 {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }
    
    .overlay-content {
        background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.05) 80%, rgba(0,0,0,0.5) 100%);
    }
    
    .audio-player {
        height: 36px;
    }

    .home-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .nav-title {
        font-size: 1.1rem;
    }

    .zodiac-mini-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .zodiac-mini-card {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    /* 手机端每日一签入口 */
    .fortune-entrance-bottom {
        padding: 20px 15px 18px;
    }
    
    .fortune-button-bottom {
        padding: 6px 18px;
        font-size: 0.85rem;
    }
    
    .fortune-icon-bottom {
        font-size: 0.9rem;
    }
}

/* 每日一签页面样式 */
.fortune-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6347 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fortune-container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.fortune-header {
    margin-bottom: 40px;
}

.fortune-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FF6347;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.fortune-date {
    font-size: 1.1rem;
    color: #666;
}

.fortune-content {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fortune-placeholder {
    padding: 40px 20px;
}

.shake-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: shake 1.5s infinite;
}

.shake-text {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
}

.draw-button {
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #FF6347 0%, #FF4500 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 99, 71, 0.4);
    transition: all 0.3s ease;
}

.draw-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 99, 71, 0.6);
}

.draw-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fortune-result {
    animation: fadeIn 0.5s ease-out;
}

.fortune-result.show {
    animation: slideIn 0.6s ease-out;
}

.fortune-level {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

.fortune-fortune {
    font-size: 2.2rem;
    font-weight: bold;
    color: #FF6347;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 诗词样式 */
.poem-container {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe0b2 100%);
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 30px;
    border: 2px solid #FFD700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.poem-line {
    font-size: 1.4rem;
    color: #8B4513;
    font-family: 'STKaiti', 'KaiTi', 'Microsoft YaHei', serif;
    line-height: 2.2;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-align: center;
}

.poem-line:last-child {
    margin-bottom: 0;
}

.fortune-content-text {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 0 10px;
}

.fortune-advice {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.advice-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.advice-item:last-child {
    margin-bottom: 0;
}

.advice-label {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FF6347;
    min-width: 50px;
    text-align: left;
}

.advice-text {
    font-size: 1.1rem;
    color: #333;
    flex: 1;
    text-align: left;
}

.fortune-blessing {
    font-size: 1.4rem;
    color: #FFA500;
    font-weight: bold;
    margin-bottom: 30px;
    font-family: 'STKaiti', 'KaiTi', serif;
    letter-spacing: 3px;
}

/* 解读按钮样式 */
.interpret-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #FF6347 0%, #FF4500 100%);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 99, 71, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.interpret-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 99, 71, 0.6);
}

/* 签文解读区域 */
.interpretation-header {
    margin-bottom: 20px;
}

.interpretation-header h3 {
    font-size: 1.6rem;
    color: #FF6347;
    font-weight: bold;
}

.interpretation-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 2;
    text-align: justify;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    border-left: 5px solid #FF6347;
}

.fortune-share {
    margin-top: 20px;
}

.share-button {
    padding: 12px 30px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.fortune-footer {
    margin-top: 40px;
}

.back-button {
    display: inline-block;
    padding: 10px 30px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
}

.drawing {
    animation: drawing 1.5s ease-in-out;
}

@keyframes drawing {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    .blessing-top {
        padding: 100px 50px 50px;
    }

    .description-bottom {
        padding: 50px 50px 80px;
    }

    .blessing-text {
        font-size: 2rem;
        letter-spacing: 5px;
    }

    .description-text {
        font-size: 1.1rem;
    }

    .zodiac-mini-grid {
        grid-template-columns: repeat(6, 1fr);
        max-width: 800px;
    }
}

/* 图片占位符样式 */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 8rem;
    font-weight: bold;
}

/* 六爻问卦页面样式 */
.liuyao-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f5ebe0 0%, #e8d5b7 50%, #d5b894 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.liuyao-container {
    max-width: 800px;
    width: 100%;
    background: transparent;
    border-radius: 30px;
    padding: 40px 30px;
}

.liuyao-header {
    text-align: center;
    margin-bottom: 40px;
}

.liuyao-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.2);
}

.liuyao-subtitle {
    font-size: 1.1rem;
    color: #6b4423;
}

.question-input-area {
    text-align: center;
}

.question-label {
    display: block;
    font-size: 1.2rem;
    color: #4a3728;
    margin-bottom: 15px;
    font-weight: 600;
}

.question-textarea {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 15px;
    resize: vertical;
    margin-bottom: 20px;
    font-family: inherit;
}

.question-textarea:focus {
    outline: none;
    border-color: #8b4513;
}

.divine-button {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    transition: all 0.3s ease;
}

.divine-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.6);
}

/* 起卦动画 */
.divining-animation {
    text-align: center;
    padding: 60px 20px;
}

.coin-toss {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.coin {
    font-size: 4rem;
    animation: toss 1s infinite;
}

.coin-1 {
    animation-delay: 0s;
}

.coin-2 {
    animation-delay: 0.2s;
}

.coin-3 {
    animation-delay: 0.4s;
}

@keyframes toss {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.divining-text {
    font-size: 1.3rem;
    color: #8b4513;
    font-weight: 600;
}

/* 卦象展示 */
.hexagram-result {
    animation: fadeIn 0.5s ease-out;
}

.hexagram-display {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: rgba(255, 248, 235, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(139, 69, 19, 0.3);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.08);
}

.hexagram-name {
    font-size: 2rem;
    font-weight: bold;
    color: #3e2723;
    margin-bottom: 15px;
}

.hexagram-symbol {
    font-size: 3rem;
    color: #8b4513;
    margin-bottom: 15px;
    letter-spacing: 10px;
}

.hexagram-meaning {
    font-size: 1.2rem;
    color: #6b4423;
    font-style: italic;
}

.hexagram-lines {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 248, 235, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.hexagram-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(139, 69, 19, 0.05);
    border-radius: 10px;
}

.hexagram-line:last-child {
    margin-bottom: 0;
}

.line-position {
    font-size: 0.9rem;
    color: #6b4423;
    min-width: 60px;
}

.line-symbol {
    font-size: 1.5rem;
    color: #3e2723;
    font-weight: bold;
    letter-spacing: 2px;
    width: 80px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 阳爻 - 一根不中断的横线 */
.yang-line {
    background: #3e2723;
    height: 8px;
    width: 70px;
    border-radius: 2px;
}

/* 阴爻 - 中间断开的两根短横线 */
.yin-line {
    display: flex;
    gap: 8px;
    width: 70px;
    justify-content: center;
}

.yin-line::before,
.yin-line::after {
    content: '';
    background: #3e2723;
    height: 8px;
    width: 28px;
    border-radius: 2px;
    display: block;
}

.line-type {
    font-size: 1rem;
    color: #3e2723;
    min-width: 40px;
}

.interpretation-section,
.answer-section {
    margin-bottom: 30px;
    padding: 25px 20px;
    background: rgba(255, 248, 235, 0.85);
    border-radius: 15px;
    border-left: 5px solid #8b4513;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
}

.interp-title,
.answer-title {
    font-size: 1.4rem;
    color: #8b4513;
    margin-bottom: 15px;
    font-weight: bold;
}

.interp-content,
.answer-content {
    font-size: 1.05rem;
    color: #3e2723;
    line-height: 2;
}

.redivine-button {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #a0522d 0%, #cd853f 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(160, 82, 45, 0.4);
    transition: all 0.3s ease;
}

.redivine-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(160, 82, 45, 0.6);
}

.liuyao-footer {
    margin-top: 30px;
    text-align: center;
}

.liuyao-footer .back-button {
    display: inline-block;
    padding: 10px 30px;
    color: #8b4513;
    background: rgba(139, 69, 19, 0.1);
    border: 2px solid #8b4513;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.liuyao-footer .back-button:hover {
    background: #8b4513;
    color: #fff;
}

/* 专业解答样式 */
.professional-answer {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.answer-section-item {
    background: rgba(255, 248, 235, 0.9);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid #8b4513;
}

.answer-section-item.highlight {
    background: rgba(255, 235, 200, 0.9);
    border-left: 4px solid #cd853f;
    box-shadow: 0 2px 10px rgba(205, 133, 63, 0.15);
}

.answer-section-item h4 {
    font-size: 1.2rem;
    color: #6b3a1f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
    font-weight: bold;
}

.answer-section-item p {
    line-height: 1.9;
    color: #3e2723;
    margin-bottom: 12px;
    font-size: 1rem;
}

.answer-section-item strong {
    color: #8b4513;
    font-weight: 600;
}

.answer-section-item ul {
    list-style: none;
    padding-left: 0;
}

.answer-section-item ul li {
    padding: 10px 0 10px 20px;
    position: relative;
    color: #3e2723;
    line-height: 1.7;
    font-size: 1rem;
}

.answer-section-item ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8b4513;
    font-size: 1.5rem;
    line-height: 1;
}

/* 运势等级标签 */
.fortune-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.fortune-badge.auspicious {
    background: linear-gradient(135deg, #cd853f, #daa520);
    color: #fff;
}

.fortune-badge.caution {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
}

.fortune-badge.neutral {
    background: linear-gradient(135deg, #87ceeb, #a8d8ea);
    color: #333;
}

/* 六爻专业解读样式 */
.professional-liuyao {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.professional-liuyao .intro-text {
    background: linear-gradient(135deg, rgba(205, 133, 63, 0.15), rgba(222, 184, 135, 0.2));
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #8b4513;
}

.professional-liuyao .intro-text p {
    color: #5d3a1a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.liuyao-section {
    background: rgba(255, 248, 235, 0.9);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid #8b4513;
}

.liuyao-section.highlight {
    background: rgba(255, 235, 200, 0.9);
    border-left: 4px solid #cd853f;
    box-shadow: 0 2px 10px rgba(205, 133, 63, 0.15);
}

.liuyao-section h4 {
    font-size: 1.2rem;
    color: #6b3a1f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
    font-weight: bold;
}

.liuyao-section p {
    line-height: 1.9;
    color: #3e2723;
    margin-bottom: 12px;
    font-size: 1rem;
}

.liuyao-section strong {
    color: #8b4513;
    font-weight: 600;
}

.liuyao-section ul,
.liuyao-section ol {
    padding-left: 20px;
    margin: 10px 0;
}

.liuyao-section ul li,
.liuyao-section ol li {
    padding: 10px 0;
    color: #3e2723;
    line-height: 1.7;
    font-size: 1rem;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.info-item {
    background: rgba(255, 248, 235, 0.9);
    padding: 8px 6px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(139, 69, 19, 0.15);
}

.info-item span {
    display: inline;
    color: #6b4423;
    font-size: 0.8rem;
    margin-bottom: 0;
    font-weight: 500;
}

.info-item strong {
    display: inline;
    color: #3e2723;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 2px;
}

/* 分析提示 */
.analysis-tip {
    background: rgba(255, 235, 200, 0.9);
    padding: 15px 18px;
    border-radius: 8px;
    border-left: 4px solid #8b4513;
    font-style: italic;
    color: #5d3a1a;
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

/* 神煞标签 */
.shensha-吉 {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b0000;
    border-radius: 15px;
    font-weight: bold;
    margin-right: 8px;
}

.shensha-凶 {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    border-radius: 15px;
    font-weight: bold;
    margin-right: 8px;
}

/* 六爻页面手机端适配 */
@media (max-width: 768px) {
    .liuyao-page {
        padding: 10px;
        align-items: flex-start;
    }

    .liuyao-container {
        padding: 20px 15px;
        border-radius: 20px;
    }

    .liuyao-title {
        font-size: 1.8rem;
    }

    .liuyao-subtitle {
        font-size: 0.95rem;
    }

    .question-label {
        font-size: 1rem;
    }

    .question-textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    .divine-button {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
    }

    .coin {
        font-size: 3rem;
    }

    .divining-text {
        font-size: 1.1rem;
    }

    .hexagram-display {
        padding: 20px 15px;
    }

    .hexagram-name {
        font-size: 1.5rem;
    }

    .hexagram-symbol {
        font-size: 2.2rem;
        letter-spacing: 5px;
    }

    .hexagram-meaning {
        font-size: 1rem;
    }

    .hexagram-lines {
        padding: 15px 10px;
    }

    .hexagram-line {
        gap: 10px;
        padding: 8px;
    }

    .line-position {
        font-size: 0.8rem;
        min-width: 50px;
    }

    .line-symbol {
        width: 60px;
        height: 16px;
    }

    .yang-line {
        width: 55px;
        height: 6px;
    }

    .yin-line {
        width: 55px;
        gap: 6px;
    }

    .yin-line::before,
    .yin-line::after {
        height: 6px;
        width: 22px;
    }

    .line-type {
        font-size: 0.85rem;
        min-width: 35px;
    }

    .interpretation-section,
    .answer-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .interp-title,
    .answer-title {
        font-size: 1.2rem;
    }

    .interp-content,
    .answer-content {
        font-size: 0.95rem;
    }

    .redivine-button {
        padding: 12px;
        font-size: 1rem;
    }

    .liuyao-footer .back-button {
        padding: 8px 25px;
        font-size: 0.9rem;
    }

    /* 专业解读手机端适配 */
    .professional-answer,
    .professional-liuyao {
        gap: 15px;
    }

    .answer-section-item,
    .liuyao-section {
        padding: 15px;
    }

    .answer-section-item h4,
    .liuyao-section h4 {
        font-size: 1.05rem;
    }

    .answer-section-item p,
    .liuyao-section p,
    .answer-section-item ul li,
    .liuyao-section ul li,
    .liuyao-section ol li {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .info-item {
        padding: 6px 4px;
    }

    .info-item span {
        font-size: 0.75rem;
    }

    .info-item strong {
        font-size: 0.8rem;
    }

    .info-item strong {
        font-size: 0.95rem;
    }

    .analysis-tip {
        padding: 12px;
        font-size: 0.85rem;
    }

    .fortune-badge {
        padding: 5px 15px;
        font-size: 0.95rem;
    }

    .shensha-吉,
    .shensha-凶 {
        padding: 3px 10px;
        font-size: 0.85rem;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .liuyao-container {
        padding: 15px 12px;
    }

    .liuyao-title {
        font-size: 1.5rem;
    }

    .hexagram-name {
        font-size: 1.3rem;
    }

    .hexagram-symbol {
        font-size: 1.8rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .answer-section-item h4,
    .liuyao-section h4 {
        font-size: 1rem;
    }

    .answer-section-item p,
    .liuyao-section p {
        font-size: 0.85rem;
    }
}

/* ========== 日签分享弹窗 ========== */

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.share-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.share-modal-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.share-modal-close {
    position: absolute;
    top: -15px;
    right: -10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 0;
}

.share-modal-close:hover {
    background: #fff;
    color: #333;
}

.share-card-preview {
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.share-card-preview img {
    display: block;
    max-width: 340px;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 12px;
}

.share-modal-buttons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.share-btn-save {
    background: rgba(255, 255, 255, 0.95);
    color: #5C4033;
}

.share-btn-save:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn-share {
    background: linear-gradient(135deg, #C41E3A, #D4760A);
    color: #fff;
}

.share-btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.share-btn-icon {
    font-size: 18px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .share-card-preview img {
        max-width: 85vw;
    }
    
    .share-modal-buttons {
        gap: 12px;
    }
    
    .share-btn {
        padding: 10px 22px;
        font-size: 14px;
    }
}
