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

/* 确保可点击元素显示手指指针 */
a, button, [role="button"], .btn, .clickable, [onclick], 
.novel-card, .book-link, .category-item, .rank-card, .auth-buttons a,
.user-dropdown-trigger, .notice-modal-close, .mark-read-btn {
    cursor: pointer !important;
}

/* 文本输入区域显示黑色文本指针 */
input, textarea, select, [contenteditable] {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewport='0 0 20 20'><rect x='9' y='2' width='2' height='16' fill='%23000000'/></svg>") 10 10, text !important;
}

/* 禁用元素显示禁止指针 */
.disabled, [disabled], button:disabled {
    cursor: not-allowed !important;
}

body, .auth-container, main {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3f8ff 50%, #ffffff 100%) !important;
    background-attachment: fixed;
}

/* 登录页面背景透明，显示背景视频 */
body.login-page {
    background: transparent !important;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* 为固定的header留出空间，header高度大约64-70px */
}

main, .main-container, .agreement-container {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
    background: #faf8f8 !important;
    border-top: 1px solid #eee !important;
    margin-top: 48px !important;
    clear: both;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 0 18px 0;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1 1 180px;
    min-width: 180px;
    margin-right: 18px;
    margin-bottom: 18px;
}

.footer-column:last-child {
    margin-right: 0;
}

.footer-column h3 {
    font-size: 18px;
    color: #1976d2;
    margin-bottom: 12px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    border-radius: 6px;
    padding: 2px 8px;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #fff;
    background: #1976d2;
}

.footer-column ul li a:active {
    color: #fff;
    background: #1976d2;
}

.footer-column .qrcode {
    text-align: center;
    margin-top: 8px;
}

.footer-column .qrcode img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid #eee;
}

.footer-bottom {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 12px 0 8px 0;
    background: #faf8f8;
    border-top: 1px solid #eee;
}

/* 客服弹窗样式已移除 */

@media (max-width: 900px) {
    .footer-top {
        flex-direction: column;
        padding: 24px 0 8px 0;
    }
    .footer-column {
        margin-right: 0;
        margin-bottom: 18px;
    }
}

@media (max-width: 600px) {
    .footer-top {
        padding: 12px 0 4px 0;
    }
    .footer-column {
        min-width: 0;
        font-size: 15px;
    }
    .footer-column h3 {
        font-size: 16px;
    }
    .footer-bottom {
        font-size: 12px;
        padding: 8px 0 4px 0;
    }
}

.header {
    background: linear-gradient(135deg, #1976d2, #42a5f5, #64b5f6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 8px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.3);
    transition: all 0.3s ease;
}

/* 添加滚动时的导航栏样式 */
.header.scrolled {
    background: linear-gradient(135deg, #1976d2, #42a5f5, #64b5f6);
    box-shadow: 0 2px 15px rgba(25, 118, 210, 0.4);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 0;
    width: 200px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-left: 0;
}

.logo:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease-out;
    pointer-events: none;
}

.logo:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.logo-icon {
    width: 32px;
    height: 32px;
    position: relative;
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-icon i {
    font-size: 24px;
}

.logo:hover .logo-icon i {
    color: #1976d2 !important;
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(10deg);
}

@keyframes logoSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.logo:hover .logo-text-container {
    transform: translateX(5px);
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.8px;
    position: relative;
    white-space: nowrap;
}

.logo-slogan {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
    letter-spacing: 0.5px;
    transform: translateX(0);
    transition: all 0.3s ease;
    position: relative;
}

.logo:hover .logo-slogan {
    color: rgba(255, 255, 255, 1);
    transform: translateX(2px);
}

.nav {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 10px;
}

.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin: 0 30px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 0;
    width: 380px;
    justify-content: flex-end;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 16px;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav a:hover::after {
    width: 80%;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 16px;
    padding: 5px 16px;
    margin: 0;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-box:focus-within {
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.4);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 1);
}

.search-box input {
    border: none;
    outline: none;
    padding: 5px;
    width: 200px;
    font-size: 14px;
}

.search-box i {
    color: #333;
    cursor: pointer;
    transition: transform 0.3s;
}

.search-box i:hover {
    transform: scale(1.1);
}

.auth-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.auth-buttons a {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 5px 15px;
    border-radius: 16px;
    margin: 0;
    transition: all 0.3s;
    white-space: nowrap;
    text-decoration: none;
}

.auth-buttons a:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* 轮播图相关样式已清理 - 第1阶段优化完成 */

.category-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px 30px;
    background: white;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 80px;
    margin-top: 0; /* 修复：移除负边距，避免被header遮挡 */
    position: relative;
    z-index: 1;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
    min-width: 200px;
    justify-content: center;
    height: 50px;
}

