/* 公共基础样式 - 纪念网站主题 */

/* 引入本地字体 */
@import url('../fonts/noto-serif-sc-local.css');

:root {
    /* 纪念主题色彩 */
    --memorial-primary: #8B7D6B;
    --memorial-secondary: #F5F0E8;
    --memorial-accent: #A67C52;
    --memorial-dark: #433E38;
    --memorial-bg: #F9F7F4;
    --memorial-white: #FFFFFF;
    --memorial-text: #333333;
    --memorial-text-light: #666666;
    --memorial-border: rgba(139, 125, 107, 0.2);
    --memorial-shadow: rgba(67, 62, 56, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Noto Serif SC', serif; */
    background-color: var(--memorial-bg);
    color: var(--memorial-text);
    scroll-behavior: smooth;
}

/* 优雅的滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--memorial-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--memorial-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--memorial-accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* 顶部横幅 - 纪念主题 */
.support-ukraine {
    background: linear-gradient(135deg, var(--memorial-primary) 0%, var(--memorial-accent) 100%);
    color: var(--memorial-white);
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 8px var(--memorial-shadow);
}

.support-ukraine .container {
    max-width: 1200px;
}

.support-ukraine a {
    color: var(--memorial-secondary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.support-ukraine a:hover {
    border-bottom-color: var(--memorial-secondary);
}

/* ========== 全新导航栏设计 ========== */

/* 网站头部容器 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #F5F0E9;
    box-shadow: 0 4px 20px rgba(139, 125, 107, 0.15);
}

/* 顶部栏 */
.top-bar {
    background: #a67c52;
    border-bottom: 1px solid rgba(139, 125, 107, 0.12);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.welcome-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.welcome-text i {
    color: #fff;
    font-size: 16px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.top-link:hover {
    color: #A67C52;
    background: rgba(166, 124, 82, 0.08);
}

.top-link i {
    font-size: 16px;
}

.top-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

/* 顶部栏按钮样式 - 使用更高优先级的选择器 */
.top-bar .top-btn.btn-login {
    background: white !important;
    color: #A67C52 !important;
    border: 2px solid #A67C52 !important;
    box-shadow: 0 2px 8px rgba(166, 124, 82, 0.15) !important;
    width: auto !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    margin-top: 0 !important;
}

.top-bar .top-btn.btn-login:hover {
    background: #A67C52 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(166, 124, 82, 0.3) !important;
}

.top-bar .top-btn.btn-register {
    background: linear-gradient(135deg, #A67C52, #8B7D6B) !important;
    color: white !important;
    border: 2px solid transparent !important;
    box-shadow: 0 2px 8px rgba(166, 124, 82, 0.25) !important;
    width: auto !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    margin-top: 0 !important;
}

.top-bar .top-btn.btn-register:hover {
    background: linear-gradient(135deg, #8B7D6B, #6B5D4B) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(166, 124, 82, 0.4) !important;
}

/* 保留通用样式以兼容其他地方 */
.btn-login {
    background: white;
    color: #A67C52;
    border: 2px solid #A67C52;
    box-shadow: 0 2px 8px rgba(166, 124, 82, 0.15);
}

.btn-login:hover {
    background: #A67C52;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(166, 124, 82, 0.3);
}

.btn-register {
    background: linear-gradient(135deg, #A67C52, #8B7D6B);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(166, 124, 82, 0.25);
}

.btn-register:hover {
    background: linear-gradient(135deg, #8B7D6B, #6B5D4B);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(166, 124, 82, 0.4);
}

/* 主导航栏 - 100%宽背景条 */
.main-nav {
    width: 100%;
    background: #F5F0E9;
    padding: 0;
    border-bottom: 2px solid rgba(139, 125, 107, 0.15);
    box-shadow: 0 2px 10px rgba(139, 125, 107, 0.08);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 75px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
}

/* 导航菜单 - 横向排列 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    padding: 28px 30px;
    text-decoration: none;
    color: #433E38;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #A67C52, #8B7D6B);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    color: #A67C52;
    background: rgba(166, 124, 82, 0.05);
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item.active {
    color: #A67C52;
    font-weight: 600;
    background: rgba(166, 124, 82, 0.08);
    border-bottom-color: #A67C52;
}

.nav-item.active::before {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-toggle {
    background: linear-gradient(135deg, #A67C52, #8B7D6B);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(166, 124, 82, 0.3);
    margin: 15px 0;
}

.mobile-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(166, 124, 82, 0.4);
}

/* 移动端侧边栏 */
.offcanvas {
    max-width: 320px;
    background: linear-gradient(180deg, #F5F0E9 0%, #EDE7DD 100%);
    box-shadow: -8px 0 30px rgba(139, 125, 107, 0.25);
}

.offcanvas-header {
    background: linear-gradient(135deg, #A67C52, #8B7D6B);
    color: white;
    padding: 25px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.offcanvas-title {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1.5px;
}

.offcanvas-body {
    padding: 25px 20px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: #433E38;
    font-weight: 500;
    font-size: 15.5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-item i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.mobile-nav-item:hover {
    background: white;
    border-left-color: #A67C52;
    color: #A67C52;
    transform: translateX(5px);
    box-shadow: 0 3px 12px rgba(166, 124, 82, 0.2);
}

.mobile-nav-item:hover i {
    transform: scale(1.1);
}

.mobile-nav-item.active {
    background: linear-gradient(90deg, rgba(166, 124, 82, 0.15), rgba(255, 255, 255, 0.7));
    color: #A67C52;
    border-left-color: #A67C52;
    font-weight: 600;
}

.mobile-nav-item.active i {
    color: #A67C52;
}

.mobile-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 125, 107, 0.3), transparent);
    margin: 15px 0;
}

/* 导航栏响应式优化 */
@media (max-width: 1400px) {
    .nav-item {
        padding: 28px 25px;
        font-size: 15px;
    }
}

@media (max-width: 1200px) {
    .nav-item {
        padding: 25px 20px;
        font-size: 14.5px;
    }

    .logo-img {
        height: 70px;
    }
}

@media (max-width: 992px) {
    .nav-item {
        padding: 22px 16px;
        font-size: 14px;
    }

    .logo-img {
        height: 65px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .logo-img {
        height: 60px;
    }

    .nav-menu {
        display: none;
    }

    /* 手机版 LOGO 居中显示 */
    .nav-wrapper {
        justify-content: center;
        position: relative;
    }

    .mobile-toggle {
        position: absolute;
        right: 0;
        top: 30%;
        transform: translateY(-50%);
    }
}

/* 按钮通用样式 - 纪念主题 */
.btn {
    background: linear-gradient(135deg, var(--memorial-accent), var(--memorial-primary));
    color: var(--memorial-white);
    border: none;
    padding: 13px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(166, 124, 82, 0.3);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(166, 124, 82, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn i {
    font-size: 18px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--memorial-accent);
    color: var(--memorial-accent);
    box-shadow: 0 2px 8px rgba(166, 124, 82, 0.15);
}

.btn-outline:hover {
    background: var(--memorial-accent);
    color: var(--memorial-white);
    box-shadow: 0 4px 15px rgba(166, 124, 82, 0.3);
}

/* 页脚 - 纪念主题 */
.footer {
    background: linear-gradient(180deg, var(--memorial-dark) 0%, #2d2822 100%);
    color: var(--memorial-secondary);
    padding: 40px 0 25px;
    box-shadow: 0 -4px 20px var(--memorial-shadow);
}

.footer .row {
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--memorial-secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(245, 240, 232, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--memorial-accent);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 24px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(166, 124, 82, 0.2);
    border-radius: 50%;
    color: var(--memorial-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(166, 124, 82, 0.3);
}

.social-icons a:hover {
    background: var(--memorial-accent);
    color: var(--memorial-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(166, 124, 82, 0.4);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(166, 124, 82, 0.3);
    color: rgba(245, 240, 232, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
}

.copyright p {
    margin: 5px 0;
}

/* 手机端优化 */
@media (max-width: 768px) {
    .footer {
        padding: 10px 0;
    }

    .footer .row {
        margin-bottom: 30px;
    }

    .footer-column {
        margin-bottom: 30px;
    }

    .footer-column h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .social-icons {
        gap: 12px;
        margin-top: 18px;
        justify-content: center;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .copyright {
        padding-top: 0;
        font-size: 0.85rem;
        border-top: none;
    }

    .copyright-text {
        margin-bottom: 8px;
    }

    .copyright-links {
        margin-top: 8px;
    }
}

/* 手机版底部菜单 */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    padding: 5px 15px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.mobile-nav-btn i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.mobile-nav-btn span {
    font-size: 11px;
    white-space: nowrap;
}

.mobile-nav-btn.active {
    color: #A67C52;
}

.mobile-nav-btn.active i {
    color: #A67C52;
    transform: scale(1.1);
}

.mobile-nav-btn:active {
    opacity: 0.7;
}

/* 为底部菜单留出空间，避免内容被遮挡 */
@media (max-width: 768px) {
    .main-content {
        /* padding-bottom: 60px; */
    }
}

/* 通用卡片样式 */
.card-memorial {
    background: var(--memorial-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--memorial-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--memorial-border);
}

.card-memorial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(139, 125, 107, 0.2);
}

/* 文本阴影效果 */
.text-shadow {
    text-shadow: 0 2px 8px rgba(67, 62, 56, 0.2);
}

/* 渐变背景 */
.bg-memorial-gradient {
    background: linear-gradient(135deg, var(--memorial-primary), var(--memorial-accent));
}

/* 分隔线 */
.divider-memorial {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--memorial-accent), transparent);
    margin: 30px 0;
}


