/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: #FFD700;
    transition: color 0.3s;
}

a:hover {
    color: #FFC700;
}

/* 汉堡菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #FFD700;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: #FFC700;
    transform: scale(1.1);
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, #ffffff, #f8f8f8);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #FFD700;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 10px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(90deg, #B8860B, #DAA520, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    text-shadow: none;
}

.logo span {
    position: relative;
    top: -3px;
    display: inline-block;
    background: linear-gradient(90deg, #B8860B, #DAA520, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #B8860B;
}

@media (max-width: 576px) {
    .header-content {
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }
    .logo { flex: 1 1 auto; min-width: 0; }
    .logo a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        max-width: 100%;
        white-space: nowrap;
        overflow: visible;
    }
    .logo img {
        max-height: 48px;
        height: auto;
        width: auto;
        flex-shrink: 0;
    }
    .logo span {
        font-size: 18px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
    .user-actions {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        margin-left: auto;
    }
    .user-actions a {
        padding: 6px 10px;
        font-size: 14px;
    }
}

.main-nav .nav-menu {
    display: flex;
    list-style: none;
}

.main-nav .nav-menu li {
    margin-right: 20px;
    position: relative;
}

.main-nav .nav-menu li a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFC700);
    transition: width 0.3s ease;
}

.main-nav .nav-menu li a:hover,
.main-nav .nav-menu li a.active {
    color: #FFD700;
}

/* "更多"菜单项默认显示为黄色 */
.main-nav .nav-menu .more-menu-item > a {
    color: #FFD700 !important;
}

.main-nav .nav-menu li a:hover::after,
.main-nav .nav-menu li a.active::after {
    width: 100%;
}

.main-nav .nav-menu li a.active::after {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* 主导航子菜单样式 */
.main-nav .nav-menu .submenu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 200;
    border: 1px solid rgba(0,0,0,0.08);
}

/* 在移动端直接显示子菜单 */
@media (max-width: 576px) {
    .main-nav .nav-menu .submenu {
        position: static;
        box-shadow: none;
        padding: 6px 0 0 12px;
        display: block;
        background: transparent;
        border: none;
    }
}

.main-nav .nav-menu .submenu li {
    margin: 0;
    padding: 0;
    position: relative;
}

.main-nav .nav-menu .submenu li a {
    display: block;
    padding: 10px 16px;
    color: #333;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.main-nav .nav-menu .submenu li a:hover {
    background: rgba(255, 215, 0, 0.08);
    color: #b8860b;
}

/* 确保PC端子菜单只在悬停时显示 */
@media (min-width: 577px) {
    .main-nav .nav-menu li.has-children:hover > .submenu {
        display: block;
    }
    
    /* PC端隐藏移动端显示的"更多分类"项 */
    .main-nav .nav-menu .more-category-item {
        display: none;
    }
    
    /* "更多"菜单的多级子菜单样式 */
    .main-nav .nav-menu .submenu .submenu {
        position: absolute;
        left: 100%;
        top: 0;
        margin-left: 0;
        border-radius: 6px;
    }
    
    .main-nav .nav-menu .submenu li.has-children:hover > .submenu {
        display: block;
    }
}

.vip-menu a {
    color: #FFD700 !important;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 199, 0, 0.1));
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.vip-menu a:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 199, 0, 0.15));
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

.search-box {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    border-radius: 25px;
    padding: 6px 20px;
    width: auto;
    min-width: 280px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-box:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.15);
    transform: translateY(-1px);
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    padding: 5px;
    color: #444;
}

.search-box button {
    border: none;
    background: none;
    cursor: pointer;
    color: #FFD700;
}

/* 搜索页面内容区域的突出搜索框样式 */
.search-form-section .search-box.prominent {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 8px;
    z-index: 10;
    display: flex;
}

.search-form-section .search-box.prominent input {
    width: calc(100% - 60px);
    height: 50px;
    padding: 0 20px;
    border: none;
    border-radius: 25px 0 0 25px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    outline: none;
    color: #333;
    flex: 1;
}

.search-form-section .search-box.prominent button {
    position: static;
    transform: none;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #FFD700, #FFB200);
    border: none;
    border-radius: 50%;
    color: #2c1b01;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
    margin-left: 8px;
}