.category-item:hover {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
}

.category-item:hover i {
    color: white;
}

.category-item span {
    font-size: 16px;
    font-weight: 500;
}

.category-item i {
    color: #1976d2;
    font-size: 22px;
    transition: all 0.3s;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    margin: 20px auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: fit-content;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 8px;
    font-weight: normal;
}

.section-title span {
    background: none;
    color: #222;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    font-weight: bold;
    letter-spacing: 2.5px;
    filter: drop-shadow(0 0 6px #ffe066) drop-shadow(0 0 18px #ffd700) drop-shadow(0 0 2px #fffbe6);
    text-shadow: 0 2px 8px #fffbe6, 0 0 18px #ffd700, 0 0 2px #fffbe6;
    font-size: 1.5em;
    border-radius: 4px;
    padding: 0 8px;
}

.content {
    max-width: 1700px;
    margin: 0 auto;
    padding: 10px;
}

/* 金榜相关样式已删除 */

.novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px;
}

.novel-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    max-width: 1700px;
    padding: 20px 0;
    min-height: 450px;
}

.novel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    padding: 0;
    position: relative;
    will-change: auto;
    width: 100%;
    transform: none;
    animation: none;
}

.novel-card {
    position: relative;
    width: 200px;
    height: 350px;
    background: #fff;
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    margin: 0 12px;
    opacity: 1;
    transition: box-shadow 0.5s, transform 0.5s;
    z-index: 1;
}
.novel-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    background: linear-gradient(120deg, #FFC300, #FFD700, #FFB300, #FFD700, #FFC300);
    background-size: 300% 300%;
    animation: goldMarquee 2.5s linear infinite;
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 16px 2px #ffc30066;
}
.novel-card > * {
    position: relative;
    z-index: 1;
}
.novel-card.active {
    box-shadow: 0 5px 32px rgba(218,165,32,0.45);
    z-index: 3;
    transform: scale(1.05);
}

.novel-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    margin-bottom: 0;
    display: block;
}

.novel-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: translateY(-5px) scale(1.05);
}

