/* 论文页面专用样式 */

/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&family=Noto+Sans+Tibetan:wght@300;400;500;600;700&display=swap');

/* 确保头部导航栏样式与其他页面一致 */
.header-wrapper .nav-link {
    color: var(--text-color) !important;
    font-weight: 500 !important;
    margin: 0 10px !important;
    transition: color 0.3s !important;
    position: relative !important;
    background: none !important;
    border-radius: 0 !important;
    padding: 0.5rem 1rem !important;
    box-shadow: none !important;
    display: inline-block !important;
    align-items: initial !important;
    gap: initial !important;
    transform: none !important;
}

.header-wrapper .nav-link:hover,
.header-wrapper .nav-link.active {
    color: var(--primary-color) !important;
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.header-wrapper .nav-link::after {
    content: "" !important;
    position: absolute !important;
    width: 0 !important;
    height: 2px !important;
    bottom: -3px !important;
    left: 0 !important;
    background-color: var(--primary-color) !important;
    transition: width 0.3s !important;
}

.header-wrapper .nav-link:hover::after,
.header-wrapper .nav-link.active::after {
    width: 100% !important;
}

/* 论文主体样式 */
.paper-main {
    background: linear-gradient(135deg, #fdfbf7 0%, #f8f4e6 100%);
    min-height: 100vh;
    padding: 40px 0 80px;
}

.paper-article {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(139, 90, 43, 0.1);
    overflow: hidden;
    position: relative;
}

/* 论文头部样式 */
.paper-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 60px 50px 50px;
    text-align: center;
    position: relative;
}

.paper-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.paper-title {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.paper-meta {
    position: relative;
    z-index: 2;
}

.tibetan-blessing {
    font-family: 'Noto Sans Tibetan', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 1px;
    line-height: 1.6;
}

.blessing-translation {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.paper-author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.paper-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 论文摘要样式 */
.paper-abstract {
    background: linear-gradient(135deg, #f8f4e6 0%, #f0e6d2 100%);
    padding: 40px 50px;
    border-bottom: 3px solid var(--primary-color);
}

.paper-abstract h2 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.paper-abstract h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.paper-abstract p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    text-indent: 2em;
    margin: 0;
}

/* 论文正文样式 */
.paper-content {
    padding: 50px;
    line-height: 1.8;
}

.paper-content h2 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 2rem;
    margin: 50px 0 30px 0;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.paper-content h2:first-child {
    margin-top: 0;
}

.paper-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.paper-content h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.6rem;
    margin: 40px 0 25px 0;
    padding-left: 20px;
    border-left: 4px solid var(--secondary-color);
    position: relative;
}

.paper-content h4 {
    font-family: var(--heading-font);
    color: var(--accent-color);
    font-size: 1.3rem;
    margin: 30px 0 20px 0;
    padding-left: 15px;
    border-left: 3px solid var(--accent-color);
}

.paper-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin: 5px -5px 30px -5px;
    text-align: justify;
    text-indent: 2em;
    position: relative;
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.02), rgba(193, 154, 107, 0.02));
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(139, 90, 43, 0.05);
    transition: all 0.3s ease;
}

/* 段落首字母特殊样式 */
.paper-content>p:first-of-type::first-letter {
    font-size: 3.5em;
    font-family: var(--heading-font);
    float: left;
    line-height: 0.8;
    margin: 0.1em 0.1em 0 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* 重要段落样式 */
.paper-content p.highlight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 90, 43, 0.05));
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.paper-content p.highlight::before {
    content: "" ";
 font-size: 3rem;
    color: var(--secondary-color);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* 段落间的装饰性分隔 */
.paper-content h3+p {
    position: relative;
    margin-top: 30px;
}

.paper-content h3+p::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

/* 关键词高亮样式 */
.paper-content em,
.paper-content strong {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    padding: 2px 6px;
    border-radius: 4px;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}

/* 引用文字样式 */
.paper-content blockquote {
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.05), rgba(193, 154, 107, 0.03));
    border-left: 4px solid var(--secondary-color);
    margin: 30px 0;
    padding: 25px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
    box-shadow: 0 2px 10px rgba(139, 90, 43, 0.05);
}

