/* 自定义 CSS，打造顶级、养眼的设计，参考 Apple、Airbnb、Notion、Stripe */
/* 在 base.html 中引用此文件，需 {% load static %} */
:root {
    --primary-color: #6f42c1;  /* 紫色主色调，优雅高贵 */
    --accent-color: #d4a017;   /* 金色点缀，温暖活泼 */
    --bg-light: #f8f9fa;      /* 浅灰背景，清新干净 */
    --bg-dark: #2d2d2d;       /* 深色文字，高级感 */
    --text-muted: #6c757d;    /* 辅助文字，柔和 */
    --gradient: linear-gradient(135deg, #e9d5ff, #fefce8); /* 柔和渐变 */
    --glass-bg: rgba(255, 255, 255, 0.15); /* 玻璃态背景 */
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.15); /* 柔和阴影 */
}

/* 全局样式 */
body {
    font-family: 'Noto Sans SC', sans-serif; /* 优化中文显示 */
    background: var(--gradient);
    color: var(--bg-dark);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* 导航栏 */
.navbar-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px); /* 玻璃态效果 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.9);
}
.navbar .nav-link {
    font-weight: 600;
    color: var(--bg-dark) !important;
    transition: color 0.3s ease, transform 0.3s ease;
}
.navbar .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}
.logo-img {
    height: 36px;
    transition: transform 0.4s ease;
}
.logo-img:hover {
    transform: rotate(10deg) scale(1.15);
}
.btn-nav {
    padding: 8px 20px;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}
.btn-nav:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* 英雄区域 */
.hero-section, .hero-about {
    padding: 100px 0 60px;
    background: linear-gradient(180deg, rgba(111, 66, 193, 0.1), transparent);
}
.hero-logo {
    max-height: 80px;
    transition: transform 0.5s ease;
}
.hero-logo:hover {
    transform: scale(1.1);
}
.display-4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 3rem;
}
.lead {
    font-style: italic;
    font-size: 1.4rem;
}
.btn-hero {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 12px 30px;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(111, 66, 193, 0.4);
}

/* 轮播图 */
.carousel-section {
    padding: 40px 0;
}
.carousel-custom {
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}
.carousel-item {
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.carousel-item.active {
    opacity: 1;
    transform: scale(1);
}
.carousel-item:not(.active) {
    opacity: 0;
    transform: scale(0.95);
}
.carousel-img {
    height: 450px;
    object-fit: cover;
    border-radius: 1rem;
}

/* 音乐播放 */
.audio-section {
    padding: 40px 0;
}
.audio-container {
    max-width: 500px;
    margin: 0 auto;
}
.audio-player-wrapper {
    position: relative;
}
.audio-player {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
}
.audio-player::-webkit-media-controls-panel {
    background: transparent;
}
.btn-play-pause {
    margin-top: 10px;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}
.btn-play-pause:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 认证页面（登录/注册） */
.auth-section {
    padding: 100px 0 60px;
    background: var(--gradient);
}
.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}
.auth-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 2rem;
}
.auth-form .form-label {
    font-weight: 600;
    color: var(--bg-dark);
}
.auth-form input {
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.auth-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(111, 66, 193, 0.3);
    outline: none;
}
.auth-form .text-danger {
    font-size: 0.85rem;
}

/* 个人主页 */
.profile-section {
    padding: 100px 0 60px;
    background: var(--gradient);
}
.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}
.profile-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 2rem;
}
.user-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease;
}
.avatar-img:hover {
    transform: scale(1.1);
}

/* 关于页面 */
.about-section {
    padding: 100px 0 60px;
    background: var(--gradient);
}
.about-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(111, 66, 193, 0.3);
}
.card-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.5rem;
}
.icon-primary {
    font-size: 2.5rem;
    color: var(--primary-color);
}
.communion-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 2rem;
}

/* 页脚 */
.footer {
    background: var(--gradient);
    padding-top: 40px;
}
.footer h5 {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}
.hover-link {
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}
.hover-link:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}
.footer .text-dark {
    font-weight: 600;
}
.footer .text-muted {
    font-size: 0.85rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .carousel-img {
        height: 200px;
    }
    .display-4 {
        font-size: 2rem;
    }
    .lead {
        font-size: 1.1rem;
    }
    .hero-section, .auth-section, .profile-section, .about-section {
        padding: 60px 0 40px;
    }
    .footer .row > div {
        text-align: center;
    }
    .hover-link:hover {
        transform: none;
    }
    .auth-title, .profile-title, .communion-title {
        font-size: 1.5rem;
    }
    .about-card {
        margin-bottom: 20px;
    }
}