/* style.css - 更新后的样式文件 */

/* 基础变量 */
:root {
    --color-rice: #f5f0e6;
    --color-bean: #a8c3b9;
    --color-ink: #232323;
    --color-bronze: #c2a36c;
    --color-trans: rgba(255, 255, 255, 0.7);
    --color-red: #e74c3c;
    --color-green: #2ecc71;
    --color-light: #888;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "仿宋", "宋体", serif;
}

body {
    background-color: var(--color-rice);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23a8c3b9' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: var(--color-ink);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== 两行导航栏结构 ====== */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-trans);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23c2a36c' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    border-bottom: 1px solid rgba(168, 195, 185, 0.3);
    height: 100px; /* 固定高度，两行 */
}

/* 主要导航内容区域 */
.navbar-content {
    display: flex;
    height: 100%;
    position: relative;
}

/* 左边大LOGO - 占据整个导航栏高度 */
.navbar-logo {
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%; /* 占据整个导航栏高度 */
    display: flex;
    align-items: center;
    z-index: 1001;
}

.navbar-logo a {
    font-family: "书法字体", serif;
    font-size: 2.8rem; /* 放大LOGO */
    color: var(--color-ink);
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.navbar-logo span {
    color: var(--color-bean);
}

/* 右边区域 - 上下两部分 */
.navbar-right {
    flex: 1;
    margin-left: 280px; /* 给左边Logo留出空间 */
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 第一行：顶部链接行 */
.navbar-top-row {
    height: 40px; /* 第一行高度 */
    display: flex;
    justify-content: flex-end; /* 内容靠右 */
    align-items: center;
    padding-right: 20px;
    padding-top: 5px;
}

/* 右上角链接区域 - 关于我们、联系我们、登录注册 */
.navbar-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-links {
    display: flex;
    gap: 15px;
}

.top-links a {
    color: var(--color-ink);
    font-size: 0.85rem; /* 缩小字体 */
    transition: color 0.3s ease;
}

.top-links a:hover {
    color: var(--color-bean);
}

/* 用户状态区域 */
.user-status {
    display: flex;
    align-items: center;
}

/* 登录前状态 - 登录|注册 */
.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-links a {
    color: var(--color-ink);
    font-size: 0.85rem; /* 缩小字体 */
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--color-bean);
}

.separator {
    color: var(--color-light);
    font-size: 0.8rem;
}

/* 登录后状态 - 用户头像和用户名 */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 28px; /* 缩小头像 */
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-bean);
}

.username {
    color: var(--color-ink);
    font-size: 0.85rem; /* 缩小字体 */
    font-weight: 500;
}

/* 第二行：主菜单行 */
.navbar-bottom-row {
    height: 60px; /* 第二行高度 */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 内容靠右 */
    padding-right: 20px;
    border-top: 1px solid rgba(168, 195, 185, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-menu li a {
    font-size: 1.1rem;
    color: var(--color-ink);
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--color-bean);
}

.nav-menu li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-bronze);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* 移动端菜单切换按钮 */
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
}

/* 声音控制样式 */
.sound-control {
    position: fixed;
    bottom: 30px;
    right: 80px;
    background-color: var(--color-trans);
    border: 1px solid var(--color-bean);
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 998;
}

.sound-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-ink);
    transition: all 0.3s ease;
}

.sound-btn:hover {
    color: var(--color-bean);
}

.sound-select {
    border: 1px solid var(--color-bean);
    border-radius: 4px;
    padding: 5px;
    background-color: #fff;
    color: var(--color-ink);
    outline: none;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--color-bean);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* 通用标题样式 */
.title {
    font-family: "书法字体", "楷体", serif;
    color: var(--color-ink);
    text-align: center;
    margin: 40px 0;
    font-size: 2.5rem;
    position: relative;
}

.title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--color-bronze);
    margin: 10px auto;
}

.sub-title {
    font-size: 1.5rem;
    color: var(--color-ink);
    margin: 20px 0;
    border-left: 4px solid var(--color-bean);
    padding-left: 15px;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-bean {
    background-color: var(--color-bean);
    color: #fff;
}

.btn-bean:hover {
    background-color: #8ca89e;
}

.btn-bronze {
    background-color: var(--color-bronze);
    color: #fff;
}

.btn-bronze:hover {
    background-color: #a88b54;
}

/* 更新后的页脚样式 - 单行布局 */
.footer {
    width: 100%;
    padding: 40px 0 30px;
    background-color: var(--color-ink);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-bean);
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-bronze);
}

/* 服务支持样式 */
.support-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-content a {
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.support-content a:hover {
    color: var(--color-bean);
}

.support-content .separator {
    color: #666;
    font-size: 0.9rem;
}

/* 二维码样式 */
.qr-text {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
    max-width: 250px;
}

/* 社交图标样式 */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-item {
    width: 36px;
    height: 36px;
}

.social-item a {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-item a:hover {
    background-color: var(--color-bean);
    transform: translateY(-3px);
}

.social-icon {
    font-size: 1rem;
    color: #fff;
}

/* 页脚底部信息 */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom p {
    margin: 5px 0;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .footer-row {
        gap: 20px;
    }
    
    .footer-col {
        min-width: 45%;
    }
}

@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-col {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .support-content {
        justify-content: center;
    }
    
    .qr-text {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}