/* 主题色与全局变量 */
:root {
    --main-red: #b22222;
    --main-gold: #e6c28b;
    --main-brown: #8c1c13;
    --main-bg: #f8f5e6;
    --main-white: #fffdfa;
    --main-shadow: 0 8px 32px rgba(178,34,34,0.10);
}

@font-face {
    font-family: 'Noto Serif SC';
    src: url('/assets/fonts/NotoSerifSC-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Serif SC';
    src: url('/assets/fonts/NotoSerifSC-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Noto Serif SC', '宋体', 'SimSun', '仿宋', 'FangSong', '楷体', 'KaiTi', serif;
    background: var(--main-bg);
    color: #4b2e0f;
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(90deg, var(--main-red) 60%, var(--main-brown) 100%);
    border-bottom: 5px solid var(--main-gold);
    box-shadow: 0 4px 16px rgba(178,34,34,0.10);
    position: relative;
    z-index: 10;
}
.navbar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--main-gold) 0%, transparent 100%);
    opacity: 0.5;
}
.navbar-brand {
    font-size: 2.6rem;
    letter-spacing: 10px;
    font-weight: 700;
    color: var(--main-gold) !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.10);
    padding: 0 30px;
    position: relative;
}
.navbar-brand:before, .navbar-brand:after {
    content: '❖';
    color: var(--main-gold);
    font-size: 1.5rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.navbar-brand:before { left: 0; }
.navbar-brand:after { right: 0; }
.navbar-nav .nav-link {
    font-size: 1.3rem;
    letter-spacing: 3px;
    padding: 0.7rem 2rem;
    color: #fff !important;
    position: relative;
    transition: color 0.3s;
}
.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--main-gold);
    transition: all 0.3s;
    transform: translateX(-50%);
}
.navbar-nav .nav-link:hover:after, .navbar-nav .nav-link.active:after {
    width: 80%;
}

/* 主标题/副标题 */
.page-title, .section-title, .category-title, .hero-title {
    text-align: center;
    color: gold; /* 直接使用 gold（金黄色） */
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 6px;
    margin: 50px 0 30px 0;
    position: relative;
    padding-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(230,194,139,0.10);
}
.page-title:after, .section-title:after, .category-title:after, .hero-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--main-red), var(--main-gold));
    border-radius: 2px;
}
.hero-subtitle {
    text-align: center;
    font-size: 1.7rem;
    color: var(--main-gold);
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 4px rgba(178,34,34,0.10);
}

/* 卡片/区块 */
.card, .category-card, .dream-card, .search-result, .content-section, .contact-section, .sitemap-section, .hot-dreams .card {
    background: var(--main-white);
    border-radius: 20px;
    box-shadow: var(--main-shadow);
    border: 2px solid var(--main-gold);
    margin-bottom: 30px;
    transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover, .category-card:hover, .dream-card:hover, .search-result:hover, .hot-dreams .card:hover {
    box-shadow: 0 12px 36px rgba(178,34,34,0.18);
    transform: translateY(-8px) scale(1.03);
}
.card-title, .result-title {
    color: var(--main-red);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 10px;
}
.card-title:after, .result-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--main-gold);
}

/* 按钮 */
.btn-primary, .btn-submit, .btn-outline-primary {
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 12px 36px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(178,34,34,0.10);
}
.btn-primary, .btn-submit {
    background: linear-gradient(90deg, var(--main-red) 60%, var(--main-gold) 100%);
    border: none;
    color: #fff;
}
.btn-primary:hover, .btn-submit:hover {
    background: var(--main-brown);
    color: #fffbe8;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(178,34,34,0.18);
}
.btn-outline-primary {
    border: 2px solid var(--main-red);
    color: var(--main-red);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--main-red);
    color: #fff;
    border-color: var(--main-red);
}

