/* 公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* 夜间模式 */
body.night-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* kevin 新增 */
a {
    text-decoration: none;
}




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

/* 头部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 头部容器样式 */
#header-container {
    position: relative;
    z-index: 1000;
}

.night-mode .header {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;

    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.logo-text {
    width: 92px;
    height: 18px;
    font-family: Source Han Sans, Source Han Sans;
    font-weight: 500;
    font-size: 18px;
    color: #333333;
    line-height: 18px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff6b35;
}

.night-mode .nav-links a {
    color: #e0e0e0;
}

.night-mode .nav-links a:hover,
.night-mode .nav-links a.active {
    color: #ff6b35;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 25px;
    padding: 8px 15px;
    min-width: 300px;
    border: 1px solid #e0e0e0;
}

.night-mode .search-bar {
    background: #404040;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    padding: 5px 10px;
    font-size: 14px;
}

.night-mode .search-bar input {
    color: #e0e0e0;
}

.search-bar input::placeholder {
    color: #999;
}

.night-mode .search-bar input::placeholder {
    color: #888;
}

.search-icon {
    color: #999;
    cursor: pointer;
}

.night-mode .search-icon {
    color: #888;
}

.user-icon {
    width: 32px;
    height: 32px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 15px;
    overflow: hidden;
}

.user-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.night-mode .user-icon {
    background: #555;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
}

/* 内容包装器样式已移动到各页面专用CSS文件中 */

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ff6b35;
    color: #ff6b35;
}

.btn-outline:hover {
    background: #ff6b35;
    color: white;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.night-mode .card {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* 固定布局 - 移除响应式设计 */

/* 加载动画 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #ffffff;
}

.night-mode .loading {
    background: #1a1a1a;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页脚容器样式 */
#footer-container {
    position: relative;
    z-index: 10;
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.hidden { display: none; }
.visible { display: block; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

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

.night-mode ::-webkit-scrollbar-track {
    background: #2d2d2d;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 回到顶部按钮样式已移动到通用固定元素样式中 */

/* 固定布局 - 移除响应式设计 */

/* Header组件错误样式 */
.header-error {
    background: #ff6b6b;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    margin: 10px 0;
}

/* 页脚样式 */
.footer {
    position: relative;
    height: 118px;
    background: #191E22;
    border-radius: 0px 0px 0px 0px;
    margin: 0 auto;
    /*overflow: hidden;*/
    /*z-index: 10;*/
}

.footer-main {
    padding: 20px 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    /*height: 60px;*/
    display: flex;
    align-items: center;
    /*z-index: 2;*/
}

.footer-info {
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.info-item {
    white-space: nowrap;
    color: white;
}

.info-separator {
    color: white;
    margin: 0 5px;
}

.footer-bottom-line {
    height: 2px;
    background: #FF69B4;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* 夜间模式 */
.night-mode .footer {
    background: #0f1214;
}

.night-mode .footer-main {
    background: transparent;
}

.night-mode .info-item {
    color: #e0e0e0;
}

.night-mode .info-separator {
    color: #e0e0e0;
}

/* 通用section样式 */
.section-title {
    font-size: 20px;
    padding-left: 20px;
    padding-top: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.night-mode .section-title {
    color: #e0e0e0;
}

/* 通用nav-btn样式 */
.nav-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-btn:hover {
    background: #ffffff;
    color: #333;
    border: 1px solid #e0e0e0;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.night-mode .nav-btn {
    color: #999;
}

.night-mode .nav-btn:hover {
    background: #333;
    color: #e0e0e0;
}

/* 通用页面容器样式 */
.page-container {
    padding: 40px 0;
    background: #ffffff;
    min-height: calc(100vh - 200px);
}

.night-mode .page-container {
    background: #1a1a1a;
}

/* 通用卡片样式 */
.page-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.night-mode .page-card {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 通用标题样式 */
.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.night-mode .page-title {
    color: #e0e0e0;
}

/* 通用副标题样式 */
.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.night-mode .page-subtitle {
    color: #999;
}

/* 通用网格样式 */
.manga-grid {
    display: grid;
    gap: 20px;
}

.manga-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.manga-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.manga-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.manga-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}


/* 通用漫画封面样式 */
.manga-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.manga-cover-large {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
}

/* 通用漫画信息样式 */
.manga-info {
    padding: 15px;
}

.manga-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.night-mode .manga-title {
    color: #e0e0e0;
}

.manga-author {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.night-mode .manga-author {
    color: #999;
}

.manga-category {
    font-size: 0.8rem;
    color: #999;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.night-mode .manga-category {
    color: #666;
    background: #333;
}

/* 通用按钮组样式 */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-group .btn {
    flex: 1;
}

/* 通用标签样式 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #666;
    border-radius: 16px;
    font-size: 0.9rem;
    margin: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #e0e0e0;
    color: #333;
}

.tag.active {
    background: #007bff;
    color: white;
}

.night-mode .tag {
    background: #333;
    color: #999;
}

.night-mode .tag:hover {
    background: #444;
    color: #e0e0e0;
}

.night-mode .tag.active {
    background: #007bff;
    color: white;
}

/* Footer组件错误样式 */
.footer-error {
    background: #ff6b6b;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    margin: 10px 0;
}

/* 固定元素错误样式 */
.fixed-elements-error {
    background: #ff6b6b;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    margin: 10px 0;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.back-to-top:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-icon {
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

/* 夜间模式 */
.night-mode .back-to-top {
    background: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.night-mode .back-to-top:hover {
    background: #e55a2b;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
}

/* 固定二维码 */
.fixed-qr-code {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.night-mode .fixed-qr-code {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.fixed-qr-code:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.night-mode .fixed-qr-code:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.qr-code-section {
    text-align: center;
}

.qr-code {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 8px;
    display: block;
}

.fixed-qr-code .qr-text {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 3px;
    font-weight: 600;
}

.night-mode .fixed-qr-code .qr-text {
    color: #e0e0e0;
}

.fixed-qr-code .qr-subtext {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.night-mode .fixed-qr-code .qr-subtext {
    color: #999;
}


/***************************/

/*底部微信*/

/* 容器样式 */
.wechat-container {
    position: relative; /* 相对定位，作为二维码的定位参考 */
    display: inline-block;
    margin: 0px;
    top: -16px;
    left: -930px;
}


/* 微信图标样式 */
.wechat-icon {
    font-size: 12px;
    color: #07C160; /* 微信绿色 */
    cursor: pointer;
    transition: transform 0.3s;
}

/* 鼠标悬停图标时的效果 */
.wechat-container:hover .wechat-icon {
    transform: scale(1.1); /* 图标轻微放大 */
}

/* 二维码容器样式 */
.qrcode-wrapper {
    position: absolute; /* 绝对定位，相对于父容器 */
    bottom: 100%; /* 定位在图标上方 */
    left: 50%;
    transform: translateX(-50%); /* 水平居中 */
    margin-bottom: 10px; /* 与图标保持距离 */
    padding: 8px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    opacity: 0; /* 初始透明 */
    visibility: hidden; /* 初始隐藏 */
    transition: all 0.3s ease; /* 过渡动画 */
    z-index: 10; /* 确保显示在其他内容上方 */
}

/* 二维码图片样式 */
.qrcode-img {
    width: 160px;
    height: 160px;
}

/* 鼠标悬停时显示二维码 */
.wechat-container:hover .qrcode-wrapper {
    opacity: 1; /* 完全显示 */
    visibility: visible; /* 变为可见 */
}
