/*
 * Frontend layout global styles (extracted from layout.html)
 */
/* ============================================================
 * 全局主题变量
 * 主站主题色为 indigo 系，与首页 --c-brand、认证页 --primary 保持一致；
 * 深色模式接入点：后续可通过 [data-theme="dark"] 覆盖。
 * ============================================================ */
:root {
    /* 主色系（indigo，与首页 --c-brand、认证页 --primary 统一） */
    --color-primary: #6366F1;
    --color-primary-dark: #4F46E5;
    --color-primary-deep: #4338CA;
    --color-primary-grad: #818CF8;
    --color-primary-grad-end: #A78BFA;
    --color-accent: #818CF8;

    /* 文字色 */
    --color-text: #333;
    --color-text-secondary: #666;
    --color-text-muted: #999;

    /* 背景与边框 */
    --color-white: #FFF;
    --color-bg: #F5F7FA;
    --color-border: #EAEAEA;

    /* 状态色 */
    --color-success: #28A745;
    --color-warning: #FFC107;
    --color-danger: #DC3545;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(100, 100, 100, 0.1);
}

/* 顶部导航栏 */
.header-top {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.header-links {
    display: flex;
    align-items: center;
}

.header-links a {
    color: var(--color-text);
    text-decoration: none;
    margin-right: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.header-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-links a:hover {
    color: var(--color-primary);
}

.header-links a:hover::after {
    width: 100%;
}

.header-links a.active {
    color: var(--color-primary);
}

.header-links a.active::after {
    width: 100%;
}

/* 用户链接 */
.user-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-top .user-links {
    gap: 15px;
}

/* 登录注册按钮容器 */
.auth-links {
    display: flex;
    align-items: center;
}

/* 登录注册按钮 - 取消特殊样式，与其他导航链接保持一致 */
.header-top .user-links .auth-links .login-btn,
.header-top .user-links .auth-links .register-btn {
    color: var(--color-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.header-top .user-links .auth-links .login-btn::after,
.header-top .user-links .auth-links .register-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-top .user-links .auth-links .login-btn:hover,
.header-top .user-links .auth-links .register-btn:hover {
    color: var(--color-primary);
}

.header-top .user-links .auth-links .login-btn:hover::after,
.header-top .user-links .auth-links .register-btn:hover::after {
    width: 100%;
}

/* 登录注册分隔符 */
.header-top .user-links .auth-separator {
    color: var(--color-text-muted);
    margin: 0 10px;
    font-size: 16px;
}

/* 禁止登录注册按钮的选中样式 */
.header-top .user-links .auth-links .login-btn.active,
.header-top .user-links .auth-links .register-btn.active {
    color: var(--color-primary);
    background: none;
    border: none;
}

.header-top .user-links .auth-links .login-btn.active:hover,
.header-top .user-links .auth-links .register-btn.active:hover {
    color: var(--color-primary-dark);
}

/* 用户信息显示 - 使用后代选择器避免冲突，取消特殊样式 */
.header-top .user-links .user-info {
    display: flex;
    align-items: center;
}

/* 用户下拉菜单容器 */
.header-top .user-links .user-info .user-dropdown {
    position: relative;
}

/* 用户下拉菜单触发器 */
.header-top .user-links .user-info .user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.header-top .user-links .user-info .user-dropdown-trigger:hover {
    background-color: #f0f2f5;
}

.header-top .user-links .user-info .user-dropdown .user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-grad) 0%, var(--color-primary-grad-end) 100%);
    color: var(--color-white);
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    overflow: hidden;
}

.header-top .user-links .user-info .user-dropdown .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-top .user-links .user-info .user-dropdown .username {
    color: var(--color-text);
    font-weight: 500;
    font-size: 14px;
}

.header-top .user-links .user-info .user-dropdown .dropdown-arrow {
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
    transition: transform 0.3s ease;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
}

.header-top .user-links .user-info .user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 用户下拉菜单 */
.header-top .user-links .user-info .user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background-color: var(--color-white);
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.header-top .user-links .user-info .user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 下拉菜单项 */
.header-top .user-links .user-info .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-top .user-links .user-info .dropdown-item:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    color: var(--color-primary);
    padding-left: 22px;
}

.header-top .user-links .user-info .dropdown-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.header-top .user-links .user-info .dropdown-item:hover svg {
    transform: scale(1.1);
}