/* 页脚 */
.footer-bg {
    background: #fffbe8;
    border-top: 5px solid var(--main-gold);
    padding: 50px 0 0 0;
    position: relative;
    margin-top: 60px;
}
.footer-bg:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 8"><path d="M0,0 Q50,16 100,0 L100,8 L0,8 Z" fill="%23e6c28b" opacity="0.3"/></svg>') repeat-x;
}
.footer-title {
    color: var(--main-brown);
    font-size: 1.4rem;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
    font-weight: bold;
}
.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--main-gold);
}
.footer-text {
    color: #4b2e0f;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 18px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #4b2e0f;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    position: relative;
    padding-left: 18px;
    font-size: 1.08rem;
}
.footer-links a:before {
    content: '❯';
    position: absolute;
    left: 0;
    color: var(--main-gold);
    transition: all 0.3s;
}
.footer-links a:hover {
    color: var(--main-red);
    transform: translateX(6px);
}
.footer-links a:hover:before {
    color: var(--main-red);
}
.footer-bottom {
    border-top: 1px solid rgba(230,194,139,0.3);
    padding-top: 25px;
    margin-top: 25px;
}
.footer-bottom p {
    color: var(--main-brown);
    font-size: 1.08rem;
}

/* 动画 */
.fade-in {
    animation: fadeIn 1.2s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .navbar-brand { font-size: 1.5rem; padding: 0 10px; }
    .navbar-nav .nav-link { font-size: 1rem; padding: 0.5rem 1rem; }
    .page-title, .section-title, .category-title, .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .footer-bg { padding: 30px 0 0 0; }
}

/* ========== 首页 index.php 专属样式 ========== */
.hero-section {
    background: none;
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(178,34,34,0.8), rgba(140,28,19,0.8));
    border-radius: 0 0 30px 30px;
}
.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
}
.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 4px;
}
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}
.search-box {
    background: rgba(255,255,255,0.95);
    border: 2px solid #e6c28b;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 0 auto 30px;
    max-width: 800px;
    padding: 20px;
    position: relative;
}
.search-box:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,0 L100,50 L50,100 L0,50 Z" fill="%23e6c28b"/></svg>') no-repeat;
    background-size: contain;
}
.search-box .form-control {
    border-radius: 12px;
    border: 1px solid #e6c28b;
    font-size: 1.2rem;
    padding: 15px 20px;
    height: auto;
}
.search-box .btn {
    border-radius: 12px;
    background: linear-gradient(90deg, #b22222 60%, #e6c28b 100%);
    border: none;
    color: #fff;
    font-weight: bold;
    padding: 15px 30px;
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.hot-keywords {
    background: #fffdfa;
    border: 2px solid #e6c28b;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}
.hot-keywords:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="%23fff" opacity="0.05"/></svg>') repeat;
    border-radius: 16px;
    z-index: -1;
}
.hot-keywords-title {
    font-size: 1.4rem;
    color: #8c1c13;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.hot-keywords-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #b22222, #e6c28b);
}
.keyword-tag {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px;
    background: #fffbe8;
    border: 1px solid #e6c28b;
    border-radius: 20px;
    color: #8c1c13;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.keyword-tag:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.keyword-tag:hover:before {
    left: 100%;
}
.keyword-tag:hover {
    background: #b22222;
    color: #fff;
    border-color: #b22222;
    transform: translateY(-2px);
}
.keyword-count {
    font-size: 0.9rem;
    color: #e6c28b;
    margin-left: 5px;
    display: inline-block;
    padding: 2px 6px;
    background: rgba(230,194,139,0.1);
    border-radius: 10px;
}

/* 每日解梦卡片样式 */
.daily-dream-section {
    margin: 40px 0;
}

.daily-dream-card {
    background: linear-gradient(135deg, var(--main-white) 0%, rgba(255,251,232,0.9) 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--main-shadow);
    border: 2px solid var(--main-gold);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.daily-dream-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--main-red), var(--main-gold));
}

.daily-dream-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.daily-dream-header i {
    font-size: 2rem;
    color: var(--main-red);
}

