/* 基本样式设置 */
:root {
    --primary-color: #8b5a2b;
    --secondary-color: #d4af37;
    --accent-color: #c19a6b;
    --background-color: #fdf6e3;
    --text-color: #333;
    --light-text: #fff;
    --dark-text: #222;
    --border-color: #e0d0b0;
    --footer-bg: #4a4031;
    --quote-bg: #f8f0e3;
    --heading-font: "Noto Serif SC", serif;
    --body-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
}

/* 导航栏样式 */
.header-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
}

.navbar {
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 10px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
    
    .nav-link {
        padding: 10px 15px;
        margin: 5px 0;
    }
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--light-text);
    position: relative;
    text-align: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 10px, transparent 10px, transparent 20px);
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 移除旧的按钮样式，使用button-styles.css中的样式 */
.hero-buttons .btn {
    margin: 0 10px;
}

/* 介绍部分 */
.intro-section {
    padding: 80px 0;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.lotus-divider {
    margin: 20px 0;
    position: relative;
    text-align: center;
}

.lotus-divider i {
    font-size: 2rem;
    color: var(--secondary-color);
    background: var(--background-color);
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.lotus-divider::before {
    content: "";
    position: absolute;
    height: 1px;
    background-color: var(--border-color);
    width: 100%;
    top: 50%;
    left: 0;
    z-index: 1;
}

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

/* 特色内容 */
.featured-content {
    padding: 50px 0;
    background-color: rgba(255, 248, 231, 0.5);
}

.feature-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    height: 100%;
    border-bottom: 3px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(139, 90, 43, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 引用部分 */
.quote-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.blockquote {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.5;
    position: relative;
    padding: 0 30px;
}

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

.blockquote::after {
    content: """;
    left: auto;
    right: -20px;
}

.blockquote-footer {
    font-size: 1.2rem;
    margin-top: 20px;
}

/* 最新文章 */
.latest-posts {
    padding: 80px 0;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.post-content {
    padding: 25px;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.post-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.post-content h3 a:hover {
    color: var(--accent-color);
}

.post-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--accent-color);
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 新发论文推荐样式 */
.featured-paper {
    background: linear-gradient(135deg, #fdfbf7 0%, #f8f4e6 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.featured-paper::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(139,90,43,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

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

.paper-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--secondary-color), #f4d03f);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.paper-badge i {
    font-size: 0.8rem;
}

.paper-intro-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 600;
}

.paper-subtitle {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.paper-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
    text-align: justify;
}

.paper-highlights {
    margin-bottom: 35px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #666;
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

.paper-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.paper-actions .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.paper-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.3);
}

.paper-meta-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.paper-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.paper-date {
    font-size: 0.9rem;
    color: #888;
}

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

.paper-preview {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(139, 90, 43, 0.15);
    overflow: hidden;
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.paper-preview:hover {
    transform: rotate(0deg) scale(1.02);
}

.preview-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 25px;
    text-align: center;
}

.tibetan-text {
    font-family: 'Noto Sans Tibetan', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.translation-text {
    font-size: 0.95rem;
    opacity: 0.9;
    font-style: italic;
}

.preview-content {
    padding: 25px;
}

.preview-content h4 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.preview-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.preview-footer {
    padding: 20px 25px;
    background: #f8f4e6;
    text-align: right;
}

.read-indicator {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.read-indicator:hover {
    color: var(--accent-color);
    text-decoration: none;
    transform: translateX(3px);
}

/* 页脚 */
.site-footer {
    background-color: var(--footer-bg);
    color: #f5f5f5;
    padding: 60px 0 30px;
}

.site-footer h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式样式 */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 60vh;
    }
    .hero-title {
        font-size: 2rem;
    }
    .blockquote {
        font-size: 1.5rem;
    }
}

/* 教学页面样式 */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), linear-gradient(135deg, var(--accent-color), var(--primary-color));
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: var(--light-text);
    margin-bottom: 50px;
    position: relative;
}

.page-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom right, transparent 49%, var(--background-color) 50%);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header .lead {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.content-section {
    padding: 30px 0;
}

.teachings-nav {
    position: sticky;
    top: 100px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.teachings-nav h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.3rem;
}

.teachings-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.teachings-nav li {
    margin-bottom: 8px;
}

.teachings-nav a {
    display: block;
    padding: 10px 15px;
    background-color: #fff;
    border-left: 3px solid transparent;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
}

.teachings-nav a:hover, .teachings-nav a.active {
    background-color: rgba(139, 90, 43, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.teaching-article {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    padding: 30px 40px;
}

.teaching-article:last-child {
    border-bottom: none;
}

.teaching-article h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.teaching-article h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.teaching-article h3 {
    color: var(--accent-color);
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 500;
}

.teaching-article p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.teaching-article ol, .teaching-article ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.teaching-article li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.teaching-article strong {
    color: var(--primary-color);
    font-weight: 600;
}

.teaching-article blockquote {
    background-color: var(--quote-bg);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    position: relative;
}

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

.teaching-article blockquote p {
    margin-bottom: 0;
}

/* 添加文章导航标记 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.article-navigation a:hover {
    color: var(--accent-color);
}

.article-navigation .prev i {
    margin-right: 10px;
}

.article-navigation .next i {
    margin-left: 10px;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .teachings-nav {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .teaching-article {
        padding: 25px 30px;
    }
    
    .teaching-article h2 {
        font-size: 1.8rem;
    }
    
    .teaching-article h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 767px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header .lead {
        font-size: 1.2rem;
    }
    
    .teaching-article {
        padding: 20px 25px;
    }
    
    .teaching-article h2 {
        font-size: 1.6rem;
    }
    
    .teaching-article h3 {
        font-size: 1.3rem;
    }
    
    .teaching-article p {
        font-size: 1rem;
    }
}

/* 相册页面样式 */
.gallery-container {
    padding: 30px 0;
}

.gallery-filters {
    margin-bottom: 30px;
    text-align: center;
}

.gallery-filters .btn {
    margin: 5px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    padding: 8px 20px;
    transition: all 0.3s;
}

.gallery-filters .btn:hover, .gallery-filters .btn.active {
    background-color: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-item-location {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 图片模态框 */
.modal-dialog {
    max-width: 80%;
    margin: 30px auto;
}

.modal-content {
    background-color: transparent;
    border: none;
}

.modal-body {
    padding: 0;
    position: relative;
}

.modal-image-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.modal-caption {
    background-color: #fff;
    padding: 20px;
    border-radius: 0 0 8px 8px;
}

.modal-caption h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.close-modal:hover {
    background-color: var(--accent-color);
}

/* 论文推荐响应式设计 */
@media (max-width: 768px) {
    .featured-paper {
        padding: 50px 0;
    }

    .paper-intro-title {
        font-size: 2rem;
    }

    .paper-subtitle {
        font-size: 1.4rem;
    }

    .paper-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .paper-preview {
        transform: rotate(0deg);
        margin-top: 30px;
    }

    .preview-header {
        padding: 20px;
    }

    .tibetan-text {
        font-size: 1rem;
    }

    .preview-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .paper-intro-title {
        font-size: 1.7rem;
    }

    .paper-subtitle {
        font-size: 1.2rem;
    }

    .paper-description {
        font-size: 1rem;
    }

    .highlight-item {
        font-size: 0.9rem;
    }

    .paper-actions .btn {
        width: 100%;
        text-align: center;
    }
}