.novel-info {
    padding: 8px 12px 6px;
    background: white;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.novel-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 0;
    padding-top: 0;
    line-height: 1.3;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.novel-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.novel-card .novel-category {
    font-size: 12px;
    color: #1976d2;
    background: rgba(25, 118, 210, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.novel-card .novel-popularity {
    font-size: 12px;
    color: #e67e22;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* author-meeting轮播图样式已清理 */

/* download-app 样式已移除 */

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* 轮播图dots样式已清理 */

.novel-card.swallow-out {
    animation: swallowOut 0.5s forwards;
}
@keyframes swallowOut {
    0% { opacity: 0.7; transform: translateY(-50%) scale(0.7); left: 0%; }
    100% { opacity: 0; transform: translateY(-50%) scale(0.3); left: -20%; }
}

.novel-card.spit-in {
    animation: spitIn 0.5s forwards;
}
@keyframes spitIn {
    0% { opacity: 0; transform: translateY(-50%) scale(0.3); left: 100%; }
    100% { opacity: 0.7; transform: translateY(-50%) scale(0.7); left: 80%; }
}

/* 轮播图按钮样式已清理 */

.info-activity-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 30px 0 10px 0;
    min-height: 260px;
}
.info-list, .activity-list {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 30px 30px 20px 30px;
    min-width: 0;
}
.info-list h2, .activity-list h2 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 18px;
    color: #222;
}
.info-list ul, .activity-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-list ul li {
    font-size: 16px;
    color: #222;
    margin-bottom: 14px;
    line-height: 1.7;
    cursor: pointer;
    transition: color 0.2s;
}
.info-list ul li:hover {
    color: #1976d2;
    text-decoration: underline;
}
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.more-link {
    font-size: 15px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}
.more-link:hover {
    color: #1976d2;
}
.activity-list ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #222;
    margin-bottom: 14px;
    line-height: 1.7;
}
.activity-list ul li .date {
    color: #888;
    font-size: 15px;
    margin-left: 18px;
    white-space: nowrap;
}
.activity-ad {
    width: 100%;
    margin-top: 28px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    object-fit: cover;
}
@media (max-width: 900px) {
    .info-activity-section {
        flex-direction: column;
        gap: 30px;
        padding: 20px 0 10px 0;
    }
    .info-list, .activity-list {
        padding: 20px 15px 15px 15px;
    }
    .activity-ad {
        margin-top: 18px;
    }
}

.male-books-section {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.95));
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.female-books-section {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.95));
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.male-books-header {
    margin-bottom: 10px;
}
.male-books-header h2 {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
}
.male-books-desc {
    font-size: 16px;
    color: #888;
    margin-bottom: 18px;
}
.male-books-content {
    display: flex;
    gap: 36px;
}
.male-book-featured {
    flex: 0 0 260px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 18px 18px 18px 18px;
    margin-bottom: 0;
}
.male-book-featured img {
    width: 150px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0;
    margin-right: 16px;
}
.featured-info {
    width: 100%;
    display: block;
    flex: 1;
}
.featured-title {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
}
.featured-author {
    font-size: 15px;
    color: #888;
    margin-bottom: 8px;
}
.featured-desc {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 48px;
}
.male-book-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.male-book-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 12px;
    min-width: 0;
    max-width: 100%;
    height: 120px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.male-book-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.male-book-item img {
    width: 70px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}