.daily-dream-header h2 {
    color: var(--main-brown);
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 2px;
}

.daily-dream-content h3 {
    color: var(--main-red);
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.daily-dream-content p {
    color: var(--main-brown);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* 解梦小知识卡片样式 */
.dream-tips-section {
    margin: 40px 0;
}

.dream-tips-card {
    background: var(--main-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--main-shadow);
    border: 2px solid var(--main-gold);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.dream-tips-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--main-red), var(--main-gold));
}

.dream-tips-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.dream-tips-header i {
    font-size: 2rem;
    color: var(--main-red);
}

.dream-tips-header h2 {
    color: var(--main-brown);
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 2px;
}

.dream-tips-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dream-tip-item {
    background: rgba(255,251,232,0.5);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(230,194,139,0.3);
}

.dream-tip-item:hover {
    transform: translateX(5px);
    background: rgba(255,251,232,0.8);
    box-shadow: 0 5px 15px rgba(178,34,34,0.1);
}

.dream-tip-item i {
    font-size: 1.5rem;
    color: var(--main-red);
    flex-shrink: 0;
    transition: all 0.3s;
}

.dream-tip-item:hover i {
    transform: scale(1.2);
    color: var(--main-brown);
}

.dream-tip-item p {
    margin: 0;
    color: var(--main-brown);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 随机解梦和最新解梦卡片样式 */
.dream-card {
    background: var(--main-white);
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    transition: all 0.4s ease;
    border: 2px solid var(--main-gold);
    position: relative;
    overflow: hidden;
}

.dream-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--main-red), var(--main-gold));
    opacity: 0;
    transition: opacity 0.4s;
}

.dream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(178,34,34,0.15);
}

.dream-card:hover:before {
    opacity: 1;
}

.dream-card .card-title {
    color: var(--main-red);
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.dream-card .card-text {
    color: var(--main-brown);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .daily-dream-card,
    .dream-tips-card {
        padding: 20px;
    }
    
    .daily-dream-header h2,
    .dream-tips-header h2 {
        font-size: 1.5rem;
    }
    
    .daily-dream-content h3 {
        font-size: 1.3rem;
    }
    
    .daily-dream-content p,
    .dream-tip-item p,
    .dream-card .card-text {
        font-size: 1rem;
    }
    
    .dream-tips-content {
        grid-template-columns: 1fr;
    }
    
    .dream-tip-item {
        padding: 15px;
    }
    
    .dream-tip-item i {
        font-size: 1.3rem;
    }
}

/* ========== 分类页 category.php 专属样式 ========== */
.breadcrumb {
    background: #fffdfa;
    border-radius: 12px;
    border: 1px solid #e6c28b;
    font-family: 'Noto Serif SC', '宋体', serif;
    padding: 15px 25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(230,194,139,0.1);
}
.breadcrumb:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #b22222, #e6c28b);
    border-radius: 12px 12px 0 0;
}
.breadcrumb-item {
    font-size: 1.1rem;
    color: #8c1c13;
    position: relative;
    padding: 0 15px;
}
.breadcrumb-item:first-child {
    padding-left: 0;
}
.breadcrumb-item:not(:last-child):after {
    content: '❯';
    position: absolute;
    right: -5px;
    color: #e6c28b;
    font-size: 1rem;
}
.breadcrumb-item.active {
    color: #b22222;
    font-weight: bold;
}
.breadcrumb-item a {
    color: #8c1c13;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}
.breadcrumb-item a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #b22222;
    transition: all 0.3s;
}
.breadcrumb-item a:hover {
    color: #b22222;
}
.breadcrumb-item a:hover:after {
    width: 100%;
}

