/* ========== 顶部装饰条 ========== */
.head1{
    height: 40px;
    background: url(/fo/image/hdd.png) repeat-x;
    position: relative;
    z-index: 1;
}

/* ========== 导航栏整体 - 统一棕色背景 ========== */
.am-header {
    background: #A0522D;
    box-shadow: 0 3px 15px rgba(139, 69, 19, 0.4);
    border-bottom: 3px solid #CD853F;
    position: relative;
    z-index: 10;
    min-height: 70px;
    display: flex;
    align-items: center;
}

/* ========== Logo区域 ========== */
.nav-logo {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    height: 50px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ========== 导航菜单容器 ========== */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    min-height: 70px;
    gap: 8px;
}

/* ========== 导航菜单 ========== */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
    margin: 0 1px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    color: #FFF8DC;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.nav-menu a:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.nav-menu a i {
    font-size: 16px;
    color: #FFD700;
    transition: all 0.3s ease;
}

.nav-menu a:hover i {
    transform: scale(1.2);
    color: #FFF;
}

/* ========== 登录注册 ========== */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    height: 100%;
}

.nav-auth a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    color: #FFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: auto !important;
    cursor: pointer !important;
    height: 42px;
    line-height: 1;
}

/* 登录按钮 */
.nav-auth a[href*="login"] {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
}

.nav-auth a[href*="login"]:hover {
    background: #FFD700;
    color: #8B4513;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

/* 注册按钮 */
.nav-auth a[href*="register"] {
    background: linear-gradient(135deg, #FFD700 0%, #F4A460 100%);
    border: 2px solid #FFD700;
    color: #8B4513;
}

.nav-auth a[href*="register"]:hover {
    background: linear-gradient(135deg, #FFF 0%, #FFD700 100%);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

/* 退出按钮 */
.nav-auth a[href*="logout"] {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #FFF;
}

.nav-auth a[href*="logout"]:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #FF6B6B;
    color: #FF6B6B;
}

/* 会员中心 */
.nav-auth a[href*="member/"]:not([href*="login"]):not([href*="register"]):not([href*="logout"]) {
    background: rgba(255, 215, 0, 0.25);
    border: 2px solid #FFD700;
    color: #FFD700;
}

.nav-auth a[href*="member/"]:not([href*="login"]):not([href*="register"]):not([href*="logout"]):hover {
    background: #FFD700;
    color: #8B4513;
}

/* ========== 汉堡菜单按钮 ========== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: 10px;
    flex-shrink: 0;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: #FFD700;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ========== 响应式适配 ========== */

/* 平板端 (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .am-header, .nav-container {
        min-height: 65px;
    }
    .nav-menu a {
        padding: 8px 10px;
        font-size: 16px;
    }
    .nav-logo img {
        height: 44px;
    }
    .nav-auth a {
        padding: 8px 16px;
        font-size: 14px;
        height: 38px;
    }
}

/* 手机端 (768px以下) */
@media (max-width: 768px) {
    .am-header, .nav-container {
        min-height: 60px;
        gap: 8px;
    }
    
    .nav-logo img {
        height: 40px;
    }
    
    .nav-menu,
    .nav-auth {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #8B4513;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        z-index: 999;
        flex-wrap: nowrap;
    }
    
    .nav-menu.active {
        display: flex;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .nav-menu li {
        margin: 5px 0;
        width: 80%;
    }
    
    .nav-menu a {
        padding: 14px 20px;
        font-size: 18px;
        font-weight: 700;
        border-radius: 10px;
        justify-content: center;
        gap: 10px;
        border: 1px solid rgba(205, 133, 63, 0.3);
    }
    
    .nav-menu a:hover {
        background: rgba(255, 215, 0, 0.2);
        transform: none;
    }
    
    .nav-menu a i {
        font-size: 18px;
    }
    
    .nav-auth-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 80%;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(205, 133, 63, 0.3);
    }
    
    .nav-auth-mobile a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        font-size: 16px;
        font-weight: 700;
        border-radius: 25px;
        text-decoration: none;
        color: #FFF;
        height: auto;
    }
    
    .nav-auth-mobile a[href*="login"] {
        border: 2px solid #FFD700;
        color: #FFD700;
    }
    
    .nav-auth-mobile a[href*="register"] {
        background: linear-gradient(135deg, #FFD700 0%, #F4A460 100%);
        color: #8B4513;
    }
}

/* 超小屏幕 (480px以下) */
@media (max-width: 480px) {
    .nav-logo img {
        height: 36px;
    }
    .nav-menu a {
        font-size: 16px;
        padding: 12px 15px;
    }
}
/* ========== 底部整体样式 ========== */
.footer {
    background: linear-gradient(135deg, #3E2723 0%, #5D4037 50%, #4E342E 100%);
    color: #FFF8DC;
    padding: 40px 0 0;
    border-top: 3px solid #F4A460;
    font-family: "Microsoft YaHei", sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 0 15px 30px;
}

.footer-section h3 {
    color: #FFD700;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(244, 164, 96, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h3 i {
    font-size: 20px;
    color: #F4A460;
}

.footer-section p {
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #D7CCC8;
}

.footer-section p i {
    color: #F4A460;
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

/* 底部链接样式 */
.footer-section a {
    color: #D7CCC8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1;
}

.footer-section a i {
    color: #F4A460;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #FFD700;
    transform: translateX(5px);
}

.footer-section a:hover i {
    color: #FFD700;
    transform: scale(1.2);
}

/* 底部版权 */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(244, 164, 96, 0.2);
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 14px;
    color: #BCAAA4;
}

/* ========== 返回顶部按钮样式 ========== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 50px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
    z-index: 9999;
    border: 2px solid #F4A460;
    font-size: 20px;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.5);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 20px;
    font-weight: bold;
}

/* ========== 底部响应式适配 ========== */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .footer-section {
        min-width: 100%;
        margin: 0 0 25px;
    }
    
    .footer-section h3 {
        font-size: 16px;
    }
    
    .footer-section p {
        font-size: 14px;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 30px;
        width: 42px;
        height: 42px;
    }
    
    .back-to-top i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 25px 0 0;
    }
    
    .footer-section h3 {
        font-size: 15px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}