.paper-content blockquote::before {
    content: "" ";
 font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.paper-content blockquote p {
    margin: 0;
    text-indent: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.paper-content blockquote footer {
    margin-top: 15px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

/* 段落编号装饰 */
.paper-content .section-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 600;
    margin-right: 15px;
    font-size: 0.9rem;
}

/* 论文结语样式 */
.paper-epilogue {
    background: linear-gradient(135deg, #f5f1e8 0%, #ede4d3 100%);
    padding: 40px 50px;
    margin-top: 40px;
    border-top: 3px solid var(--primary-color);
}

.paper-epilogue h2 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
}

.epilogue-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 2em;
}

.dedication {
    text-align: center !important;
    font-style: italic;
    color: var(--primary-color) !important;
    font-weight: 500;
    margin: 30px 0 !important;
    text-indent: 0 !important;
}

.blessing-verse {
    text-align: center;
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 30px;
    padding: 20px;
    background: rgba(139, 90, 43, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(139, 90, 43, 0.1);
}

/* 论文导航样式 */
.paper-navigation {
    background: linear-gradient(135deg, #f5f1e8 0%, #ede4d3 100%);
    padding: 30px 50px;
    border-top: 2px solid var(--primary-color);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.paper-navigation .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(139, 90, 43, 0.1);
}

.paper-navigation .nav-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 90, 43, 0.2);
}

.paper-navigation .nav-link i {
    font-size: 1rem;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.4);
}

/* 阅读进度条 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(139, 90, 43, 0.1);
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 2px 10px rgba(139, 90, 43, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .paper-main {
        padding: 15px 0 40px;
    }

    .paper-article {
        margin: 0 10px;
        border-radius: 8px;
    }

    .paper-header {
        padding: 35px 20px 30px;
    }

    .paper-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .tibetan-blessing {
        font-size: 1.2rem;
    }

    .paper-author {
        flex-direction: column;
        gap: 15px;
    }

    .paper-abstract,
    .paper-content,
    .paper-epilogue {
        padding: 25px 20px;
    }

    .paper-content h2 {
        font-size: 1.7rem;
    }

    .paper-content h3 {
        font-size: 1.4rem;
    }

    .paper-content h4 {
        font-size: 1.2rem;
    }

    /* 平板设备段落优化 - 保持增强样式的同时优化间距 */
    .paper-content p {
        margin: 5px 0 25px 0;
        padding: 15px;
        /* 平板设备上稍微调整阴影强度 */
        box-shadow: 0 2px 8px rgba(139, 90, 43, 0.04);
    }
}