/* ========== 搜索页 search.php 专属样式 ========== */
body:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="%23fff" opacity="0.05"/></svg>') repeat;
    pointer-events: none;
    z-index: 1;
}
.result-category {
    color: #8c1c13;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 15px;
    background: #fffbe8;
    border-radius: 20px;
    border: 1px solid #e6c28b;
    transition: all 0.3s;
}
.result-category:hover {
    background: #e6c28b;
    color: #fff;
    transform: translateY(-2px);
}
.result-content {
    color: #4b2e0f;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
    padding: 20px;
    background: rgba(255,251,232,0.5);
    border-radius: 12px;
    border: 1px solid rgba(230,194,139,0.3);
}
.result-content:before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 3rem;
    color: rgba(230,194,139,0.3);
    font-family: 'Noto Serif SC', serif;
}
.result-content:after {
    content: '"';
    position: absolute;
    bottom: -30px;
    right: 10px;
    font-size: 3rem;
    color: rgba(230,194,139,0.3);
    font-family: 'Noto Serif SC', serif;
}
.result-content mark {
    background: linear-gradient(120deg, #e6c28b 0%, #e6c28b 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
    color: #8c1c13;
    padding: 0 2px;
    font-weight: bold;
}
.alert-info {
    background: #fffdfa;
    border: 2px solid #e6c28b;
    color: #8c1c13;
    border-radius: 18px;
    padding: 20px;
    position: relative;
    z-index: 2;
}
.alert-info h4 {
    color: #b22222;
    font-family: 'Noto Serif SC', '宋体', serif;
    letter-spacing: 2px;
}
.alert-info p {
    color: #4b2e0f;
    margin-top: 10px;
}
.search-stats {
    background: #fffdfa;
    border: 2px solid #e6c28b;
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.search-stats:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #b22222, #e6c28b);
}
.search-stats p {
    color: #8c1c13;
    font-size: 1.2rem;
    margin: 0;
    font-family: 'Noto Serif SC', '宋体', serif;
    letter-spacing: 1px;
}

/* ========== 热门页 hot.php 专属样式 ========== */
.hot-dreams .meta-info {
    color: #8c1c13;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* ========== 网站地图 sitemap.php 专属样式 ========== */
.sitemap-section {
    background: var(--main-white);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--main-shadow);
    border: 2px solid var(--main-gold);
    animation: fadeInUp 0.8s ease-out;
}

.sitemap-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--main-red), var(--main-gold));
}

.sitemap-section h2 {
    color: var(--main-brown);
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 2px;
}

.sitemap-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--main-red), var(--main-gold));
    transition: width 0.4s;
}

.sitemap-section:hover h2:after {
    width: 120px;
}

/* 主要页面网格样式 */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sitemap-card {
    background: rgba(255,251,232,0.5);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: var(--main-brown);
    transition: all 0.4s ease;
    border: 2px solid var(--main-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.sitemap-card:hover {
    transform: translateY(-5px);
    background: var(--main-white);
    box-shadow: 0 10px 25px rgba(178,34,34,0.15);
    color: var(--main-red);
}

.sitemap-card i {
    font-size: 2.5rem;
    color: var(--main-red);
    transition: all 0.4s;
}

.sitemap-card:hover i {
    transform: scale(1.2);
    color: var(--main-brown);
}

.sitemap-card span {
    font-size: 1.2rem;
    font-weight: 500;
}

/* 列表样式 */
.sitemap-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.sitemap-item {
    background: rgba(255,251,232,0.5);
    border-radius: 12px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--main-brown);
    transition: all 0.3s ease;
    border: 1px solid rgba(230,194,139,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.sitemap-item:hover {
    transform: translateX(5px);
    background: var(--main-white);
    box-shadow: 0 5px 15px rgba(178,34,34,0.1);
    color: var(--main-red);
}

.sitemap-item i {
    font-size: 1.5rem;
    color: var(--main-red);
    transition: all 0.3s;
    flex-shrink: 0;
}

.sitemap-item:hover i {
    transform: scale(1.2);
    color: var(--main-brown);
}

.sitemap-item span {
    font-size: 1.1rem;
    line-height: 1.4;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .sitemap-section {
        padding: 25px;
    }
    
    .sitemap-section h2 {
        font-size: 1.5rem;
    }
    
    .sitemap-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .sitemap-card {
        padding: 20px;
    }
    
    .sitemap-card i {
        font-size: 2rem;
    }
    
    .sitemap-card span {
        font-size: 1.1rem;
    }
    
    .sitemap-list {
        grid-template-columns: 1fr;
    }
    
    .sitemap-item {
        padding: 12px 15px;
    }
    
    .sitemap-item i {
        font-size: 1.3rem;
    }
    
    .sitemap-item span {
        font-size: 1rem;
    }
}

/* ========== 联系我们 contact.php 专属样式 ========== */
.contact-section {
    background: var(--main-white);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--main-shadow);
    border: 2px solid var(--main-gold);
    animation: fadeInUp 0.8s ease-out;
}

.contact-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--main-red), var(--main-gold));
}

