/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 蓝色主题 */
    --primary-color: #1E3A8A; /* 深蓝色 */
    --secondary-color: #3B82F6; /* 亮蓝色 */
    --accent-color: #0EA5E9; /* 天蓝色 */
    --text-dark: #1E293B;
    --text-light: #FFFFFF;
    --bg-light: #F0F9FF;
    --bg-dark: #1E3A8A;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'SimSun', '宋体', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #1e40af;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 30px;
}

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

.nav-brand .temple-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    position: relative;
    top: -5px;
}

.nav-brand .temple-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.nav-brand .temple-name {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* 首页横幅 */
.hero {
    height: 100vh;
    min-height: 550px;
    background: 
        radial-gradient(circle at center 53%, 
            #1e40af 0%,
            #1e40af 25%,
            #2563eb 30%,
            #3b82f6 33%,
            #60a5fa 35%,
            #3b82f6 37%,
            #2563eb 40%,
            #1e40af 48%,
            #1a3a9e 68%,
            #1e40af 85%,
            #1e40af 100%
        );
    position: relative;
    overflow: hidden;
    padding-top: 50px;
    padding-bottom: 50px;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at center 53%, 
            transparent 0%,
            transparent 28%,
            rgba(255, 255, 255, 0.1) 29%,
            rgba(255, 255, 255, 0.2) 30%,
            rgba(255, 255, 255, 0.35) 30.5%,
            rgba(255, 255, 255, 0.5) 31%,
            rgba(255, 255, 255, 0.65) 31.5%,
            rgba(255, 255, 255, 0.8) 32%,
            rgba(255, 255, 255, 0.9) 32.5%,
            rgba(255, 255, 255, 1) 33%,
            rgba(255, 255, 255, 1) 35%,
            rgba(255, 255, 255, 0.95) 35.5%,
            rgba(255, 255, 255, 0.9) 36%,
            rgba(255, 255, 255, 0.85) 37%,
            rgba(255, 255, 255, 0.75) 38%,
            rgba(255, 255, 255, 0.65) 39%,
            rgba(255, 255, 255, 0.55) 40%,
            rgba(255, 255, 255, 0.45) 41%,
            rgba(255, 255, 255, 0.35) 42%,
            rgba(255, 255, 255, 0.25) 44%,
            rgba(255, 255, 255, 0.15) 46%,
            rgba(255, 255, 255, 0.08) 48%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 52%,
            transparent 100%
        );
    filter: blur(4px);
}

.hero-overlay {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-texts {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
}

.hero-text-left,
.hero-text-right {
    display: flex;
    gap: 20px;
    z-index: 1;
}

.hero-text-left {
    margin-left: 0;
}

.hero-text-right {
    margin-right: 0;
}

.text-group {
    display: flex;
    gap: 8px;
}

.vertical-text-small {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 22px;
    color: white;
    letter-spacing: 5px;
    line-height: 1.5;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(59, 130, 246, 0.6),
        2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'SimSun', '宋体', serif;
    animation: fadeIn 1s ease-out;
}

.vertical-text-large {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 34px;
    color: white;
    letter-spacing: 8px;
    line-height: 1.5;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.9),
        0 0 30px rgba(59, 130, 246, 0.7),
        3px 3px 10px rgba(0, 0, 0, 0.9);
    font-weight: 700;
    font-family: 'STKaiti', 'KaiTi', '楷体', 'SimSun', '宋体', serif;
    animation: fadeIn 1.2s ease-out;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
}

/* 通用section样式 */
section {
    padding: 80px 0;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 5px;
    animation: fadeIn 0.6s ease-out;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    margin: 0 auto 50px;
    animation: expandWidth 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

/* 寺院简介 */
.about-section {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 18px;
    line-height: 2;
    margin-bottom: 20px;
    text-indent: 2em;
    color: var(--text-dark);
    animation: fadeInUp 0.6s ease-out;
}

.about-text p:nth-child(1) {
    animation-delay: 0.1s;
}

.about-text p:nth-child(2) {
    animation-delay: 0.2s;
}

.about-text p:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-image {
    animation: fadeInRight 0.8s ease-out;
}

.about-image .temple-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 3px solid var(--secondary-color);
    object-fit: cover;
    transition: all 0.4s ease;
    cursor: pointer;
}

.about-image .temple-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.3);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-image .image-placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, #DBEAFE 100%);
    border-radius: 15px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    border: 3px solid var(--secondary-color);
}