@media (max-width: 480px) {
    .paper-main {
        padding: 10px 0 30px;
    }

    .paper-article {
        margin: 0 5px;
        border-radius: 6px;
    }

    .paper-header {
        padding: 30px 15px 25px;
    }

    .paper-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .tibetan-blessing {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .paper-abstract,
    .paper-content,
    .paper-epilogue {
        padding: 20px 15px;
    }

    .paper-content p,
    .paper-abstract p {
        text-indent: 1.5em;
        font-size: 1rem;
        line-height: 1.7;
    }

    .paper-navigation {
        padding: 20px 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px;
    }

    .paper-navigation .nav-link {
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* 移动端段落优化 - 触屏设备友好的增强样式 */
    .paper-content p {
        margin: 5px 0 20px 0;
        padding: 12px;
        /* 确保触屏设备上有足够的触摸区域和视觉舒适度 */
        line-height: 1.7;
        /* 移动端稍微减少阴影以避免视觉过载 */
        box-shadow: 0 1px 6px rgba(139, 90, 43, 0.03);
        border-radius: 6px;
    }

    .paper-content>p:first-of-type::first-letter {
        font-size: 2.2em;
        margin: 0.05em 0.05em 0 0;
    }

    .paper-content blockquote {
        padding: 15px 12px;
        margin: 15px 0;
        border-radius: 6px;
    }

    .paper-content blockquote::before {
        font-size: 2.5rem;
        top: -5px;
        left: 8px;
    }

    .paper-content h2 {
        font-size: 1.5rem;
        margin: 35px 0 25px 0;
    }

    .paper-content h3 {
        font-size: 1.3rem;
        margin: 30px 0 20px 0;
        padding-left: 15px;
    }

    .paper-content h4 {
        font-size: 1.1rem;
        margin: 25px 0 15px 0;
        padding-left: 12px;
    }

    /* 移动端特殊元素优化 */
    .paper-content em,
    .paper-content strong {
        padding: 1px 4px;
        border-radius: 3px;
        font-size: 0.98rem;
    }

    .tibetan-text {
        font-size: 1.3rem;
        padding: 15px;
        margin: 20px 0;
        border-radius: 6px;
    }

    .blessing-verse {
        font-size: 1rem;
        padding: 15px;
        border-radius: 6px;
        line-height: 1.6;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* 超小屏幕设备优化 (iPhone SE, 小屏安卓等) */
@media (max-width: 375px) {
    .paper-main {
        padding: 8px 0 25px;
    }

    .paper-article {
        margin: 0 3px;
        border-radius: 4px;
    }

    .paper-header {
        padding: 25px 12px 20px;
    }

    .paper-title {
        font-size: 1.6rem;
        line-height: 1.1;
    }

    .tibetan-blessing {
        font-size: 1rem;
        line-height: 1.4;
    }

    .blessing-translation {
        font-size: 0.95rem;
    }

    .paper-abstract,
    .paper-content,
    .paper-epilogue {
        padding: 18px 12px;
    }

    .paper-content p {
        margin: 5px 0 18px 0;
        padding: 10px;
        font-size: 0.95rem;
        line-height: 1.6;
        text-indent: 1.2em;
        border-radius: 4px;
    }

    .paper-content h2 {
        font-size: 1.4rem;
        margin: 30px 0 20px 0;
    }

    .paper-content h3 {
        font-size: 1.2rem;
        margin: 25px 0 18px 0;
        padding-left: 12px;
    }

    .paper-content h4 {
        font-size: 1.05rem;
        margin: 20px 0 12px 0;
        padding-left: 10px;
    }

    .paper-navigation {
        padding: 18px 12px;
    }

    .paper-navigation .nav-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .tibetan-text {
        font-size: 1.2rem;
        padding: 12px;
        margin: 15px 0;
    }

    .blessing-verse {
        font-size: 0.95rem;
        padding: 12px;
        line-height: 1.5;
    }
}

/* 藏文文本样式 */
.tibetan-text {
    font-family: 'Noto Sans Tibetan', serif;
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--primary-color);
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.05), rgba(193, 154, 107, 0.03));
    border-radius: 8px;
    border: 1px solid rgba(139, 90, 43, 0.1);
    font-weight: 500;
    letter-spacing: 1px;
}

/* 散文页面特殊样式 */
.poem-content-section {
    background: linear-gradient(135deg, #fdfbf7 0%, #f8f4e6 100%);
    min-height: 100vh;
    padding: 40px 0 80px;
}

.paper-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(139, 90, 43, 0.1);
    overflow: hidden;
    position: relative;
}

.paper-content {
    padding: 50px;
}

.poem-text p {
    font-size: 1.2rem;
    line-height: 2;
    color: #333;
    margin: 25px 0;
    text-align: center;
    position: relative;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.poem-text p:hover {
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.02), rgba(193, 154, 107, 0.02));
}

.poem-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 90, 43, 0.1);
}

.poem-meta .author,
.poem-meta .date {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
}

.navigation-buttons {
    text-align: center;
    padding: 30px 0;
}

.navigation-buttons .btn {
    margin: 0 10px;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navigation-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 90, 43, 0.2);
}

/* 散文页面移动端优化 */
@media (max-width: 768px) {
    .poem-content-section {
        padding: 20px 0 40px;
    }

    .paper-container {
        margin: 0 10px;
        border-radius: 8px;
    }

    .paper-content {
        padding: 30px 20px;
    }

    .poem-text p {
        font-size: 1.1rem;
        line-height: 1.8;
        margin: 20px 0;
        padding: 12px;
    }

    .poem-meta {
        gap: 20px;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .poem-content-section {
        padding: 15px 0 30px;
    }

    .paper-container {
        margin: 0 5px;
        border-radius: 6px;
    }

    .paper-content {
        padding: 25px 15px;
    }

    .poem-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin: 15px 0;
        padding: 10px;
        border-radius: 6px;
    }

    .poem-meta {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .navigation-buttons {
        padding: 20px 0;
    }

    .navigation-buttons .btn {
        margin: 5px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 打印样式 */
@media print {
    .paper-main {
        background: white;
        padding: 0;
    }

    .paper-article {
        box-shadow: none;
        border-radius: 0;
    }

    .paper-header {
        background: white;
        color: black;
        border-bottom: 2px solid #333;
    }

    .paper-abstract {
        background: white;
    }

    .paper-epilogue {
        background: white;
    }
}