/* 优化的首页布局设计 - 名句在个人信息区域内部 */

/* 名句容器 - 在 profile_inner 内部 */
.profile_inner .classical-quote-container {
    margin-top: 2rem;
    max-width: 100%;
    padding: 1.5rem 1.8rem 1.8rem 1.8rem;
    /* 淡雅的米白-茶青渐变，营造中国风氛围 */
    background: linear-gradient(135deg,
        #faf8f5 0%,
        #f5f2ed 50%,
        #e8e4dc 100%
    );
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(139, 90, 43, 0.12);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.profile_inner .classical-quote-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: linear-gradient(90deg,
        #C41E3A 0%,
        #D4AF37 50%,
        #C41E3A 100%
    );
}

/* 去掉引号装饰 */
.quote-decoration-top,
.quote-decoration-bottom {
    display: none;
}

.profile_inner .classical-quote {
    position: relative;
    margin: 0;
    padding: 0;
    text-align: left;
    z-index: 1;
}

/* 名句正文 - 书法字体 */
.profile_inner .quote-text {
    font-family: "Xingkai SC", "STXingkai", "华文行楷", "LiSu", "隶书", "STKaiti", "KaiTi", "楷体", "Kaiti SC", "华文楷体", "楷体-GB", serif;
    font-size: 1.35rem;
    line-height: 1.7;
    /* 深墨色字体，与米色背景形成良好对比 */
    color: #2c2416;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin: 0 0 1.2rem 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
    font-variant-ligatures: common-ligatures;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 作者信息 - 一行显示，居中对齐 */
.profile_inner .quote-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(92, 77, 58, 0.15);
}

.profile_inner .quote-author {
    font-style: normal;
    font-family: "Xingkai SC", "STXingkai", "华文行楷", "LiSu", "隶书", -apple-system, BlinkMacSystemFont, "SF Pro Text", "STSong", "SimSun", "宋体", serif;
    font-size: 0.95rem;
    color: #3d3425;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.profile_inner .author-name {
    font-weight: 600;
    color: #1a1610;
    font-size: 0.98rem;
}

.profile_inner .dynasty {
    font-weight: 400;
    color: #5c4d3a;
    font-size: 0.88rem;
    padding-left: 0.4rem;
    border-left: 1px solid rgba(92, 77, 58, 0.2);
}

.profile_inner .quote-source {
    font-family: "Xingkai SC", "STXingkai", "华文行楷", "LiSu", "隶书", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-size: 0.88rem;
    color: #6b5d4b;
    font-style: italic;
    font-weight: 400;
}

/* 刷新按钮 - 优化位置和样式 */
.profile_inner .refresh-quote-btn {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #C41E3A 0%, #8B0000 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(196, 30, 58, 0.15);
    z-index: 10;
    opacity: 0.75;
}

.profile_inner .refresh-quote-btn:hover {
    opacity: 1;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 3px 8px rgba(196, 30, 58, 0.25);
}

.profile_inner .refresh-quote-btn:active {
    transform: rotate(180deg) scale(1.02);
}

.profile_inner .refresh-quote-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

/* 悬停效果 */
.profile_inner .classical-quote-container:hover {
    box-shadow: 0 4px 16px rgba(139, 90, 43, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .profile_inner .classical-quote-container {
        /* 深墨色背景，搭配金色装饰 */
        background: linear-gradient(135deg,
            rgba(26, 24, 22, 0.98) 0%,
            rgba(20, 18, 16, 0.98) 50%,
            rgba(35, 32, 28, 0.98) 100%
        );
        border-color: rgba(212, 175, 55, 0.2);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
    }

    .profile_inner .quote-text {
        /* 浅米金色字体，与深色背景形成对比 */
        color: #e8dcc8;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    .profile_inner .quote-author {
        color: #d4c4a8;
    }

    .profile_inner .author-name {
        color: #f0e6d2;
    }

    .profile_inner .dynasty,
    .profile_inner .quote-source {
        color: #b8a88a;
    }

    .profile_inner .quote-footer {
        border-top-color: rgba(212, 175, 55, 0.2);
    }

    .profile_inner .classical-quote-container:hover {
        box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15), 0 2px 6px rgba(0, 0, 0, 0.5);
    }
}

/* 主题模式下的样式适配 */
body.skin-dark .profile_inner .classical-quote-container {
    background: linear-gradient(135deg,
        rgba(26, 24, 22, 0.98) 0%,
        rgba(20, 18, 16, 0.98) 50%,
        rgba(35, 32, 28, 0.98) 100%
    );
    border-color: rgba(212, 175, 55, 0.2);
}

body.skin-dark .profile_inner .quote-text {
    color: #e8dcc8;
}

body.skin-dark .profile_inner .quote-author {
    color: #d4c4a8;
}

body.skin-dark .profile_inner .author-name {
    color: #f0e6d2;
}

body.skin-dark .profile_inner .dynasty,
body.skin-dark .profile_inner .quote-source {
    color: #b8a88a;
}

body.skin-dark .profile_inner .quote-footer {
    border-top-color: rgba(212, 175, 55, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile_inner .classical-quote-container {
        padding: 1.2rem 1.5rem 1.5rem 1.5rem;
    }

    .profile_inner .quote-text {
        font-size: 1.2rem;
        line-height: 1.65;
        letter-spacing: 0.05em;
    }

    .profile_inner .quote-author {
        font-size: 0.88rem;
    }

    .profile_inner .author-name {
        font-size: 0.9rem;
    }

    .profile_inner .dynasty {
        font-size: 0.8rem;
    }

    .profile_inner .quote-source {
        font-size: 0.8rem;
    }

    .profile_inner .refresh-quote-btn {
        width: 24px;
        height: 24px;
        top: 0.6rem;
        right: 0.6rem;
    }

    .profile_inner .refresh-quote-btn svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .profile_inner .classical-quote-container {
        padding: 1rem 1.2rem 1rem 1.2rem;
    }

    .profile_inner .quote-text {
        font-size: 1.15rem;
        line-height: 1.6;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 淡入动画 */
.profile_inner .classical-quote-container {
    animation: fadeInUp 0.5s ease-out;
}

/* 打印样式 */
@media print {
    .profile_inner .classical-quote-container {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .profile_inner .refresh-quote-btn {
        display: none;
    }

    .profile_inner .classical-quote-container {
        animation: none;
    }
}
