/* 
   玄和风水网站自定义样式
   色彩心理学说明：
   - 主色深绿/墨绿：象征生长、和谐、稳定（木元素），让人感到安心、专业
   - 米白/浅米：温暖、干净、留白多，减少压迫感
   - 金色点缀：财运、尊贵感，但不滥用
   - 整体低饱和、高留白，符合风水“气场平和”的感觉
*/

:root {
    --primary: #1A3C34;          /* 深墨绿 - 主色 */
    --primary-light: #2C5F4A;    /* 稍浅的绿 */
    --accent-gold: #C9A227;      /* 沉金点缀 */
    --bg-soft: #F7F5F2;          /* 米白背景 */
    --text-dark: #2C2C2C;
    --text-muted: #6B7280;
    --card-shadow: 0 4px 20px rgba(26, 60, 52, 0.08);
    --radius: 12px;
}

body {
    font-family: 'Noto Sans SC', "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.7;
}

/* 导航 */
.navbar-brand {
    font-size: 1.35rem;
    letter-spacing: 1px;
}
.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.2s;
}
.nav-link:hover {
    color: var(--primary) !important;
}

/* 按钮 */
.btn-success {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-success:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}
.btn-outline-success {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-success:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* 卡片通用 */
.card-feng {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}
.card-feng:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(26, 60, 52, 0.12);
}
.card-feng .card-img-top {
    height: 200px;
    object-fit: cover;
}
.badge-paid {
    background-color: var(--accent-gold);
    color: #fff;
    font-weight: 500;
}
.badge-free {
    background-color: #10B981;
    color: #fff;
}

/* 首页 Hero */
.hero-section {
    background: linear-gradient(135deg, #1A3C34 0%, #2C5F4A 100%);
    color: #fff;
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-soft);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-title {
    font-weight: 700;
    font-size: 2.6rem;
    letter-spacing: 2px;
}
.hero-slogan {
    font-weight: 300;
    opacity: 0.9;
    font-size: 1.2rem;
}

/* 区块标题 */
.section-title {
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* 价格标签 */
.price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* 简介展开 */
.summary-box {
    background: #f8f9fa;
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

/* 付费遮罩提示 */
.paywall {
    background: linear-gradient(to bottom, transparent, #fff 40%);
    padding-top: 60px;
    margin-top: -80px;
    position: relative;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .card-feng .card-img-top {
        height: 160px;
    }
}

/* 平滑滚动与过渡 */
html {
    scroll-behavior: smooth;
}
a {
    transition: all 0.2s ease;
}

/* 用户中心侧边栏 */
.user-sidebar .list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
}