.item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0 5px;
}
.item-title {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-author {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    max-height: 42px;
}
.male-book-item a {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
}
@media (max-width: 1100px) {
    .male-book-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .male-books-content {
        flex-direction: column;
        gap: 24px;
    }
    .male-book-featured {
        flex: none;
        align-items: center;
        margin: 0 auto;
        flex-direction: column;
        max-height: none;
    }
    .male-book-featured img {
        width: 120px;
        height: 160px;
        margin-right: 0;
        margin-bottom: 16px;
    }
    .featured-info {
        width: auto;
        flex: 1;
    }
}
@media (max-width: 700px) {
    .male-book-list {
        grid-template-columns: 1fr;
    }
    .male-book-item img {
        width: 60px;
        height: 80px;
    }
    .male-book-featured img {
        width: 90px;
        height: 120px;
        margin-right: 0;
        margin-bottom: 12px;
    }
}

.books-tabs-section {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding: 0 20px 20px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.books-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tab-btn {
    font-size: 18px;
    color: #666;
    background: none;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: #1976d2;
    font-weight: bold;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1976d2;
}

.novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.novel-grid .novel-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.novel-grid .novel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.novel-grid .novel-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.novel-grid .novel-info {
    padding: 12px;
}

.novel-grid .novel-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.novel-grid .novel-author {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.novel-grid .novel-category {
    font-size: 12px;
    color: #1976d2;
    background: rgba(25, 118, 210, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.no-books {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #1976d2;
    font-size: 16px;
}

.footer-covers-section,
.footer-covers-section.reverse,
.footer-covers-section.second,
.footer-covers-list,
.footer-cover-item,
.cover-link,
.cover-image,
.cover-image::before,
.cover-image::after,
.cover-image img,
.cover-link:hover .cover-image img,
.cover-info,
.footer-covers-section::before,
.footer-covers-section::after,
.footer-covers-section.reverse::before,
.footer-covers-section.second::before,
.footer-covers-section.reverse::after,
.footer-covers-section.second::after,
.footer-covers-grid-section,
.footer-covers-grid-list,
.footer-covers-grid-item,
.footer-covers-grid-item img,
.footer-covers-grid-item:hover,
.footer-covers-masonry-section,
.footer-covers-masonry-list,
.footer-covers-masonry-item,
.footer-covers-masonry-item img,
.footer-covers-masonry-item:hover,
.footer-covers-brick-section,
.footer-covers-brick-list,
.footer-covers-brick-item,
.footer-covers-brick-item img,
.footer-covers-brick-item:hover,
.footer-covers-brick-item:nth-child(8n+5),
.footer-covers-brick-item:nth-child(8n+6),
.footer-covers-brick-item:nth-child(8n+7),
.footer-covers-brick-item:nth-child(8n+8),
.footer-covers-brick-item:nth-child(4n+3),
.footer-covers-brick-item:nth-child(4n+4) {
    display: none !important;
}

/* banner-dots轮播图样式已清理 */

/* 重写链接样式 */
.book-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    position: relative !important;
    z-index: 1 !important;
}

.male-book-item a.book-link img {
    flex-shrink: 0 !important;
}

.male-book-item a.book-link .item-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 小说卡片链接样式 */
.novel-card a, 
.male-book-featured a, 
.male-book-item a, 
.footer-cover-item a, 
.rank-book-cover a,
.book-cover a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
}

.novel-card a:hover,
.male-book-featured a:hover,
.male-book-item a:hover,
.footer-cover-item a:hover,
.rank-book-cover a:hover,
.book-cover a:hover {
    text-decoration: none;
    color: inherit;
}

.book-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 12px;
}

.book-cover {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 16px;
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.book-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
}

.book-author {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.book-desc {
    font-size: 14px;
    color: #555;
}

.male-books-section .item-title {
    color: #222;
    font-weight: bold;
}

.male-books-section .item-author {
    color: #666;
}

.male-books-section .item-desc {
    color: #444;
}

.user-info-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.user-avatar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    background: #fff;
}
.user-name-nav {
    font-weight: 500;
    color: #333;
    font-size: 15px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-info-nav .dropdown-toggle {
    border: none;
    background: none;
    box-shadow: none;
    color: #888;
    font-size: 16px;
    margin-left: 2px;
}
.user-info-nav .dropdown-menu {
    min-width: 120px;
    font-size: 15px;
}
.user-info-nav .dropdown-item {
    cursor: pointer;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: inherit !important;
    width: 100%;
    height: 100%;
}
.logo-link:visited,
.logo-link:active,
.logo-link:focus {
    color: inherit !important;
    text-decoration: none !important;
    outline: none;
}
.logo-link:hover .logo-icon,
.logo-link:hover .logo-text {
    filter: brightness(1.1);
}

/* 登录注册页面美化 */
.auth-box {
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 40px 36px 32px 36px;
    min-width: 340px;
    max-width: 400px;
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (max-width: 600px) {
    .auth-box {
        min-width: 90vw;
        padding: 24px 8px;
    }
}

/* 登录注册页面导航栏橙色渐变背景 */
body.login-page .header {
    background: linear-gradient(135deg, #1976d2, #42a5f5, #64b5f6) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.3) !important;
}
body.login-page .header .nav a,
body.login-page .header .logo-text,
body.login-page .header .logo-icon,
body.login-page .header .nav,
body.login-page .header .search-box input,
body.login-page .header .search-box i {
    color: #fff !important;
}
body.login-page .header .nav a {
    background: transparent;
}
body.login-page .header .nav a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
}
/* 登录页面 download-app 样式已移除 */

/* 用户头像下拉菜单美化 */
.user-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 2px 10px 2px 2px;
    border-radius: 20px;
    transition: background 0.2s;
}
.user-dropdown-trigger:hover {
    background: #f5f6fa;
}
.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    min-width: 130px;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border-radius: 8px;
    padding: 8px 0;
    animation: dropdownFadeIn 0.18s;
}
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.user-dropdown-menu li {
    list-style: none;
}
.user-dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.18s, color 0.18s;
    border: none;
    background: none;
    text-align: left;
}
.user-dropdown-menu .dropdown-item:hover {
    background: #f0f0f0;
    color: #1976d2;
}
.user-avatar-nav {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid #fff;
}
.user-name-nav {
    font-weight: 500;
    color: #222;
    font-size: 15px;
}

/* 男/女频好书主推大卡+右侧小卡布局 */
.featured-books-flex {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 32px;
    margin: 0 auto 30px auto;
    min-height: 320px;
}
.featured-books-layout {
    display: grid;
    grid-template-columns: 258px repeat(3, 1fr);
    grid-template-rows: 465px;
    grid-gap: 20px 36px;
    margin-top: 40px;
    width: 100%;
    min-height: 140px;
    height: 465px;
    align-items: stretch;
}
.main-featured-card {
    width: 258px;
    height: 465px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.3s, transform 0.3s;
}
.main-featured-card:hover {
    box-shadow: 0 8px 32px rgba(25,118,210,0.13);
    transform: translateY(-4px) scale(1.03);
}
.main-featured-card img {
    width: 258px;
    height: 346px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}
.main-featured-info {
    width: 258px;
    height: 101px;
    box-sizing: border-box;
    padding: 14px 18px 10px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.main-featured-title {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.main-featured-author {
    font-size: 15px;
    color: #888;
    margin-bottom: 6px;
}
.main-featured-category {
    font-size: 13px;
    color: #1976d2;
    background: rgba(25, 118, 210, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}
.main-featured-desc {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin-top: 2px;
    min-height: 36px;
    max-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.side-featured-list {
    flex: 1 1 0;
    display: grid;
    grid-template-columns: repeat(3, 260px);
    grid-template-rows: repeat(3, 150px);
    gap: 20px 16px;
    align-items: stretch;
}
.side-featured-card {
    height: 150px;
    width: 260px;
    min-height: 0;
    max-height: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: row;
}
.side-featured-card:hover {
    box-shadow: 0 6px 18px rgba(25,118,210,0.13);
    transform: translateY(-2px) scale(1.03);
}
.side-featured-card img {
    width: 95px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
    flex-shrink: 0;
}
.side-featured-info {
    width: 160px;
    padding: 7px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
.side-featured-title {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.side-featured-author {
    font-size: 13px;
    color: #888;
    margin-bottom: 3px;
}
.side-featured-category {
    font-size: 12px;
    color: #1976d2;
    background: rgba(25, 118, 210, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 3px;
}
.side-featured-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
@media (max-width: 900px) {
    .featured-books-flex, .featured-books-layout {
        flex-direction: column;
        gap: 18px;
    }
    .main-featured-card {
        width: 100%;
        max-width: 100%;
    }
    .side-featured-list {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .side-featured-list {
        grid-template-columns: 1fr;
    }
    .main-featured-card img {
        height: 180px;
    }
}

.books-tab-content .tab-pane {
    display: none;
}
.books-tab-content .tab-pane.active {
    display: block;
}

/* 主推大卡片和小卡片内a标签去除下划线 */
.main-featured-card a,
.main-featured-card a:hover,
.side-featured-card a,
.side-featured-card a:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* 公告通知弹窗样式 */
.notice-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.35);
    animation: fadeIn 0.2s;
}
.notice-modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    width: 95vw;
    max-width: 420px;
    padding: 0 0 18px 0;
    animation: slideUp 0.2s;
    display: flex;
    flex-direction: column;
}
.notice-modal-header {
    display: flex;
    align-items: center;
    padding: 18px 24px 10px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 18px;
    font-weight: 600;
    color: #1976d2;
}
.notice-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.notice-modal-close:hover {
    color: #1976d2;
}
.notice-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 18px 24px 0 24px;
}
.notice-item {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}
.notice-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}
.notice-content {
    font-size: 15px;
    color: #444;
    margin-bottom: 4px;
    word-break: break-all;
}
.notice-time {
    font-size: 12px;
    color: #aaa;
    text-align: right;
}
.notice-loading, .notice-empty, .notice-error {
    text-align: center;
    color: #888;
    font-size: 15px;
    margin: 30px 0;
}
@media (max-width: 600px) {
    .notice-modal-content {
        max-width: 98vw;
        padding: 0 0 10px 0;
    }
    .notice-modal-header, .notice-modal-body {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* 公告未读红点和未读状态样式 */
.notice-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #1976d2;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.notice-unread {
    background: #e3f2fd;
    border-left: 3px solid #1976d2;
}
.notice-item {
    padding: 12px 18px 10px 18px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.notice-item:last-child {
    border-bottom: none;
}
.mark-read-btn {
    position: absolute;
    right: 18px;
    top: 16px;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid #1976d2;
    color: #1976d2;
    background: #fff;
    transition: background 0.2s, color 0.2s;
}
.mark-read-btn:hover {
    background: #1976d2;
    color: #fff;
}
@media (max-width: 600px) {
    .notice-modal-content {
        max-width: 98vw;
        padding: 0 0 10px 0;
    }
    .notice-item {
        padding: 10px 8px 8px 8px;
    }
    .mark-read-btn {
        right: 8px;
        top: 10px;
        font-size: 11px;
        padding: 2px 8px;
    }
}

/* 公告弹窗header左对齐修正 */
.notice-modal-header {
    display: flex;
    align-items: center;
    padding: 18px 24px 10px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 18px;
    font-weight: 600;
    color: #1976d2;
}
.notice-modal-header-flex {
    display: flex;
    align-items: center;
}
.notice-modal-title-group {
    display: flex;
    align-items: center;
}
.notice-modal-close {
    margin-left: auto;
}
.notice-batch-btn {
    margin-left: 8px;
    height: 32px;
    line-height: 32px;
    padding: 0 16px;
    font-size: 15px;
    border: 1px solid #1976d2;
    color: #1976d2;
    background: #fff;
    border-radius: 16px;
    transition: background 0.2s, color 0.2s;
}
.notice-batch-btn:hover {
    background: #1976d2;
    color: #fff;
}
@media (max-width: 600px) {
    .notice-batch-btn {
        height: 28px;
        font-size: 13px;
        padding: 0 10px;
        border-radius: 14px;
    }
}

/* 内容区顶部批量删除按钮样式优化 */
.notice-modal-body .notice-batch-btn {
  position: static;
  margin: 0 0 0 8px;
  float: none;
  display: inline-block;
}
.notice-modal-body > div:first-child {
  text-align: right;
  margin-bottom: 10px;
}

/* 全局禁用按钮样式 */
button.disabled, .profile-btn.disabled {
    background: #ccc !important;
    color: #fff !important;
    border: 1px solid #ccc !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.7;
}

/* 会员等级头像框样式 */
.avatar-frame {
    display: inline-block;
    position: relative;
    padding: 3px;
    border-radius: 50%;
    box-sizing: border-box;
    background: transparent;
    transition: box-shadow 0.3s, border 0.3s;
}

.crown-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.crown-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* 普通会员皇冠 - 银色光泽 */
.avatar-frame.normal .crown-icon { 
    filter: drop-shadow(0 0 8px #e0e0e0cc);
    animation: silverGlow 3s ease-in-out infinite alternate;
}

/* 高级会员皇冠 - 蓝色脉冲 */
.avatar-frame.senior .crown-icon { 
    filter: drop-shadow(0 0 12px #1976d2cc);
    animation: bluePulse 2.5s ease-in-out infinite;
}

/* 超级会员皇冠 - 紫色闪烁 */
.avatar-frame.super .crown-icon { 
    filter: drop-shadow(0 0 16px #8e24aacc);
    animation: purpleSparkle 2s ease-in-out infinite;
}

/* 黑金会员皇冠 - 金色光芒（移除旋转） */
.avatar-frame.blackgold .crown-icon { 
    filter: drop-shadow(0 0 20px #ffd700ee);
    animation: goldGlow 2s ease-in-out infinite alternate;
}

/* 至尊会员皇冠 - 金色光芒（移除彩虹效果） */
.avatar-frame.supreme .crown-icon { 
    filter: drop-shadow(0 0 24px #ffd700ee);
    animation: supremeFloat 2s ease-in-out infinite alternate;
}

.avatar-frame.default .crown-icon { 
    filter: drop-shadow(0 0 10px #bdbdbdcc);
}

/* 导航栏皇冠样式 */
.crown-icon.crown-navbar {
    width: 12px !important;
    height: 12px !important;
    top: -8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
    display: block !important;
    position: absolute !important;
    pointer-events: none !important;
}

.crown-icon.crown-navbar svg {
    width: 12px !important;
    height: 12px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 导航栏皇冠动画效果 */
.crown-icon.crown-navbar {
    animation: navbarCrownGlow 3s ease-in-out infinite alternate;
}

.avatar-frame.crown-navbar .user-avatar,
.avatar-frame.crown-navbar .user-avatar-nav {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: static !important;
}

/* 皇冠动画效果 */
@keyframes silverGlow {
    0% { filter: drop-shadow(0 0 8px #e0e0e0cc) brightness(1); }
    100% { filter: drop-shadow(0 0 12px #f5f5f5ee) brightness(1.2); }
}

@keyframes bluePulse {
    0%, 100% { 
        filter: drop-shadow(0 0 12px #1976d2cc) scale(1);
        transform: translateX(-50%) scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 18px #42a5f5ee) scale(1.05);
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes purpleSparkle {
    0%, 100% { 
        filter: drop-shadow(0 0 16px #8e24aacc) brightness(1);
        transform: translateX(-50%) rotate(0deg);
    }
    25% { 
        filter: drop-shadow(0 0 20px #ce93d8ee) brightness(1.3);
        transform: translateX(-50%) rotate(5deg);
    }
    75% { 
        filter: drop-shadow(0 0 20px #ba68c8ee) brightness(1.3);
        transform: translateX(-50%) rotate(-5deg);
    }
}

@keyframes goldGlow {
    0% { filter: drop-shadow(0 0 20px #ffd700ee) brightness(1) saturate(1); }
    100% { filter: drop-shadow(0 0 28px #fff8dcff) brightness(1.4) saturate(1.5); }
}

@keyframes supremeAura {
    0% { filter: drop-shadow(0 0 24px #ffd700ee) brightness(1); }
    100% { filter: drop-shadow(0 0 32px #fff8dcff) brightness(1.5); }
}

@keyframes supremeFloat {
    0% { 
        transform: translateX(-50%) translateY(0px) scale(1);
    }
    100% { 
        transform: translateX(-50%) translateY(-3px) scale(1.08);
    }
}

@keyframes navbarCrownGlow {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* 皇冠悬停效果 */

/* 样式文件已清理，移除金榜相关内容 */

/* 全局橙色背景修复 - 确保内容区域不会有橙色背景 */
.main-container,
.container,
.content,
.content-area,
.main-content,
.page-content,
.section,
.section-content,
.card,
.card-body,
.panel,
.panel-body,
.form-container,
.form-wrapper,
.modal-content,
.modal-body,
.tab-content,
.tab-pane,
.profile-section,
.user-section,
.settings-section,
.account-section,
.info-section,
.edit-section,
.upload-section,
.file-section,
.input-group,
.input-wrapper,
.textarea-wrapper,
.select-wrapper {
    background: #fff !important;
    background-color: #fff !important;
}

/* 保持某些特定区域的浅色背景 */
.bg-light,
.bg-gray,
.bg-subtle,
.sidebar,
.navigation,
.breadcrumb,
.pagination,
.stats-box,
.info-box,
.tip-box,
.note-box {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
}

/* 修复可能的内联样式橙色背景 */
*[style*="background:#1976d2"],
*[style*="background-color:#1976d2"],
*[style*="background: #1976d2"],
*[style*="background-color: #1976d2"],
*[style*="background:#1976d2"],
*[style*="background-color:#1976d2"],
*[style*="background: #1976d2"],
*[style*="background-color: #1976d2"] {
    background: #fff !important;
    background-color: #fff !important;
}

/* 保持按钮和交互元素的橙色 - 这些元素保留原有样式 */

/* ========================================
   全面移动端响应式优化
   ======================================== */

/* 平板端优化 (1024px以下) */
@media (max-width: 1024px) {
    .header {
        padding: 8px 30px;
    }
    
    .nav-center {
        gap: 20px;
    }
    
    .container,
    .main-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* 移动端优化 (768px以下) */
@media (max-width: 768px) {
    /* 全局页脚隐藏 */
    .footer,
    footer {
        display: none !important;
    }
    
    /* 回到顶部按钮隐藏 */
    .back-to-top,
    #backToTop {
        display: none !important;
    }
    
    /* 导航栏移动端适配 */
    .header {
        padding: 8px 15px;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .nav-left {
        width: auto;
        gap: 10px;
    }
    
    .logo {
        padding: 5px 8px;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    /* 隐藏桌面端导航 */
    .nav-center,
    .search-container {
        display: none;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle,
    .mobile-search-toggle {
        display: block !important;
        background: none;
        border: none;
        color: #fff;
        font-size: 18px;
        padding: 8px;
        cursor: pointer;
    }
    
    /* 移动端导航菜单 */
    .mobile-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .mobile-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav li {
        border-bottom: 1px solid #eee;
    }
    
    .mobile-nav a {
        display: block;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        font-size: 16px;
        transition: background 0.2s;
    }
    
    .mobile-nav a:hover,
    .mobile-nav a.active {
        background: #f8f8f8;
        color: #1976d2;
    }
    
    /* 内容区域适配 */
    body {
        padding-top: 60px !important;
        padding-bottom: 0 !important;
    }
    
    .container,
    .main-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    /* 卡片和内容区域 */
    .card,
    .section {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    /* 按钮适配 */
    .btn,
    .button {
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 8px;
        min-height: 44px; /* 符合触摸标准 */
    }
    
    /* 表单元素适配 */
    input,
    textarea,
    select {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 12px 15px;
        border-radius: 8px;
        min-height: 44px;
    }
    
    /* 文字大小调整 */
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }
    
    /* 间距调整 */
    .section {
        padding: 20px 15px;
    }
    
    /* 图片响应式 */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* 小屏幕移动端优化 (480px以下) */
@media (max-width: 480px) {
    .header {
        padding: 6px 10px;
        height: 55px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    body {
        padding-top: 55px !important;
    }
    
    .container,
    .main-container {
        padding: 0 10px;
        margin: 15px auto;
    }
    
    .section {
        padding: 15px 10px;
        margin: 10px 0;
    }
    
    .btn,
    .button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    input,
    textarea,
    select {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    h1 { font-size: 20px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }
    h4 { font-size: 14px; }
}

/* 超小屏幕优化 (360px以下) */
@media (max-width: 360px) {
    .header {
        padding: 5px 8px;
        height: 50px;
    }
    
    .logo img {
        width: 24px;
        height: 24px;
    }
    
    .logo-text {
        font-size: 12px;
    }
    
    body {
        padding-top: 50px !important;
    }
    
    .container,
    .main-container {
        padding: 0 8px;
    }
    
    .section {
        padding: 12px 8px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        height: 45px;
    }
    
    body {
        padding-top: 45px !important;
    }
    
    .mobile-nav {
        top: 45px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 移除hover效果，使用active状态 */
    .btn:hover,
    .button:hover,
    a:hover {
        transform: none;
    }
    
    .btn:active,
    .button:active,
    a:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    /* 增大触摸目标 */
    .mobile-nav a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

/* iOS特定优化 */
@supports (-webkit-overflow-scrolling: touch) {
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-nav {
        -webkit-overflow-scrolling: touch;
    }
}

/* 现代移动浏览器优化 */
@supports (env(safe-area-inset-top)) {
    .header {
        padding-top: calc(8px + env(safe-area-inset-top));
        height: calc(60px + env(safe-area-inset-top));
    }
    
    body {
        padding-top: calc(60px + env(safe-area-inset-top)) !important;
    }
    
    .mobile-nav {
        top: calc(60px + env(safe-area-inset-top));
    }
}