.search-form-section .search-box.prominent button:hover {
    background: linear-gradient(135deg, #ffc600, #ff9800);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
}

.user-actions {
    display: flex;
}

.user-actions a {
    margin-left: 15px;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
}

/* 标签样式 */
.resource-tags, .content-tags {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 199, 0, 0.05));
    color: #B8860B;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 199, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.2);
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-stats {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.page-stats .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.page-stats .stat-item i {
    color: #b8860b;
}

.resource-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 199, 0, 0.45);
    background: #fff;
    color: #b8860b;
    font-weight: 600;
    transition: all 0.2s ease;
}

.detail-btn i {
    font-size: 12px;
}

.detail-btn:hover {
    color: #5c3d00;
    background: linear-gradient(135deg, #FFD700, #FFC107);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(255, 199, 0, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .content-breadcrumb li:nth-last-child(2),
    .content-breadcrumb li.current {
        display: none;
    }
}

.content-tags h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

/* 用户信息区域 */
.user-info {
    display: flex;
    align-items: center;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid #FFD700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.user-dropdown span {
    margin-right: 5px;
    font-weight: 500;
    color: #444;
}

.vip-badge-small {
    background: linear-gradient(135deg, #FFD700, #FFC700);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.user-dropdown i {
    color: #FFD700;
    transition: transform 0.3s;
}

.user-info:hover .user-dropdown i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.user-info:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.dropdown-menu a i {
    margin-right: 10px;
    width: 16px;
}

.user-stats-menu {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    background: rgba(255, 215, 0, 0.05);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item span:first-child {
    color: #666;
}

.stat-item span:last-child {
    font-weight: bold;
    color: #FFD700;
}

.login-btn {
    color: #FFD700;
    border: 2px solid #FFD700;
    font-weight: 600;
    background: transparent;
}

.login-btn:hover {
    background-color: #FFD700;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.register-btn {
    background: linear-gradient(135deg, #FFD700, #FFC700);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.register-btn:hover {
    background: linear-gradient(135deg, #FFC700, #FFB700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* 主内容区域 */
.main-content {
    padding: 0 0 30px;
}

/* 轮播图区域 */
.hero-slider {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 199, 0, 0.02) 100%);
}



.slider-container {
    position: relative;
    height: 400px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    max-width: 1000px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dot.active {
    background-color: #FFD700;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    transform: scale(1.3);
}

.dot:hover {
    background-color: rgba(255, 215, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.15);
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-content .disclaimer {
    font-size: 0.8rem;
    margin-top: 20px;
    opacity: 0.8;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFC700);
    color: #333;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.28);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #FFC700, #FFB700);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #FFD700;
    padding: 10px 20px;
    border: 2px solid #FFD700;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #FFD700;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-wechat {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 14px 22px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.28);
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}
.btn-wechat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.32);
}
.btn-wechat-outline {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #16a34a;
    color: #16a34a;
    background: #ecfdf3;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-wechat-outline:hover {
    background: #16a34a;
    color: #fff;
}
.btn-ghost {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 18px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-ghost:hover {
    border-color: #999;
    color: #111;
}

.wechat-login-toolbar {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.wechat-login-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    display: block;
    text-align: center;
}
.wechat-login-toolbar .btn-wechat,
.wechat-login-toolbar .btn-wechat-outline {
    width: 100%;
    border-radius: 12px;
    padding: 12px 0;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

/* 分类导航 */
.category-nav {
    margin-bottom: 30px;
}

.category-tabs {
    display: flex;
    background-color: white;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-radius: 8px;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: linear-gradient(135deg, #FFD700, #FFC700);
    color: #333;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* 资源列表 */
.resource-list {
    margin-bottom: 50px;
}

.section-header {
    margin-bottom: 25px;
    text-align: center;
}

.section-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.resource-card {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFC700, #FFD700);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-card:hover::before {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.resource-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.resource-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.resource-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.badge-cat {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.badge-flag {
    background: linear-gradient(135deg, #FFD700, #FFB200);
    color: #2c1b01;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.35);
}

.resource-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: brightness(0.95);
}

.resource-card:hover .resource-thumbnail img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.resource-info.simple {
    padding: 12px 16px;
}

.resource-info.simple h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #1e1e1e;
}

.resource-info.simple h3 a {
    color: inherit;
    text-decoration: none;
}

.resource-info.simple h3 a:hover {
    color: #d49a00;
}

.resource-thumbnail {
    position: relative;
}

.resource-thumbnail .btn-secondary {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.resource-thumbnail .btn-secondary:hover {
    background: rgba(0,0,0,0.8);
}
.resource-type {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.type-article {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.type-video {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.type-audio {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.type-ppt {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}

.type-design {
    background: linear-gradient(135deg, #F44336, #D32F2F);
}

.vip-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFC700);
    color: #333;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: vipPulse 2s infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes vipPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
        transform: scale(1.05);
    }
}

.resource-content {
    padding: 25px;
    background: linear-gradient(135deg, #ffffff, #fafafa);
}

.resource-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.resource-title a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.resource-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFC700);
    transition: width 0.3s ease;
}

.resource-title a:hover::after {
    width: 100%;
}

.resource-title a:hover {
    color: #FFD700;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.resource-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

.resource-stats span {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.resource-stats span:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.resource-stats i {
    margin-right: 5px;
    color: #FFD700;
}

.load-more {
    text-align: center;
}

/* 热门分类 */
.popular-categories {
    margin-bottom: 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #FFD700, #FFC700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-link {
    color: inherit;
    text-decoration: none;
}

.cat-link:hover {
    color: #d49a00;
}

.tag-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.15);
    color: #b17a00;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background: rgba(255, 215, 0, 0.25);
    color: #8c5d00;
}

.category-stats {
    display: flex;
    justify-content: space-around;
}

.category-stats span {
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFD700;
    color: #1a1a1a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
    z-index: 1000;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #FFC700;
}

@media (max-width: 768px) {
    .back-to-top {
        display: none;
    }
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ddd;
    padding: 22px 0 14px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFC700, #FFD700);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 14px;
    text-align: center;
    justify-items: center;
}

.footer-disclaimer {
    margin: 5px 0;
    line-height: 1.5;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #FFD700;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFC700);
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-section ul li a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #FFD700;
    font-size: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFD700;
    padding-left: 20px;
}

.footer-section ul li a:hover::before {
    left: 5px;
}

.footer-section ul li i {
    margin-right: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #ddd;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.social-links a:hover {
    background: linear-gradient(135deg, #FFD700, #FFC700);
    color: #333;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.footer-contact-label {
    margin-left: 8px;
    color: #FFD700;
    font-weight: 600;
    text-decoration: none;
}

.footer-contact-label:hover {
    text-decoration: underline;
}

.footer-contact {
    margin-top: 10px;
}

.footer-contact-form {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-contact-row input,
.footer-contact-row textarea {
    flex: 1;
    min-width: 160px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #3a3a3a;
    background: #1f1f1f;
    color: #eee;
    font-size: 13px;
}

.footer-contact-row textarea {
    min-width: 100%;
    resize: vertical;
}

.footer-contact-captcha .captcha-image {
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #3a3a3a;
}

.footer-contact-submit {
    padding: 8px 14px;
    border-radius: 18px;
    border: none;
    background: linear-gradient(135deg, #FFD700, #FFC700);
    color: #333;
    font-weight: 600;
    cursor: pointer;
}

.footer-contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.footer-contact-message {
    min-height: 18px;
    font-size: 12px;
    color: #ddd;
}

.footer-contact-message.is-success {
    color: #8be28b;
}

.footer-contact-message.is-error {
    color: #ff9a9a;
}

.footer-render-time {
    display: block;
    margin-top: 6px;
    font-size: calc(0.9rem - 2px);
    color: #888;
}

/* 视频和音频覆盖层 */
.video-overlay,
.audio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}

.resource-thumbnail:hover .video-overlay {
    opacity: 1;
}

.audio-overlay {
    opacity: 1;
    cursor: pointer;
}

/* 轮播图区域突出搜索框 */
.slide-content .search-box.prominent {
    position: relative;
    max-width: 750px;
    margin: 25px auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form-section {
    margin: 20px 0;
    text-align: center;
}

.slide-content .search-box.prominent:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.slide-content .search-box.prominent input {
    width: calc(100% - 60px);
    height: 48px;
    padding: 0 25px;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    color: #333;
}

.slide-content .search-box.prominent button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #FFD700, #FFB200);
    border: none;
    border-radius: 50%;
    color: #2c1b01;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
}

.slide-content .search-box.prominent button:hover {
    background: linear-gradient(135deg, #ffc600, #ff9800);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
}

/* 轮播图区域免责声明样式 */
.slide-content .disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
    text-align: center;
    font-style: italic;
}

/* 免责声明样式 */
.disclaimer {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    text-align: center;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .search-box {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }
    
    .user-actions {
        order: 1;
    }
    
    .main-nav .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .main-nav .nav-menu li {
        margin: 5px 10px;
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 350px;  /* 使用中间值，更适合平板设备 */
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .category-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    /* 显示汉堡菜单按钮 */
    .mobile-menu-btn {
        display: block;
    }
    
    /* 隐藏"更多"菜单项，但显示所有分类 */
    .main-nav .nav-menu .more-menu-item {
        display: none;
    }
    
    /* 隐藏导航菜单，默认折叠状态 */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #ffffff, #f8f8f8);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-top: 2px solid #FFD700;
        z-index: 1000;
        order: unset;
        width: 100%;
        margin-top: 0;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    /* 菜单展开状态 */
    .main-nav.active {
        display: block;
    }
    
    /* 垂直排列菜单项 */
    .main-nav .nav-menu {
        flex-direction: column;
        padding: 15px 0;
        justify-content: unset;
        flex-wrap: unset;
    }
    
    .main-nav .nav-menu li {
        margin: 0;
        padding: 10px 20px;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
        position: relative;
    }
    
    .main-nav .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .main-nav .nav-menu li a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    /* 搜索页面内容区域的搜索框样式 */
    .search-box.prominent {
        display: flex;
        max-width: 100%;
        margin: 15px auto;
        border-radius: 25px;
        padding: 4px;
    }
    
    .search-box.prominent input {
        height: 40px;
        font-size: 14px;
        padding: 0 12px;
        flex: 1;
    }
    
    .search-box.prominent button {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .search-form-section {
        margin: 10px 0;
        text-align: center;
    }
    
    .user-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .user-actions a {
        margin-left: 8px;
        padding: 6px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }
    
    .search-box {
        display: none; /* 在小屏幕上隐藏普通搜索框 */
    }
    
    /* 在小屏幕上显示用户操作按钮 */
    .user-actions {
        display: flex; /* 改为flex显示登录注册按钮 */
        align-items: center;
        gap: 8px; /* 减小按钮间距 */
    }
    
    .user-actions a {
        margin-left: 8px;
        padding: 6px 12px;
        font-size: 13px; /* 减小字体大小 */
        white-space: nowrap; /* 防止文字换行 */
    }
    
    .slide-content .search-box.prominent {
        display: flex;
        max-width: 100%;
        margin: 5px auto 15px auto; /* 上边距调小，下边距增大，让搜索框整体上移 */
        border-radius: 25px; /* 恢复合适的圆角 */
        padding: 4px; /* 适当的内边距 */
    }

    .footer-render-time {
        display: block;
        margin-top: 4px;
    }
    
    .slide-content .search-box.prominent input {
        height: 34px; /* 恢复合适高度 */
        font-size: 14px; /* 恢复正常字体大小 */
        padding: 0 12px; /* 合适的内边距 */
    }
    
    .slide-content .search-box.prominent button {
        width: 30px; /* 恢复合适按钮尺寸 */
        height: 30px;
        font-size: 14px;
        right: 5px; /* 恢复按钮位置 */
    }
    
    .slider-container {
        height: 220px;  /* 为手机屏幕提供更合适的高度 */
    }
    
    .slide-content {
        width: 90%; /* 减少宽度留出边距 */
        top: 50%; /* 进一步调整垂直位置，使文字居中 */
    }
    
    .slide-content h2 {
        font-size: 18px; /* 减小字体 */
        margin-bottom: 8px; /* 调整间距 */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
        margin-top: 20px; /* 增加顶部边距 */
    }
    
    .slide-content p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .slider-dots {
        bottom: 10px; /* 调整dots位置避免与搜索框重叠 */
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .logo img {
        height: 50px !important;
    }
}

@media (max-width: 360px) {
    .header-content {
        gap: 6px;
    }

    .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo a {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }

    .logo img {
        height: 36px !important;
        max-width: 110px;
        width: auto;
        object-fit: contain;
    }

    .logo span {
        display: none;
    }

    .user-actions {
        flex: 0 0 auto;
        gap: 6px;
    }

    .user-actions a {
        margin-left: 6px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .user-info {
        flex: 0 0 auto;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        margin-right: 6px;
    }

    .user-dropdown span {
        font-size: 12px;
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vip-badge-small {
        font-size: 9px;
        padding: 1px 5px;
    }
}



/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #B8860B, #DAA520, #FFD700);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.3s;
}

.close:hover {
    color: rgba(255, 255, 255, 0.7);
}

.modal-body {
    padding: 30px 20px;
}

.wechat-login-box {
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    text-align: center;
}

.wechat-inline-box {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 240px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 12px;
    z-index: 20;
}

.profile-info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.profile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.wechat-bind-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}
.wechat-bind-dialog {
    width: 300px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
}
.wechat-bind-close {
    position: absolute;
    right: 10px;
    top: 6px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}
.wechat-login-box .qr-wrapper {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}
.wechat-login-box img {
    width: 180px;
    height: 180px;
    border: 1px solid #eee;
    border-radius: 4px;
}
.wechat-tip {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.wechat-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.form-group {
    margin-bottom: 20px;
}

.wechat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: space-between;
}
.login-compact .btn-primary {
    padding: 10px 18px;
    font-size: 15px;
}
.btn-half {
    width: 48%;
    min-width: 0;
}
.wechat-row.single .btn-half {
    width: 100%;
}

@media (max-width: 576px) {
    .btn-half {
        width: 49%;
    }
    .btn-wechat {
        padding: 12px 6px;
        font-size: 13px;
        white-space: nowrap;
        letter-spacing: 0;
        text-transform: none;
    }
    .btn-primary {
        padding: 12px 6px;
        font-size: 13px;
        white-space: nowrap;
        letter-spacing: 0;
        text-transform: none;
    }
    .wechat-row {
        gap: 8px;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    outline: none;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-row input {
    flex: 1;
}

.captcha-image {
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.checkbox-group label {
    margin-bottom: 0;
    margin-right: 0;
    font-weight: normal;
}

.forgot-password {
    margin-left: auto;
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFD700, #FFC700);
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFC700, #FFB700);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.28);
}

.switch-form {
    text-align: center;
    margin-top: 20px;
}

.switch-form p {
    margin: 0;
    color: #666;
}

.switch-form a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* 用户信息区域样式 */
.user-info {
    display: flex;
    align-items: center;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid #FFD700;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.user-dropdown span {
    margin-right: 5px;
    font-weight: 500;
    color: #333;
}

.user-dropdown i {
    color: #666;
    font-size: 12px;
    transition: transform 0.3s;
}

.user-dropdown:hover i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.dropdown-menu a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* 点击展开支持 */
.user-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown.open i {
    transform: rotate(180deg);
}

/* 移动端模态框样式调整 */
@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .checkbox-group {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .checkbox-group label {
        margin-bottom: 0;
    }
    
    .forgot-password {
        margin-top: 0;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #ffffff, #f8f8f8);
    border-radius: 10px 10px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.form-links a {
    color: #FFD700;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.form-links a:hover {
    color: #FFC700;
    text-decoration: underline;
}

/* 消息提示框样式 */
.message-box {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    max-width: 350px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s, transform 0.3s;
}

.message-box.show {
    opacity: 1;
    transform: translateX(0);
}

.message-content {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid #FFD700;
}

.message-box.error .message-content {
    border-left-color: #e74c3c;
}

.message-box.success .message-content {
    border-left-color: #2ecc71;
}

#messageText {
    flex-grow: 1;
    margin-right: 10px;
}

.close-message {
    color: #aaa;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-message:hover {
    color: #333;
}

.announcement-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    padding: 16px;
}

.announcement-overlay.show {
    display: flex;
}

.announcement-card {
    background: #fff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    padding: 32px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    text-align: left;
}

.announcement-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #555;
}

.announcement-title {
    margin: 0;
    font-size: 20px;
    color: #1c1c1c;
}

.announcement-popup-content {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.8;
    color: #3c3c3c;
    max-height: 270px;
    overflow: auto;
}

.announcement-popup-meta {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}

.announcement-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.announcement-btn {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.announcement-btn-muted {
    background: #f5f5f5;
    color: #333;
}

.announcement-btn-muted:hover {
    background: #eaeaea;
}

.announcement-btn-primary {
    background: #1a73e8;
    color: #fff;
}

.announcement-btn-primary:hover {
    background: #1666c1;
}

body.announcement-popup-open {
    overflow: hidden;
}
