/* ============================================
   DOTA2畅聊版 - 公共样式
   包含：导航栏、按钮、页脚等通用组件
   ============================================ */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   导航栏
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.navbar-logo span {
    font-size: 28px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: white;
    background: none;
    font-weight: 600;
}

/* 帮助下拉菜单 */
.nav-dropdown-menu {
    position: relative;
}

.help-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    min-width: 140px;
    padding: 6px 0;
    margin-top: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s;
}

.help-submenu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.help-submenu a {
    display: block;
    padding: 8px 16px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.15s;
    text-decoration: none;
}

.help-submenu a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 登录按钮 */
.nav-login-btn {
    background: white;
    color: #667eea;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* 用户下拉 */
.nav-user {
    position: relative;
    display: none;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 6px 14px 6px 8px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-user-trigger:hover {
    background: rgba(255,255,255,0.25);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.5);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 8px 0;
    border: 1px solid rgba(0,0,0,0.06);
}

.nav-dropdown.open {
    display: block;
}

.nav-dropdown-info {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.nav-dropdown-info .dd-name {
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

.nav-dropdown-info .dd-phone {
    color: #999;
    font-size: 12px;
    margin-top: 2px;
}

.nav-dropdown-info .dd-quota {
    color: #667eea;
    font-size: 12px;
    margin-top: 4px;
}

.nav-dropdown a,
.nav-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.nav-dropdown a:hover,
.nav-dropdown button:hover {
    background: #f5f5f5;
    color: #222;
}

.nav-dropdown .logout-btn {
    color: #e53e3e;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}

/* 移动端导航 */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    .navbar-nav {
        display: none;
    }
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

/* ============================================
   通用按钮
   ============================================ */
.btn-primary {
    background: white;
    color: #667eea;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 12px 32px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-outline:hover {
    background: white;
    color: #667eea;
}

/* ============================================
   通用容器
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #667eea;
}
