/* 头部和底部样式文件 - header-footer.css */

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    z-index: 1000;
    height: 70px;
}

.navbar {
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo样式 */
.navbar-brand {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
    display: none;
}

/* 主导航菜单 */
.navbar-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 15px 10px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-link:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.nav-link i {
    margin-right: 8px;
    font-size: 16px;
}

/* 语言切换 */
.language-switch {
    margin-left: auto;
}

.form-select {
    background: #2a2d3a;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
}

.form-select:focus {
    outline: none;
    border-color: #ffd700;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #ffd700;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #0f1419;
    border-top: 1px solid #333;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 999;
    max-height: calc(100vh - 10px);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-nav-section h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: 10px;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 12px 15px;
    background: #2a2d3a;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-list a:hover {
    background: #ffd700;
    color: #000;
}

.mobile-nav-list a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 客服悬浮按钮 */
.floating-customer-service {
    position: fixed;
    bottom: 180px;
    right: 30px;
    z-index: 1000;
}

.cs-main-btn {
    position: relative;
    background: #ffd700;
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: bold;
}

.cs-main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.cs-main-btn i {
    font-size: 20px;
    margin-bottom: 2px;
}

.cs-text {
    font-size: 10px;
    line-height: 1;
}

.cs-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.cs-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #2a2d3a;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    min-width: 150px;
}

.floating-customer-service:hover .cs-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cs-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
    border-radius: 8px;
    margin: 5px;
}

.cs-option:hover {
    background: #ffd700;
    color: #000;
}

.cs-option i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 底部样式 */
.footer {
    background: #1a1f2e;
    border-top: 1px solid #333;
    padding: 50px 0 20px;
    margin-top: 50px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* 公司信息区域 */
.company-info {
    padding-right: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

.footer-logo-text {
    color: #ffd700;
    font-size: 24px;
    font-weight: bold;
    display: none;
}

.company-description {
    color: #b8bcc8;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.company-certificates {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.certificate {
    height: 40px;
    width: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.certificate:hover {
    transform: scale(1.05);
}

/* 各个部分的标题 */
.footer-title {
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 8px;
    display: inline-block;
}

/* 快速链接和游戏分类 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b8bcc8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

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

/* 客服信息 */
/* .contact-info {
    margin-bottom: 25px;
} */

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #b8bcc8;
    font-size: 14px;
}

.contact-item i {
    margin-right: 10px;
    width: 20px;
    color: #ffd700;
    text-align: center;
}

/* 联系信息链接样式 */
.footer-phone,
.footer-email,
.footer-address {
    color: #b8bcc8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-phone:hover,
.footer-email:hover {
    color: #ffd700;
}

/* 社交链接 */
.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link.qq {
    background: #12b7f5;
}

.social-link.wechat {
    background: #07c160;
}

.social-link.telegram {
    background: #0088cc;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 支付方式 */
.payment-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.payment-icon {
    height: 30px;
    width: auto;
    background: #fff;
    padding: 5px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.payment-icon:hover {
    transform: scale(1.1);
}

.security-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.security-badge {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
}

.security-badge:hover {
    transform: scale(1.05);
}

/* 免责声明 */
.footer-disclaimer {
    background: #151922;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.disclaimer-content h5 {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

.disclaimer-content p {
    color: #b8bcc8;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 20px;
}

.responsible-gaming {
    display: flex;
    gap: 15px;
    align-items: center;
}

.age-restriction,
.responsible-icon {
    height: 40px;
    width: auto;
}

/* 版权区域 */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 25px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.legal-link {
    color: #b8bcc8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #ffd700;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(45deg, #ffd700, #f39c12);
    color: #1a1a2e;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.back-to-top.show {
    display: flex;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 30px;
    }
    
    .payment-methods {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar .container {
        justify-content: space-between;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .language-switch {
        margin-left: 0;
        margin-right: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-legal {
        gap: 15px;
    }
    
    .floating-customer-service {
        bottom: 80px;
        right: 20px;
    }
    
    .cs-main-btn {
        width: 55px;
        height: 55px;
    }
    
    .cs-options {
        bottom: 65px;
        right: 0;
        min-width: 140px;
    }
    
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 16px;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-disclaimer {
        padding: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .payment-icons,
    .security-badges {
        justify-content: center;
    }
}