/* 詳情頁特有樣式 */

/* 詩詞內容模組 */
.poem-content-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
    border: 2px solid rgba(184, 134, 11, 0.2);
    text-align: center;
}

.poem-header {
    margin-bottom: 2.5rem;
}

.poem-title-main {
    font-size: 3rem;
    font-weight: 700;
    color: #654321;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #8b4513, #d2691e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1);
}

.poem-meta-main {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.poem-author-main,
.poem-dynasty-main,
.poem-category {
    background: linear-gradient(45deg, #8b4513, #d2691e);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.poem-text-container {
    margin: 3rem 0;
    position: relative;
}

.poem-text-container::before {
    content: '"';
    position: absolute;
    top: -2rem;
    left: 2rem;
    font-size: 6rem;
    color: rgba(139, 69, 19, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.poem-text-container::after {
    content: '"';
    position: absolute;
    bottom: -2rem;
    right: 2rem;
    font-size: 6rem;
    color: rgba(139, 69, 19, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.poem-verses {
    background: rgba(184, 134, 11, 0.05);
    border-left: 4px solid rgba(184, 134, 11, 0.4);
    padding: 2rem;
    border-radius: 0 15px 15px 0;
    line-height: 2.5;
}

.verse-line {
    font-size: 1.8rem;
    color: #5d4e37;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.1);
}
.poem-verses p{
    font-size: 1.8rem;
    color: #5d4e37;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.1);
}
.poem-verses p:last-child {
    margin-bottom: 0;
}
.verse-line:last-child {
    margin-bottom: 0;
}

.poem-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(184, 134, 11, 0.3);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #654321;
    backdrop-filter: blur(5px);
}

.action-btn:hover {
    background: rgba(184, 134, 11, 0.1);
    border-color: rgba(184, 134, 11, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
}

.action-btn.favorite-btn.active {
    background: linear-gradient(45deg, #8b4513, #d2691e);
    color: white;
    border-color: transparent;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-count {
    background: rgba(139, 69, 19, 0.2);
    color: #654321;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.action-btn.favorite-btn.active .btn-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* 創作背景模組 */
.background-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.background-content {
    line-height: 1.8;
    color: #5d4e37;
}

.background-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.xpz{
    position: relative; /* 作为绝对定位的基准 */
}
.xpz h2:before{
    content: '';
    position: absolute;
    left: -11px;
    top: 21px;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    background: linear-gradient(45deg, #8b4513, #d2691e);
    /*display: inline-block;*/
}

.background-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(184, 134, 11, 0.08);
    border-left: 4px solid rgba(184, 134, 11, 0.4);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 0 10px 10px 0;
}

.highlight-title {
    font-weight: 600;
    color: #654321;
    min-width: 80px;
}

.highlight-content {
    color: #8b7355;
    font-weight: 500;
}

/* 作者信息模組 */
.author-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.author-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8b4513, #d2691e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 2rem;
    font-weight: 700;
    color: #654321;
    margin-bottom: 0.5rem;
}

.author-title {
    color: #8b7355;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.author-description {
    line-height: 1.7;
    color: #5d4e37;
    margin-bottom: 2rem;
}

.author-description p {
    margin-bottom: 1rem;
}

.author-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    background: rgba(184, 134, 11, 0.08);
    padding: 1rem;
    border-radius: 12px;
    min-width: 80px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #654321;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #8b7355;
}

/* 詩詞推薦模組 */
.recommendation-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.recommendation-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(184, 134, 11, 0.2);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #8b7355;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover {
    color: #654321;
    background: rgba(184, 134, 11, 0.05);
}

.tab-btn.active {
    color: #654321;
    border-bottom-color: #8b4513;
    background: rgba(184, 134, 11, 0.1);
}

.recommendation-lists {
    position: relative;
}

.recommendation-list {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.recommendation-list.active {
    display: grid;
}

.recommendation-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.15);
    border-color: rgba(184, 134, 11, 0.4);
}

/* 簡化卡片樣式 */
.recommendation-card.simple-card {
    padding: 1.2rem;
    text-align: center;
    min-height: auto;
}

.simple-card .rec-poem-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.simple-card .rec-poem-meta {
    border-top: none;
    padding-top: 0;
    justify-content: center;
}

.simple-card .rec-author {
    font-size: 0.95rem;
    color: #8b7355;
    font-weight: 500;
}

.rec-poem-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #654321;
    margin-bottom: 0.8rem;
}

.rec-poem-preview {
    color: #5d4e37;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.rec-poem-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(184, 134, 11, 0.2);
}

.rec-author {
    color: #8b7355;
    font-weight: 500;
}

.rec-likes {
    color: #8b7355;
    font-size: 0.9rem;
}

/* 響應式設計 - 平板 */
@media (max-width: 768px) {
    .poem-content-section {
        padding: 2rem;
    }

    .poem-title-main {
        font-size: 2.5rem;
    }

    .poem-meta-main {
        gap: 1rem;
    }

    .verse-line {
        font-size: 1.5rem;
    }

    .poem-actions {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .action-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .author-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .author-stats {
        justify-content: center;
        gap: 1rem;
    }

    .recommendation-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .recommendation-tabs {
        justify-content: center;
    }
}

/* 響應式設計 - 手機 */
@media (max-width: 480px) {
    .poem-content-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .poem-title-main {
        font-size: 2rem;
        line-height: 1.2;
    }

    .poem-meta-main {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .poem-author-main,
    .poem-dynasty-main,
    .poem-category {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .poem-text-container::before,
    .poem-text-container::after {
        font-size: 4rem;
    }

    .poem-text-container::before {
        top: -1.5rem;
        left: 1rem;
    }

    .poem-text-container::after {
        bottom: -1.5rem;
        right: 1rem;
    }

    .verse-line {
        font-size: 1.3rem;
        line-height: 2;
    }

    .poem-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .background-section,
    .author-section,
    .recommendation-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .author-name {
        font-size: 1.7rem;
    }

    .author-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        width: 100%;
    }

    .background-highlight {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .recommendation-tabs {
        flex-direction: column;
        gap: 0;
    }

    .tab-btn {
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid rgba(184, 134, 11, 0.2);
    }

    .recommendation-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .recommendation-card {
        padding: 1.2rem;
    }

    .recommendation-card.simple-card {
        padding: 1rem;
    }

    .simple-card .rec-poem-title {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .simple-card .rec-author {
        font-size: 0.9rem;
    }

    .rec-poem-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .simple-card .rec-poem-meta {
        align-items: center;
    }

}