.image-placeholder span {
    font-size: 80px;
    display: block;
    margin-bottom: 15px;
}

.image-placeholder p {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
}

/* 历史沿革 */
.history-section {
    background: var(--bg-light);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -50px;
    width: 2px;
    background: var(--secondary-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    min-width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--secondary-color);
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
}

.timeline-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* 寺院文化 */
.activities-section {
    background: white;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px var(--shadow);
}

.activity-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.2);
}

.activity-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.activity-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.activity-card p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* 寺院风光 */
.gallery-section {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.gallery-item .image-placeholder {
    background: linear-gradient(135deg, #60A5FA 0%, #93C5FD 100%);
    padding: 80px;
    text-align: center;
}

/* 联系我们 */
.contact-section {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px var(--shadow);
}

.info-icon {
    font-size: 36px;
    min-width: 50px;
}

.info-text h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.info-text p {
    font-size: 16px;
    color: var(--text-dark);
}

.contact-map .map-placeholder {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    height: 100%;
    min-height: 400px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--shadow);
    border: 3px solid var(--secondary-color);
}

.contact-map .map-placeholder span {
    font-size: 100px;
}

.contact-map .map-placeholder p {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 20px;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-text {
    font-size: 14px;
    opacity: 0.9;
}

.footer-icp {
    font-size: 13px;
    opacity: 0.8;
    margin: 5px 0;
}

.footer-icp a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-icp a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-beian {
    font-size: 13px;
    opacity: 0.8;
    margin: 5px 0;
}

.footer-beian a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-beian a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-beian img {
    height: 16px;
    width: auto;
}

.footer-motto {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: bold;
    letter-spacing: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        padding: 8px 15px;
    }

    .nav-brand .temple-logo {
        height: 40px;
        top: 2px;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 12px;
        padding: 2px 6px;
    }

    .hero {
        height: 100vh;
        background: 
            radial-gradient(circle at center 45%, 
                #1e40af 0%,
                #1e40af 20%,
                #2563eb 25%,
                #3b82f6 28%,
                #60a5fa 30%,
                #3b82f6 32%,
                #2563eb 35%,
                #1e40af 42%,
                #1a3a9e 62%,
                #1e40af 80%,
                #1e40af 100%
            );
    }

    .hero::before {
        background: 
            radial-gradient(circle at center 45%, 
                transparent 0%,
                transparent 23%,
                rgba(255, 255, 255, 0.1) 24%,
                rgba(255, 255, 255, 0.2) 25%,
                rgba(255, 255, 255, 0.35) 25.5%,
                rgba(255, 255, 255, 0.5) 26%,
                rgba(255, 255, 255, 0.65) 26.5%,
                rgba(255, 255, 255, 0.8) 27%,
                rgba(255, 255, 255, 0.9) 27.5%,
                rgba(255, 255, 255, 1) 28%,
                rgba(255, 255, 255, 1) 30%,
                rgba(255, 255, 255, 0.95) 30.5%,
                rgba(255, 255, 255, 0.9) 31%,
                rgba(255, 255, 255, 0.85) 32%,
                rgba(255, 255, 255, 0.75) 33%,
                rgba(255, 255, 255, 0.65) 34%,
                rgba(255, 255, 255, 0.55) 35%,
                rgba(255, 255, 255, 0.45) 36%,
                rgba(255, 255, 255, 0.35) 37%,
                rgba(255, 255, 255, 0.25) 39%,
                rgba(255, 255, 255, 0.15) 41%,
                rgba(255, 255, 255, 0.08) 43%,
                rgba(255, 255, 255, 0.03) 45%,
                transparent 47%,
                transparent 100%
            );
    }

    .hero-texts {
        flex-direction: row;
        justify-content: center;
        align-items: flex-end;
        padding: 0 2%;
        padding-bottom: 25px;
    }

    .hero-text-left,
    .hero-text-right {
        gap: 18px;
        margin: 0;
    }

    .hero-text-left {
        order: 2;
    }

    .hero-text-right {
        order: 1;
        margin-right: 12px;
    }

    .text-group {
        gap: 5px;
    }

    .vertical-text-small {
        font-size: 10px;
        letter-spacing: 1.5px;
        font-weight: 400;
        font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    }

    .vertical-text-large {
        font-size: 16px;
        letter-spacing: 3px;
        font-weight: 600;
        font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    }

    .section-title {
        font-size: 32px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text p {
        font-size: 16px;
        line-height: 1.8;
    }

    .about-image .temple-image {
        border-radius: 10px;
        border-width: 2px;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
