/* 继承全局变量 */
:root {
    --primary-color: #0B1C3D;
    --header-color: #050A17;
    --accent-color: #1E90FF;
    --text-color: #333;
    --white: #ffffff;
    --max-width: 1200px;
}

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

body {
    margin: 0;
    padding-top: 80px;
    min-width: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

/* Header */
.header {
    background: var(--header-color);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.header__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__left {
    display: flex;
    align-items: center;
    white-space: nowrap; /* 防止域名换行 */
    
}

.header__right {
    display: flex;
    align-items: center;
    transform: scale(0.5); /* 将按钮缩小到原来的一半 */
    transform-origin: right center; /* 从右侧开始缩放 */
}

.header__logo {
    width: 40px;  /* 调整logo大小 */
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
}

.header__title {
    color: var(--white);
    margin-left: 1rem;
    font-size: 1.2rem; /* 调小字体大小 */
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap; /* 防止文字换行 */
}

.header__domain {
    color: var(--accent-color); /* 使用亮蓝色突出显示 */
    font-weight: bold;
}

/* 面包屑导航 */
.breadcrumb {
    background: var(--header-color);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.breadcrumb__link {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb__separator {
    color: var(--white);
    margin: 0 0.5rem;
    opacity: 0.5;
}

.breadcrumb__current {
    color: var(--white);
}

/* Coming Soon Hero */
.chapter-hero.coming-soon {
    position: relative;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../chapter-hero.webp');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    text-align: center;
    color: var(--white);
}

.chapter-hero__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.chapter-hero__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.chapter-hero__subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* 书签提示样�� */
.bookmark-prompt {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    backdrop-filter: blur(5px);
    max-width: 600px;
    margin: 0 auto;
}

.bookmark-prompt__text {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.bookmark-prompt__instructions {
    font-size: 0.9rem;
    opacity: 0.8;
}

.bookmark-prompt__instructions kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin: 0 0.2rem;
}

/* 内容区域 */
.coming-soon-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

.coming-soon-content__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Footer */
.footer {
    background: var(--header-color);
    padding: 2rem 0;
    color: var(--white);
}

.footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer__copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {

    .chapter-hero__title {
        font-size: 2rem;
    }

    .chapter-hero__subtitle {
        font-size: 1.2rem;
    }

    .bookmark-prompt {
        margin: 0 1rem;
        padding: 1rem;
    }

    .bookmark-prompt__text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .header__container {
        padding: 0.2rem 1rem;
    }
    
    .header__logo {
        width: 32px; /* 移动端更小的logo */
        height: 32px;
    }
    
    .header__title {
        font-size: 1rem; /* 移动端更小的字体 */
    }
    
    /* 修复 Buy me a coffee 按钮样式 */
    .header__right {
        transform: scale(0.4); /* 移动端更小 */
        transform-origin: right center;
        margin-left: 0.5rem;
    }
    
    /* 确保按钮容器不会重叠 */
    .header__right iframe {
        max-width: 100%;
        margin: 0 !important;
    }
}

/* 超小屏幕的额外调整 */
@media (max-width: 360px) {
    .header__title {
        font-size: 0.9rem;
    }
    
    .header__right {
        transform: scale(0.35); /* 超小屏幕进一步缩小 */
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chapter-hero__container {
    animation: fadeIn 0.8s ease-out;
}

.bookmark-prompt {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

/* 书签按钮样式 */
.bookmark-btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.bookmark-btn:hover {
    background: #1a7ae5;
    transform: translateY(-2px);
}

.bookmark-btn:active {
    transform: translateY(0);
}

.bookmark-btn__icon {
    font-size: 1.2rem;
}

.bookmark-instructions {
    font-size: 0.9rem;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bookmark-instructions.show {
    opacity: 1;
    height: auto;
    margin-top: 1rem;
}

/* Coming Soon Content Styles */
.coming-soon-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

.coming-soon-content__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    color: var(--text-color);
}

/* Release Info Section */
.release-info {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

/* Section Headings */
.coming-soon-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.coming-soon-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 2rem 0 1rem;
}

.coming-soon-content h4 {
    font-size: 1.2rem;
    color: #34495e;
    margin: 1.5rem 0 1rem;
}

/* Paragraphs */
.coming-soon-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

/* Release Time Table */
.release-time-table {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.time-zones {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.time-zones li {
    padding: 0.8rem;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.time-zones strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Chapter Preview Section */
.chapter-preview {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

/* Stay Updated Section */
.stay-updated {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.update-features {
    list-style: none;
    margin: 1.5rem 0;
}

.update-features li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
}

.update-features li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .coming-soon-content__container {
        padding: 0 1rem;
    }

    .coming-soon-content h2 {
        font-size: 1.8rem;
    }

    .coming-soon-content h3 {
        font-size: 1.3rem;
    }

    .release-info,
    .chapter-preview,
    .stay-updated {
        padding: 1.5rem;
    }

    .time-zones {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.release-info,
.chapter-preview,
.stay-updated {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.chapter-preview {
    animation-delay: 0.2s;
}

.stay-updated {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 预览图片样式 */
.preview-image {
    margin: 2rem 0;
    text-align: center;
}

.preview-image__img {
    max-width: 50%; /* 电脑端图片宽度设为50% */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* 视频容器样式 */
.preview-videos {
    margin: 2rem 0;
}

.preview-videos__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.preview-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    height: 0;
}

.preview-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .preview-videos__container {
        grid-template-columns: 1fr; /* 手机端一列显示 */
        gap: 1rem;
    }

    .preview-image__img {
        max-width: 100%; /* 手机端保持全宽 */
    }

    .preview-videos {
        margin: 1.5rem 0;
    }
}

/* Support Section Styles */
.support-section {
    margin: 3rem auto;
    max-width: 800px;
    text-align: center;
}

.support-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.support-button {
    background: #f8f9fa;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.support-button:hover {
    transform: translateY(-5px);
}

.support-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.support-text {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.4;
}

.support-message {
    margin-top: 2rem;
}

.support-message p {
    color: #666;
    margin-bottom: 1rem;
}

.coffee-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFDD00;
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.coffee-button:hover {
    transform: translateY(-2px);
}

.coffee-icon {
    font-size: 1.2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .support-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .support-button {
        padding: 1rem;
    }

    .support-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

/* 章节导航 */
.chapter-nav {
    background: var(--header-color);
    padding: 1.5rem 0;
}

.chapter-nav__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.chapter-nav__link {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.chapter-nav__link:hover {
    background: var(--accent-color);
}

.chapter-nav__arrow {
    font-size: 1.2rem;
    margin: 0 0.5rem;
}

.chapter-nav__link--prev .chapter-nav__arrow {
    margin-right: 0.5rem;
}

.chapter-nav__link--next .chapter-nav__arrow {
    margin-left: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chapter-hero__title {
        font-size: 2rem;
    }

    .chapter-hero__subtitle {
        font-size: 1rem;
    }

    .chapter-nav__container {
        flex-direction: column;
    }

    .chapter-nav__link {
        width: 100%;
        justify-content: center;
    }
}

/* Chapters Section */
.chapters {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.chapters__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.chapters__title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
}

.chapters__nav {
    max-width: 800px;
    margin: 0 auto;
}

.chapters__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.chapters__item {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.chapters__link {
    display: block;
    padding: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
}

.chapters__link::after {
    content: '→';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chapters__item:hover .chapters__link::after {
    opacity: 1;
    transform: translate(5px, -50%);
}

.chapters__link:hover {
    color: var(--accent-color);
}

/* Latest Chapter Badge */
.chapters__item--latest {
    position: relative;
}

.chapters__item--latest::before {
    content: 'NEW';
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--red);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

/* Chapter Number */
.chapters__number {
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chapters {
        padding: 2rem 0;
    }

    .chapters__title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .chapters__list {
        grid-template-columns: 1fr;
    }

    .chapters__link {
        padding: 1.2rem;
        font-size: 1rem;
    }
}

.chapters__subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.chapters__support-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background-color: rgba(30, 144, 255, 0.1);
    transition: all 0.3s ease;
}

.chapters__support-link:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* 添加咖啡���标 */
.chapters__support-link::after {
    content: '☕';
    margin-left: 4px;
    font-size: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .chapters__subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

.ad-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ad-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.ad-image {
    width: 100%;
    max-width: 728px; /* 标准横幅广告尺寸 */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    .ad-container {
        margin: 15px auto;
        padding: 10px;
    }
    
    .ad-image {
        max-width: 100%;
    }
}