.header-top .user-links .user-info .dropdown-item-danger:hover {
    background: linear-gradient(135deg, var(--color-white)5f5 0%, #ffe6e6 100%);
    color: var(--color-danger);
}

/* 我的消息未读徽标 */
.header-top .user-links .user-info .msg-unread-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-danger);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-top .user-links .user-info .username-link {
    text-decoration: none;
}

.header-top .user-links .user-info .username {
    color: var(--color-text);
    font-weight: 500;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.header-top .user-links .user-info .username-link:hover .username {
    color: var(--color-primary);
}

.header-top .user-links .user-info .logout-btn {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
}

.header-top .user-links .user-info .logout-btn:hover {
    color: var(--color-danger);
}

/* 主导航栏 */
.header-main {
    display: flex;
    align-items: center;
    height: 70px;
    position: relative;
    background-color: var(--color-white);
    box-shadow: 0 1px 3px rgba(100, 100, 100, 0.1);
    z-index: 100;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 搜索框样式 */
.nav-search {
    flex: 1 1 0;
    max-width: 700px;
    min-width: 0;
    margin: 0 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-input-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-white);
    min-width: 0;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.search-button {
    background: #f5f5f5;
    color: var(--color-text);
    border: none;
    border-left: 1px solid var(--color-border);
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
}

.search-button::before {
    content: '🔍';
    font-size: 16px;
}

/* 热搜标签样式 */
.hot-search {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.hot-search-label {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.hot-search-item {
    font-size: 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 4px 8px;
    background-color: var(--color-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hot-search-item:hover {
    background-color: #e8f0fe;
    color: var(--color-primary);
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text);
    font-size: 22px;
    font-weight: 600;
    height: 100%;
    flex-shrink: 0;
    margin-left: 4px;
}

.logo-icon {
    margin-right: 10px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon img {
    display: block;
    object-fit: contain;
}

/* 桌面端用户链接 */
.desktop-user-links {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* 主导航栏用户下拉菜单 */
.desktop-user-links .user-info {
    position: relative;
}

.desktop-user-links .user-dropdown {
    position: relative;
}

.desktop-user-links .user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-user-links .user-dropdown-trigger:hover {
    background-color: #f0f7ff;
    transform: translateY(-1px);
}

.desktop-user-links .user-dropdown .user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-grad) 0%, var(--color-primary-grad-end) 100%);
    color: var(--color-white);
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.desktop-user-links .user-dropdown .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.desktop-user-links .user-dropdown:hover .user-avatar {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: scale(1.05);
}

.desktop-user-links .user-dropdown .username {
    color: var(--color-text);
    font-weight: 500;
    font-size: 14px;
}

.desktop-user-links .user-dropdown .dropdown-arrow {
    width: 22px;
    height: 22px;
    color: var(--color-text-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.desktop-user-links .user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 主导航栏用户下拉菜单 */
.desktop-user-links .user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 200px;
    background-color: var(--color-white);
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.desktop-user-links .user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 主导航栏下拉菜单项 */
.desktop-user-links .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-user-links .dropdown-item:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    color: var(--color-primary);
    padding-left: 24px;
}

.desktop-user-links .dropdown-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.desktop-user-links .dropdown-item:hover svg {
    transform: scale(1.1);
}

.desktop-user-links .dropdown-item-danger:hover {
    background: linear-gradient(135deg, var(--color-white)5f5 0%, #ffe6e6 100%);
    color: var(--color-danger);
}

/* 桌面端隐藏移动端用户区域 */
.mobile-user-section {
    display: none;
}

/* 移动端隐藏桌面端用户区域 */
@media (max-width: 768px) {
    .desktop-user-links {
        display: none;
    }
}

/* 主要内容 */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 240px);
}

@media (max-width: 768px) {
    /* 调整主导航栏 */
    .header-main {
        height: 65px;
        box-shadow: 0 1px 3px rgba(100, 100, 100, 0.1);
    }

    /* 全局容器左右内边距统一，让头部与内容区对齐 */
    .container {
        padding: 0 15px;
    }
    
    .header-main .container {
        padding: 0 15px;
    }
    
    /* Logo调整 */
    .logo {
        margin-left: 8px;
    }
    
    .logo span {
        font-size: 18px;
    }
    
    .logo-icon svg {
        width: 28px;
        height: 28px;
    }
    
    /* 搜索框调整 */
    .nav-search {
        max-width: 260px;
        margin: 0 12px;
        flex: 1 1 0;
        min-width: 0;
        gap: 0;
    }
    
    .search-input-container {
        width: 100%;
        min-width: 0;
    }
    
    /* 移动端隐藏热搜标签 */
    .hot-search {
        display: none;
    }
    
    .search-input {
        padding: 8px 12px;
        font-size: 13px;
        flex: 1;
        min-width: 0;
    }
    
    .search-button {
        padding: 8px;
        font-size: 13px;
        width: 40px;
        flex-shrink: 0;
    }
    
    /* 显示汉堡菜单按钮 */
    .hamburger-menu {
        display: flex;
        margin-right: 8px;
    }
    
    /* 调整菜单和覆盖层位置 */
    .mobile-menu {
        top: 65px;
        height: calc(100% - 65px);
    }
    
    .mobile-menu-overlay {
        top: 65px;
        height: calc(100% - 65px);
    }
}

@media (max-width: 480px) {
    .header-main {
        height: 65px;
    }

    /* 全局容器更紧凑 */
    .container {
        padding: 0 12px;
    }
    
    .logo span {
        font-size: 16px;
    }
    
    .logo-icon svg {
        width: 24px;
        height: 24px;
    }
    
    /* 搜索框调整 */
    .nav-search {
        flex: 1 1 0;
        max-width: none;
        margin: 0 8px;
        min-width: 0;
        gap: 0;
    }
    
    .search-input-container {
        width: 100%;
        min-width: 0;
    }
    
    .search-input {
        padding: 6px 10px;
        font-size: 12px;
        flex: 1;
        min-width: 0;
    }
    
    .search-button {
        padding: 6px;
        font-size: 12px;
        width: 40px;
        flex-shrink: 0;
    }
}

/* 超小屏 */
@media (max-width: 380px) {
    .container {
        padding: 0 10px;
    }

    .nav-search {
        flex: 1 1 0;
        min-width: 0;
        gap: 0;
        margin: 0 6px;
    }

    .search-input {
        padding: 5px 8px;
        font-size: 11px;
    }

    .search-button {
        padding: 5px;
        width: 36px;
    }
}

/* 汉堡菜单按钮样式 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    flex-shrink: 0;
    margin-right: 4px;
}

.hamburger-menu span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端右滑菜单样式 */
.mobile-menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: -80%;
    width: 80%;
    max-width: 300px;
    height: calc(100% - 70px);
    background-color: var(--color-white);
    z-index: 99;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, #f8f9fa 0%, var(--color-white) 100%);
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text-secondary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: #f0f0f0;
    color: var(--color-text);
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 500;
}

.mobile-nav-item:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    color: var(--color-primary);
    transform: translateX(8px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.mobile-nav-item.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 软件中心专用样式增强 */
.software-main-content {
    padding: 30px 0;
    background-color: #f8f9fa;
}

/* 面包屑导航样式 */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 10px;
    color: var(--color-text-muted);
}

.breadcrumb-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.breadcrumb-current {
    color: var(--color-text);
    font-weight: 500;
}

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-animation {
    animation: fadeInUp 0.6s ease-out;
}

/* 页面加载动画 */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-grad) 0%, var(--color-primary-grad-end) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.5s ease;
}

.page-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--color-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.page-loading p {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 500;
}

/* 游戏卡片动画 */
@keyframes cardHover {
    0% {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(100, 100, 100, 0.1);
    }
    100% {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(100, 100, 100, 0.15);
    }
}

/* 分类标签动画 */
@keyframes tabHover {
    0% {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    100% {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
    }
}

/* 按钮动画 */
@keyframes buttonHover {
    0% {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    }
    100% {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    }
}

/* 页脚样式 */
.footer {
    background-color: #eef0f5;
    color: var(--color-text);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
    padding: 24px 22px;
    background: var(--color-white);
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(20, 28, 48, .04);
}

/* 移动端选项卡 - 默认隐藏 */
.footer-tabs {
    display: none;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* 社交媒体链接 */
.social-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* 联系信息 */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.contact-info li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
}

/* 订阅功能 */
.subscribe {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fc;
    border: 1px solid #e6e8ee;
    border-radius: 10px;
}

.subscribe h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.subscribe h4::before {
    content: '';
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}

.subscribe p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.subscribe-form {
    display: flex;
    gap: 8px;
}

.subscribe-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: var(--color-white);
    color: var(--color-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.subscribe-form input::placeholder {
    color: var(--color-text-muted);
}

.subscribe-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.subscribe-form button {
    padding: 10px 18px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.subscribe-form button:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.subscribe-form button:active {
    transform: translateY(0);
}

/* 版权信息 */
.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.footer-links-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-link-placeholder {
    color: #9aa1b2;
    cursor: default;
    opacity: 0.85;
}

.footer-link-placeholder:hover {
    color: #9aa1b2;
}

.footer-link-separator {
    color: #ced4da;
}

/* 响应时间显示样式 */
.response-time {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e1e4e8;
    border-radius: 20px;
    font-size: 12px;
    color: var(--color-text-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: default;
}

.response-time:hover {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.response-time svg {
    flex-shrink: 0;
}

#responseTimeValue {
    font-weight: 600;
    min-width: 35px;
    text-align: right;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(100, 100, 100, 0.4);
}

.modal-content {
    background-color: var(--color-white);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(100, 100, 100, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-secondary);
}

.btn-close:hover {
    color: var(--color-text);
}

.modal-body {
    text-align: center;
    padding: 20px 0;
}

.signin-success-icon {
    margin-bottom: 20px;
}

.signin-success-icon i {
    font-size: 48px;
    color: var(--color-success);
}

.modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    color: var(--color-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    color: var(--color-white);
    background-color: var(--color-primary-deep);
    border-color: #0062cc;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-checkin {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-checkin:disabled {
    background-color: #6c757d;
    color: var(--color-white);
    cursor: not-allowed;
}

.btn-checkin:not(:disabled) {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-checkin:not(:disabled):hover {
    background-color: var(--color-primary-deep);
}

/* 签到日历样式 */
.checkin-calendar {
    margin-top: 20px;
}

.calendar-week {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.calendar-day {
    width: 30px;
    text-align: center;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-item {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: var(--color-text-secondary);
}

.calendar-item.checked {
    background-color: var(--color-success);
    color: var(--color-white);
}

.calendar-item.today {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: bold;
}

.calendar-item.today.checked {
    background-color: #17a2b8;
    color: var(--color-white);
}

/* 搜索区域样式 */
.search-section {
    margin-bottom: 40px;
}

.search-left {
    max-width: 600px;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 100px;
    border: 2px solid #e1e4e8;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-box button {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 23px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: var(--color-primary-dark);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(100, 100, 100, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-icon {
    font-size: 16px;
}

.suggestion-text {
    flex: 1;
}

/* 软件区域样式 */
.software-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.software-item {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(100, 100, 100, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.software-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(100, 100, 100, 0.15);
}

.software-icon {
    margin-bottom: 15px;
    text-align: center;
}

.software-icon svg {
    width: 80px;
    height: 80px;
}

.software-info {
    flex: 1;
}

.software-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.software-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.software-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.software-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.software-rating .star {
    color: #f5a623;
    font-size: 16px;
}

.software-rating span {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.software-downloads span {
    font-size: 14px;
    color: var(--color-text-muted);
}

.software-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.software-btn:hover {
    background-color: var(--color-primary-dark);
}

/* H5游戏区域样式 */
.h5-game-section {
    margin-bottom: 40px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 56px;
    right: 30px;
    background: linear-gradient(135deg, var(--color-primary-grad) 0%, var(--color-primary-grad-end) 100%);
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6b46a2 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 隐藏顶部导航栏 */
    .header-top {
        display: none;
    }
    
    /* 调整主导航栏高度 */
    .header-main {
        height: 60px;
    }
    
    .header-top .container {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }
    
    .header-links {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .header-links {
        justify-content: center;
    }
    
    .header-links a {
        margin: 0 10px;
        font-size: 16px;
    }
    
    /* 移动端登录注册容器 - 使用后代选择器避免冲突 */
    .header-top .user-links .auth-links {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    /* 移动端登录注册按钮 - 与菜单样式保持一致，使用后代选择器避免冲突 */
    .header-top .user-links .login-btn,
    .header-top .user-links .register-btn {
        margin: 0 8px;
        font-size: 16px;
        padding: 0;
    }
    
    /* 移动端登录注册分隔符 - 使用后代选择器避免冲突 */
    .header-top .user-links .auth-separator {
        margin: 0 5px;
        font-size: 16px;
    }
    
    /* 移动端用户信息样式 - 使用后代选择器避免冲突，取消特殊样式 */
    .header-top .user-links .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-top .user-links .user-info .user-avatar {
        margin-right: 5px;
    }
    
    .header-top .user-links .user-info .username {
        margin-right: 10px;
        margin-bottom: 5px;
    }
    
    .header-top .user-links .user-info .logout-btn {
        margin: 5px 10px;
        font-size: 16px;
        padding: 0;
    }
    
    .header-main .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 0;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .logo span {
        font-size: 20px;
    }
    
    .logo-icon svg {
        width: 32px;
        height: 32px;
    }
    
    /* 显示汉堡菜单按钮 */
    .hamburger-menu {
        display: flex;
    }
    
    /* 移动端导航菜单默认隐藏 */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 20px;
        margin-left: 0;
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* 移动端显示用户区域 */
    .mobile-user-section {
        display: block;
    }
    
    /* 导航菜单激活时显示 */
    .nav.active {
        display: flex;
    }
    
    .nav-item {
        margin: 0;
        padding: 10px 0;
    }
    
    /* 移动端用户区域样式 */
    .mobile-user-section {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid #e9ecef;
    }
    
    .mobile-user-info {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-user-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        background-color: #f8f9fa;
        border-radius: 10px;
    }
    
    .mobile-user-avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--color-primary-grad) 0%, var(--color-primary-grad-end) 100%);
        color: var(--color-white);
        font-weight: bold;
        font-size: 18px;
        flex-shrink: 0;
        overflow: hidden;
    }
    
    .mobile-user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .mobile-user-details {
        flex: 1;
        min-width: 0;
    }
    
    .mobile-username {
        font-size: 16px;
        font-weight: 600;
        color: var(--color-text);
    }
    
    .mobile-user-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-user-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 15px;
        color: var(--color-text);
        text-decoration: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.3s ease;
        background-color: #f8f9fa;
    }
    
    .mobile-user-link:hover {
        background-color: #e9ecef;
        color: var(--color-primary);
        padding-left: 18px;
    }
    
    .mobile-user-link-danger {
        color: var(--color-danger);
    }
    
    .mobile-user-link-danger:hover {
        background-color: var(--color-white)5f5;
        color: var(--color-danger);
    }
    
    .mobile-auth-links {
        display: flex;
        gap: 10px;
    }
    
    .mobile-nav-link {
        flex: 1;
        text-align: center;
        padding: 12px;
        background-color: var(--color-primary);
        color: white;
        text-decoration: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
        transition: background-color 0.3s ease;
    }
    
    .mobile-nav-link:hover {
        background-color: var(--color-primary-dark);
    }
    
    /* 移动端搜索区域 */
    .search-left {
        max-width: 100%;
    }
    
    .search-box input {
        padding-right: 80px;
    }
    
    .search-box button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* 移动端软件网格 */
    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .software-item {
        padding: 15px;
    }
    
    .software-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .software-name {
        font-size: 16px;
    }
    
    .software-desc {
        font-size: 12px;
    }
    
    .software-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* 页脚 - 平板：2×2 更紧凑 */
    .footer {
        padding: 32px 0 16px;
    }
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
        margin-bottom: 24px;
    }
    /* 重排：把两个链接列表（快速链接 + 热门软件）放到同一行 */
    .footer-section:nth-child(1) { /* 关于摩扩网 */ grid-column: 1; grid-row: 1; }
    .footer-section:nth-child(2) { /* 快速链接     */ grid-column: 1; grid-row: 2; }
    .footer-section:nth-child(3) { /* 热门软件     */ grid-column: 2; grid-row: 2; }
    .footer-section:nth-child(4) { /* 联系方式     */ grid-column: 2; grid-row: 1; }
    .footer-section {
        flex: none;
        min-width: 0;
        margin-bottom: 0;
        padding: 20px 18px;
        border-radius: 10px;
    }
    .footer-section h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    .footer-section p,
    .footer-links a {
        font-size: 13px;
    }
    .footer-links li {
        margin-bottom: 8px;
    }
    .footer-bottom {
        font-size: 13px;
    }
    .footer-links-container {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    .subscribe-form button {
        width: 100%;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    /* 移动端回到顶部按钮 */
    .back-to-top {
        bottom: 52px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* 页脚 - 手机：选项卡模式 */
@media (max-width: 480px) {
    .footer {
        padding: 20px 0 14px;
    }

    /* 显示 tab 条 */
    .footer-tabs {
        display: flex;
        gap: 6px;
        padding: 6px;
        margin-bottom: 14px;
        background: var(--color-white);
        border: 1px solid #e6e8ee;
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(20, 28, 48, .04);
        overflow-x: auto;
        scrollbar-width: none;
    }
    .footer-tabs::-webkit-scrollbar { display: none; }
    .footer-tab {
        flex: 1 0 auto;
        min-width: 60px;
        padding: 8px 10px;
        border: none;
        border-radius: 7px;
        background: transparent;
        color: #6b7280;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all .2s ease;
        white-space: nowrap;
    }
    .footer-tab:hover { color: #374151; }
    .footer-tab.active {
        background: linear-gradient(135deg, var(--c-brand, #0ea5e9), var(--c-accent, #0284c7));
        color: var(--color-white);
        box-shadow: 0 2px 6px rgba(14, 165, 233, .3);
    }

    /* tab 模式下只显示 active 的 section */
    .footer-content {
        display: block;
    }
    .footer-section {
        padding: 18px 16px;
        border-radius: 10px;
        display: none;
    }
    .footer-section[data-tab].active {
        display: block;
    }

    .footer-section h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .footer-section p,
    .footer-links a {
        font-size: 12px;
    }
    .footer-links li {
        margin-bottom: 6px;
    }
    .social-link {
        width: 32px;
        height: 32px;
    }
    .footer-bottom {
        font-size: 12px;
        padding-top: 14px;
    }
    .footer-links-container {
        gap: 10px;
        font-size: 12px;
    }
}

/* 页脚 - 超小屏 */
@media (max-width: 380px) {
    .footer {
        padding: 18px 0 12px;
    }
    .footer-tabs {
        padding: 5px;
        gap: 4px;
    }
    .footer-tab {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 50px;
    }
    .footer-section {
        padding: 16px 14px;
        border-radius: 8px;
    }
    .footer-section h3 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    .footer-section p,
    .footer-links a {
        font-size: 11px;
    }
    .footer-links li {
        margin-bottom: 5px;
    }
}

/* 游戏页面样式 */
.game-container {
    padding: 30px 0;
}

/* 游戏标题 */
.game-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    background: linear-gradient(135deg, var(--color-bg) 0%, #c3cfe2 100%);
    border-radius: 12px;
    margin-bottom: 40px;
}

.game-title-main {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
}

/* 游戏分类 */
.game-category-section {
    margin-bottom: 30px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: center;
}

.category-tab {
    padding: 10px 20px;
    background-color: var(--color-white);
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-tab:hover {
    border-color: var(--color-primary-grad);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--color-primary-grad) 0%, var(--color-primary-grad-end) 100%);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 游戏列表 */
.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* 游戏卡片 */
.game-card {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(100, 100, 100, 0.1);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-grad), var(--color-primary-grad-end));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(100, 100, 100, 0.15);
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-card-header {
    position: relative;
    margin-bottom: 20px;
}

.game-image {
    font-size: 56px;
    text-align: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

.game-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.game-info {
    flex: 1;
}

.game-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.game-card:hover .game-name {
    color: var(--color-primary-grad);
}

.game-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    color: #f5a623;
    font-size: 14px;
    letter-spacing: 2px;
}

.rating-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.game-downloads {
    font-size: 14px;
    color: var(--color-text-muted);
}

.game-card-actions {
    display: flex;
    gap: 10px;
}

.game-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-btn.primary {
    background: linear-gradient(135deg, var(--color-primary-grad) 0%, var(--color-primary-grad-end) 100%);
    color: var(--color-white);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.game-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.game-btn.secondary {
    background: #f5f5f5;
    color: var(--color-text);
    border: 1px solid #e0e0e0;
}

.game-btn.secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* 相关游戏 */
.related-games {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
}

.view-all {
    color: var(--color-primary-grad);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--color-primary-grad-end);
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 游戏标题 */
    .game-header {
        padding: 15px 0;
        margin-bottom: 30px;
    }
    
    .game-title-main {
        font-size: 28px;
    }
    
    .game-subtitle {
        font-size: 16px;
    }
    
    /* 游戏分类 */
    .category-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* 游戏列表 */
    .game-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    /* 游戏卡片 */
    .game-card {
        padding: 16px;
    }
    
    .game-image {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .game-name {
        font-size: 16px;
    }
    
    .game-desc {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .game-meta {
        margin-bottom: 16px;
    }
    
    .rating-stars {
        font-size: 12px;
    }
    
    .rating-value,
    .game-downloads {
        font-size: 12px;
    }
    
    .game-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* 相关游戏 */
    .related-games {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    /* 游戏列表 */
    .game-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    /* 游戏卡片 */
    .game-card {
        padding: 12px;
    }
    
    .game-image {
        font-size: 32px;
    }
    
    .game-name {
        font-size: 14px;
    }
    
    .game-desc {
        font-size: 11px;
    }
    
    .game-card-actions {
        flex-direction: column;
    }
}

/* 游戏详情 */
.game-detail {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(100, 100, 100, 0.1);
    padding: 30px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.game-detail:hover {
    box-shadow: 0 8px 24px rgba(100, 100, 100, 0.15);
}

.game-detail-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.game-detail-image {
    font-size: 80px;
    text-align: center;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg) 0%, #c3cfe2 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.game-detail-info {
    flex: 1;
}

.game-detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text);
}

.game-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-text-secondary);
    flex-wrap: wrap;
}

.game-detail-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 20px;
}

.game-detail-buttons {
    display: flex;
    gap: 15px;
}

.game-detail-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-detail-btn.primary {
    background: linear-gradient(135deg, var(--color-primary-grad) 0%, var(--color-primary-grad-end) 100%);
    color: var(--color-white);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.game-detail-btn.secondary {
    background-color: #f5f5f5;
    color: var(--color-text);
    border: 1px solid #e0e0e0;
}

.game-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 游戏详情响应式设计 */
@media (max-width: 768px) {
    .game-detail {
        padding: 20px;
    }
    
    .game-detail-header {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .game-detail-image {
        font-size: 60px;
        width: 100px;
        height: 100px;
    }
    
    .game-detail-title {
        font-size: 24px;
    }
    
    .game-detail-meta {
        justify-content: center;
    }
    
    .game-detail-buttons {
        justify-content: center;
    }
    
    .game-detail-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .game-detail {
        padding: 16px;
    }
    
    .game-detail-image {
        font-size: 50px;
        width: 80px;
        height: 80px;
    }
    
    .game-detail-title {
        font-size: 20px;
    }
    
    .game-detail-meta {
        gap: 10px;
        font-size: 12px;
    }
    
    .game-detail-desc {
        font-size: 14px;
    }
    
    .game-detail-buttons {
        flex-direction: column;
    }
}

/* ============================================================
 * 认证页面（登录 / 注册）公共组件样式
 * 由 App/Templates/default/user/login.html 与 register.html 共用
 * ============================================================ */
:root {
    --primary: #6366f1;
    --primary-rgb: 99, 102, 241;
    --primary-dark: #4f46e5;
    --primary-deep: #4338ca;
    --primary-accent: #818cf8;
    --secondary: #818cf8;
    --link: #6366f1;
    --link-dark: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* ============ 认证表单通用组件 ============ */
.form-group {
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
}

.input-container {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.input-container:hover {
    border-color: var(--gray-300);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.input-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(15, 23, 42, 0.05);
}

.input-container.has-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--gray-400);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.input-container:focus-within .input-icon {
    color: var(--primary);
}

.form-input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--gray-900);
    transition: all 0.3s ease;
}

.input-container.has-toggle .form-input {
    padding-right: 46px;
}

.input-container.has-action .form-input {
    padding-right: 122px;
}

.form-input:focus,
.form-input:focus-visible {
    outline: none;
}

.form-input::placeholder {
    color: var(--gray-400);
}

/* 密码显示切换 */
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
}

.password-toggle:hover {
    color: var(--primary);
}

/* 发送验证码按钮 */
.send-code-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--color-white);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.send-code-btn:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.send-code-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--gray-300);
}

/* 密码强度（单条细进度线） */
.password-strength {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-track {
    flex: 1;
    height: 4px;
    background: var(--gray-100);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    background: var(--gray-300);
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 42px;
    text-align: right;
    transition: color 0.3s ease;
}

/* 随机密码按钮（轻量幽灵文本） */
.random-password-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    color: var(--primary);
    border: none;
    padding: 0;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.random-password-btn:hover {
    opacity: 1;
}

.random-password-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.random-password-btn svg {
    width: 13px;
    height: 13px;
}

/* 复选框（记住登录 / 协议同意） */
.agreement-group {
    margin: -4px 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    border: 2px solid var(--gray-300);
    background: var(--color-white);
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-wrapper input:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.checkbox-custom::after {
    content: '✓';
    color: var(--color-white);
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-wrapper input:checked + .checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============ 认证主按钮（登录 / 注册） ============ */
/* 限定在登录/注册卡片作用域内，避免影响布局 header 中同名的 .login-btn / .register-btn 链接 */
.login-card .login-btn,
.register-card .register-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: var(--color-white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 2px;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.32);
    font-family: inherit;
}

.login-card .login-btn::before,
.register-card .register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.login-card .login-btn:hover:not(:disabled)::before,
.register-card .register-btn:hover:not(:disabled)::before {
    left: 100%;
}

.login-card .login-btn:hover:not(:disabled),
.register-card .register-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.45);
}

.login-card .login-btn:active:not(:disabled),
.register-card .register-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-card .login-btn:disabled,
.register-card .register-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-card .login-btn .btn-arrow,
.register-card .register-btn .btn-arrow {
    width: 18px;
    height: 18px;
    stroke: var(--color-white);
    transition: transform 0.3s ease;
}

.login-card .login-btn:hover:not(:disabled) .btn-arrow,
.register-card .register-btn:hover:not(:disabled) .btn-arrow {
    transform: translateX(3px);
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: authSpin 0.8s linear infinite;
}

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

/* ============ 消息提示 ============ */
.message {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    display: none;
    animation: authFadeInUp 0.4s ease;
    margin-top: 16px;
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes authFadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes authFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============ 认证卡片底部切换链接 ============ */
.login-footer,
.register-footer {
    margin-top: 22px;
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid var(--gray-100);
}

/* 认证卡片底部切换链接（限定卡片作用域，避免误伤布局页脚的 .footer-link） */
.login-footer .footer-text,
.register-footer .footer-text {
    font-size: 14px;
    color: var(--gray-500);
}

.login-footer .footer-link,
.register-footer .footer-link {
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
    transition: color 0.3s ease;
}

.login-footer .footer-link:hover,
.register-footer .footer-link:hover {
    color: var(--link-dark);
}

/* ============ 返回首页 ============ */
.back-home {
    text-align: center;
    margin-top: 22px;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-500);
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-home-link svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.back-home-link:hover {
    color: var(--link);
}

.back-home-link:hover svg {
    transform: translateX(-3px);
}

/* ============ 成功模态框（登录 / 注册共用） ============ */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: authFadeIn 0.3s ease;
}

.success-modal-overlay.show {
    display: flex;
}

.success-modal {
    background: var(--color-white);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: authModalPopUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

@keyframes authModalPopUp {
    from { opacity: 0; transform: scale(0.7) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.success-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success), #34d399, #6ee7b7);
    background-size: 200% 100%;
    animation: authGradientFlow 2s linear infinite;
}

@keyframes authGradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.success-icon-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    position: relative;
}

.success-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: authIconBounce 0.6s ease-out;
}

@keyframes authIconBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 使用 SVG stroke-dash 描边动画绘制对勾，避免 border 拼凑导致的对不齐/毛边 */
.success-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.success-circle {
    fill: none;
    stroke: var(--success);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: authIconStroke 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
    fill: none;
    stroke: var(--success);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: authIconStroke 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes authIconStroke {
    to { stroke-dashoffset: 0; }
}

.success-icon::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    animation: authHaloPulse 1.5s ease-out infinite;
}

@keyframes authHaloPulse {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.4); }
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
    animation: authSlideIn 0.4s ease-out 0.4s forwards;
    opacity: 0;
}

.success-message {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 24px;
    animation: authSlideIn 0.4s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes authSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-progress {
    width: 100%;
    height: 4px;
    background: var(--gray-100);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.success-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #34d399);
    width: 0%;
    border-radius: 2px;
    animation: authProgressBar 1.3s linear forwards;
}

@keyframes authProgressBar {
    from { width: 0%; }
    to { width: 100%; }
}

.success-timer {
    font-size: 12px;
    color: var(--gray-400);
}

/* ============ 粒子效果容器 ============ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: authParticleFall 2s ease-out forwards;
    opacity: 0;
}

@keyframes authParticleFall {
    0% { opacity: 1; transform: translateY(-20px) scale(1); }
    100% { opacity: 0; transform: translateY(100vh) scale(0); }
}

/* ============ 认证页面通用响应式 ============ */
@media (max-width: 480px) {
    .success-modal {
        padding: 36px 24px;
    }
}

/* 无障碍 - 减少动画 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