.contact-section h2 {
    color: var(--main-brown);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.contact-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--main-red), var(--main-gold));
}

.contact-info {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255,251,232,0.5);
    border-radius: 15px;
    border: 1px solid rgba(230,194,139,0.3);
}

.contact-info p {
    color: var(--main-brown);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.contact-method {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: var(--main-white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px solid var(--main-gold);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-method:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(178,34,34,0.05), rgba(230,194,139,0.05));
    opacity: 0;
    transition: opacity 0.4s;
}

.contact-method:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(178,34,34,0.15);
}

.contact-method:hover:before {
    opacity: 1;
}

.contact-method i {
    font-size: 2.5rem;
    color: var(--main-red);
    margin-bottom: 20px;
    transition: all 0.4s;
}

.contact-method:hover i {
    transform: scale(1.2);
    color: var(--main-brown);
}

.contact-method h3 {
    color: var(--main-brown);
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.contact-method h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--main-gold);
    transition: width 0.4s;
}

.contact-method:hover h3:after {
    width: 60px;
}

.contact-method p {
    color: var(--main-brown);
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.contact-form {
    background: var(--main-white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(178,34,34,0.08);
    border: 2px solid var(--main-gold);
    animation: fadeInUp 1s ease-out;
}

.contact-form label {
    color: var(--main-brown);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: block;
}

.contact-form .form-control {
    border: 2px solid var(--main-gold);
    border-radius: 10px;
    padding: 15px;
    font-size: 1.1rem;
    color: var(--main-brown);
    background: var(--main-white);
    transition: all 0.3s;
}

.contact-form .form-control:focus {
    border-color: var(--main-red);
    box-shadow: 0 0 0 0.2rem rgba(178,34,34,0.15);
    transform: translateY(-2px);
}

.contact-form textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.btn-submit:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-submit:hover:before {
    left: 100%;
}

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

/* 响应式优化 */
@media (max-width: 768px) {
    .contact-section {
        padding: 20px;
    }
    
    .contact-method {
        min-width: 100%;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .contact-section h2 {
        font-size: 1.8rem;
    }
    
    .contact-method h3 {
        font-size: 1.2rem;
    }
    
    .contact-method p {
        font-size: 1rem;
    }
}

/* ========== 关于我们 about.php 专属样式 ========== */
.content-section {
    background: var(--main-white);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--main-shadow);
    border: 2px solid var(--main-gold);
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.4s ease;
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(178,34,34,0.15);
}

.content-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--main-red), var(--main-gold));
}

.content-section h2 {
    color: var(--main-brown);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 2px;
}

.content-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--main-red), var(--main-gold));
    transition: width 0.4s;
}

.content-section:hover h2:after {
    width: 120px;
}

.content-section p {
    color: var(--main-brown);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    position: relative;
    padding-left: 20px;
}

