/* 76betbet 模板完善优化 CSS */

/* ==================== 全局样式优化 ==================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Header 优化 ==================== */

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo 优化 */
.header__logo {
    display: flex;
    align-items: center;
}

.header__logo img {
    max-width: 150px;
    height: auto;
    display: block;
}

/* ==================== 导航菜单优化 ==================== */

.header-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-menu ul {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.header-menu__item {
    margin: 0;
}

.header-menu__item-link {
    display: block;
    padding: 10px 16px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-menu__item-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ==================== 汉堡菜单优化 ==================== */

.header-toggler {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.header-toggler__icon {
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-toggler__line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==================== 登录/注册按钮优化 ==================== */

.header-info {
    display: flex;
    gap: 10px;
}

.header-info__log,
.header-info__reg {
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-info__log {
    background: white;
    color: #667eea;
    border: 2px solid white;
}

.header-info__log:hover {
    background: transparent;
    color: white;
}

.header-info__reg {
    background: #ffd700;
    color: #333;
    border: 2px solid #ffd700;
}

.header-info__reg:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* ==================== 主内容区域优化 ==================== */

.main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.main-wrap {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ==================== 标题优化 ==================== */

.main-wrap__title {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 4px solid #3498db;
    line-height: 1.4;
    font-weight: 700;
}

.main-wrap__subtitle {
    font-size: 1.5em;
    color: #e74c3c;
    margin: 40px 0 20px;
    font-weight: 700;
    line-height: 1.5;
    padding: 20px 0 15px;
    border-top: 2px solid #f39c12;
}

.main-wrap__subtitle:first-of-type {
    border-top: none;
    margin-top: 30px;
}

.main-wrap__subtitle p {
    font-size: 1rem;
    color: #555;
    line-height: 1.9;
    margin-top: 20px;
    font-weight: 400;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6f0 100%);
    border-left: 4px solid #ff6b6b;
    border-radius: 5px;
}

/* ==================== 按钮优化 ==================== */

.main-wrap__link {
    text-align: center;
    margin: 45px 0;
    padding: 20px 0;
}

.main-wrap__link__btn {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-wrap__link__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
}

/* ==================== 图片优化 ==================== */

.main-wrap__img {
    margin: 35px 0;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
}

.main-wrap__img img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.main-wrap__img img:hover {
    transform: scale(1.02);
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 1024px) {
    .header__logo img {
        max-width: 130px;
    }
    
    .header-menu__item-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .main-wrap {
        padding: 30px;
    }
    
    .main-wrap__title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .header-toggler {
        display: block;
    }
    
    .header__logo img {
        max-width: 110px;
    }
    
    .header-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .header-menu.active {
        left: 0;
    }
    
    .header-menu ul {
        flex-direction: column;
        gap: 0;
    }
    
    .header-menu__item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header-menu__item-link {
        padding: 15px 20px;
        display: block;
        font-size: 16px;
    }
    
    .header-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .header-info__log,
    .header-info__reg {
        padding: 8px 20px;
        font-size: 13px;
        text-align: center;
    }
    
    .main-wrap {
        padding: 30px 20px;
        border-radius: 10px;
    }
    
    .main-wrap__title {
        font-size: 1.6em;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .main-wrap__subtitle {
        font-size: 1.3em;
        margin: 35px 0 15px;
        padding: 15px 0 12px;
    }
    
    .main-wrap__subtitle p {
        font-size: 0.95rem;
        padding: 12px 15px;
        margin-top: 15px;
    }
    
    .main-wrap__link {
        margin: 35px 0;
        padding: 15px 0;
    }
    
    .main-wrap__link__btn {
        padding: 15px 40px;
        font-size: 16px;
    }
    
    .main-wrap__img {
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .header__logo img {
        max-width: 90px;
    }
    
    .header-info {
        display: none;
    }
    
    .main {
        padding: 20px 0;
    }
    
    .main-wrap {
        padding: 25px 15px;
    }
    
    .main-wrap__title {
        font-size: 1.4em;
        margin-bottom: 20px;
    }
    
    .main-wrap__subtitle {
        font-size: 1.2em;
        margin: 30px 0 12px;
        padding: 12px 0 10px;
    }
    
    .main-wrap__subtitle p {
        font-size: 0.9rem;
        padding: 10px 12px;
        margin-top: 12px;
    }
    
    .main-wrap__link {
        margin: 30px 0;
        padding: 12px 0;
    }
    
    .main-wrap__link__btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .main-wrap__img {
        margin: 25px 0;
    }
}

/* ==================== 移动端菜单覆盖层 ==================== */

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ==================== 滚动条优化 ==================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ==================== 文本选择优化 ==================== */

::selection {
    background: #667eea;
    color: white;
}

::-moz-selection {
    background: #667eea;
    color: white;
}

/* ==================== 链接优化 ==================== */

a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
}

/* ==================== 加载动画优化 ==================== */

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

.main-wrap {
    animation: fadeIn 0.6s ease;
}

/* ==================== 打印样式 ==================== */

@media print {
    .header-toggler,
    .header-info,
    .main-wrap__link {
        display: none;
    }
    
    .main-wrap {
        box-shadow: none;
        padding: 0;
    }
}
