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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/bg1920x500.webp');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    padding: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    border: 2px solid white;
    padding: 10px 20px;
    display: inline-block;
}

.subtitle {
    font-size: 1.2rem;
    margin-top: 20px;
}

.main-nav {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav li {
    margin: 0;
    position: relative;
}
.main-nav a {
    text-decoration: none;
    color: #333;
    padding: 15px;
    display: block;
    transition: all 0.3s ease;
}
.main-nav a:hover {
    background: #f5f5f5;
}

.language-dropdown {
    position: relative;
}
.language-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}
.language-dropdown > a::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;
}
.language-dropdown:hover > a::after {
    transform: rotate(180deg);
}
.language-button {
    position: relative;
    z-index: 2;
}
.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 150px;
    padding: 8px 0;
    z-index: 1000;
}
.language-dropdown:hover .language-menu {
    display: block;
}
.language-menu a {
    padding: 12px 20px;
    display: block;
    color: #333;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    font-weight: normal;
    background-color: transparent;
    margin: 0;
    border: none;
    position: relative;
    z-index: 2;
}
.language-menu a:hover {
    background-color: #f5f5f5;
    color: #e74c3c;
}
.language-menu a.active {
    background-color: #e74c3c;
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: none;
    border: none;
    margin: 0;
    position: relative;
    z-index: 2;
    opacity: 1;
    visibility: visible;
}

.content {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.manga-description {
    text-align: center;
    margin-bottom: 5px;
    line-height: 1.8;
}

.manga-description p {
    margin-bottom: 5px;
}

.manga-covers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.manga-covers img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.manga-covers img:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 在移动设备上调整封面图片大小 */
@media (max-width: 768px) {
    .manga-covers img {
        width: 100%;
        max-width: 300px;
    }
}

.chapter-preview {
    margin: 5px 0;
}

.chapter-preview a {
    text-decoration: none;
    color: #e74c3c;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-block;
}

.chapter-preview a:hover {
    color: #c0392b;
}

.chapters {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

.chapters h3 {
    margin-bottom: 20px;
    text-align: center;
}

.chapters ul {
    list-style: none;
}

.chapters li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.chapters li:last-child {
    border-bottom: none;
}

.chapters a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.chapters a:hover {
    color: #e74c3c;
}

.policy-content {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.policy-section p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.policy-section ul {
    list-style: none;
    padding-left: 20px;
}

.policy-section li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #666;
}

.main-nav a.active {
    color: #e74c3c;
    font-weight: bold;
}

/* Chapter specific styles */
.chapter-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.chapter-content img {
    width: 100%;
    height: auto;
    margin: 10px 0;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chapter-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: #f5f5f5;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 4px;
}

.chapter-navigation a {
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s ease;
}

.chapter-navigation a:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.floating-button {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #e74c3c;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: 500;
}

.floating-button:hover {
    background-color: #c0392b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.keyboard-guide {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 在移动设备上隐藏快捷键提示 */
@media (max-width: 768px), (pointer: coarse) {
    .keyboard-guide {
        display: none;
    }
}

.keyboard-guide h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    text-align: center;
    color: white;
}

.keyboard-guide ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.keyboard-guide li {
    display: flex;
    align-items: center;
    margin: 8px 0;
    white-space: nowrap;
}

.keyboard-guide .key {
    display: inline-block;
    min-width: 20px;
    text-align: center;
    margin-right: 10px;
    color: #e74c3c;
}

/* 广告容器样式 */
.ad-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px auto;
    text-align: center;
}

/* ExoClick广告元素样式 */
.eas6a97888e2 {
    display: inline-block !important;
    margin: 0 auto !important;
    text-align: center !important;
} 