.content-section p:before {
    content: '❯';
    position: absolute;
    left: 0;
    color: var(--main-gold);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.content-section:hover p:before {
    color: var(--main-red);
    transform: translateX(5px);
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* 优势列表样式 */
.content-section p:nth-child(2) {
    font-weight: bold;
    color: var(--main-red);
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-align: center;
    padding: 15px;
    background: rgba(255,251,232,0.5);
    border-radius: 10px;
    border: 1px solid rgba(230,194,139,0.3);
}

.content-section p:nth-child(2):before {
    display: none;
}

/* 使命列表样式 */
.content-section p:nth-child(3) {
    font-weight: bold;
    color: var(--main-brown);
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-align: center;
    padding: 15px;
    background: rgba(255,251,232,0.5);
    border-radius: 10px;
    border: 1px solid rgba(230,194,139,0.3);
}

.content-section p:nth-child(3):before {
    display: none;
}

/* 联系方式样式 */
.content-section:last-child {
    background: linear-gradient(45deg, rgba(255,251,232,0.8), rgba(255,255,255,0.9));
}

.content-section:last-child p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--main-brown);
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.content-section:last-child p:hover {
    background: rgba(230,194,139,0.1);
    transform: translateX(5px);
}

.content-section:last-child p:before {
    display: none;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .content-section {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .content-section p {
        font-size: 1rem;
        padding-left: 15px;
    }
    
    .content-section p:nth-child(2),
    .content-section p:nth-child(3),
    .content-section:last-child p {
        font-size: 1.1rem;
    }
}

/* 优势项目样式 */
.advantage-item {
    background: var(--main-white);
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid var(--main-gold);
    position: relative;
    overflow: hidden;
}

.advantage-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--main-red), var(--main-gold));
    opacity: 0;
    transition: opacity 0.4s;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(178,34,34,0.15);
}

.advantage-item:hover:before {
    opacity: 1;
}

.advantage-item i {
    font-size: 2.5rem;
    color: var(--main-red);
    margin-bottom: 20px;
    transition: all 0.4s;
}

.advantage-item:hover i {
    transform: scale(1.2);
    color: var(--main-brown);
}

.advantage-item h3 {
    color: var(--main-brown);
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.advantage-item h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--main-gold);
    transition: width 0.4s;
}

.advantage-item:hover h3:after {
    width: 60px;
}

.advantage-item p {
    color: var(--main-brown);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* 使命列表样式 */
.mission-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.mission-item {
    background: rgba(255,251,232,0.5);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(230,194,139,0.3);
}

.mission-item:hover {
    transform: translateX(5px);
    background: rgba(255,251,232,0.8);
}

.mission-item i {
    font-size: 1.8rem;
    color: var(--main-red);
    flex-shrink: 0;
    transition: all 0.3s;
}

.mission-item:hover i {
    transform: scale(1.2);
    color: var(--main-brown);
}

.mission-item p {
    margin: 0;
    color: var(--main-brown);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 联系信息样式 */
.contact-info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-info-item {
    background: rgba(255,251,232,0.5);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(230,194,139,0.3);
}

.contact-info-item:hover {
    transform: translateX(5px);
    background: rgba(255,251,232,0.8);
}

.contact-info-item i {
    font-size: 1.8rem;
    color: var(--main-red);
    flex-shrink: 0;
    transition: all 0.3s;
}

.contact-info-item:hover i {
    transform: scale(1.2);
    color: var(--main-brown);
}

.contact-info-item p {
    margin: 0;
    color: var(--main-brown);
    font-size: 1.1rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .mission-list,
    .contact-info-list {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        padding: 20px;
    }
    
    .advantage-item i {
        font-size: 2rem;
    }
    
    .advantage-item h3 {
        font-size: 1.2rem;
    }
    
    .advantage-item p {
        font-size: 1rem;
    }
    
    .mission-item,
    .contact-info-item {
        padding: 15px;
    }
    
    .mission-item i,
    .contact-info-item i {
        font-size: 1.5rem;
    }
    
    .mission-item p,
    .contact-info-item p {
        font-size: 1rem;
    }
} 