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

body {
    background: linear-gradient(180deg, lab(56.02% 59.72 44.05) 0%, #db3e2d 30%, #ec5a38 100%);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: #333;
    min-height: 100vh;
}

/* ====== 页面容器 ====== */
.page-container {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background-color: #ffb734;

}

/* ====== 装饰元素 ====== */
.deco-coin {
    display: none;
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.deco-coin.left-top {
    left: -10px;
    top: 420px;
    width: 80px;
    opacity: 0.9;
    transform: rotate(-15deg);
}

.deco-coin.right-bottom {
    right: -10px;
    bottom: 200px;
    width: 70px;
    opacity: 0.85;
    transform: rotate(20deg);
}

/* ====== 头部 Banner ====== */
.hero-banner {
    width: 100%;
    line-height: 0;
    position: relative;
}

.hero-banner img {
    width: 100%;
    display: block;
}

/* ====== 主内容区 ====== */
.main-content {
    padding: 0 20px 20px;
    position: relative;
    z-index: 1;
    margin-top:-100px;
}

/* ====== 卡片区块 ====== */
/* 短篇：上两角圆角 */
.card-short {
    border-radius: 15px 15px 0 0;
}

/* 长篇：下两角圆角 */
.card-long {
    border-radius: 0 0 15px 15px;
}

.card-section {
    background-color: transparent;
    background-image: none;
    background: #fffed7; /* 这个背景色实际上是全屏宽度的垫底 */
    position: relative;
    padding-bottom: 20px;
    padding-top:60px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin: 0; 
    z-index: 1;
}

/* 内容区：背景色 + 左右边线 */
.card-frame-inner {
    background-color: transparent;
    background-image: none;
    border-radius: 8px; /* 给边框设置一个小圆角 */
    position: relative;
    padding-bottom: 20px;
    margin: 40px 10px 0; /* 顶部留出margin让图片压在边框上时有空间，左右10px */
    border: 4px solid #ff5732; /* 边框移到里面这层 */
}

/* 卡片头部标题图片 */
.card-header-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%); /* 让图片正好压在border中间 */
    display: flex;
    justify-content: center;
    line-height: 0;
    background: #fffed7; /* 和底色一致，截断内部框线 */
}

.card-header-img img {
    /* 固定一个合理高度让其更可控，如果想按宽度走也可以换成 width: xxx */
    height: 50px;
    width: auto;
    display: block;
}

/* 卡片正文 */
.card-body {
    padding: 40px 20px 16px; /* 顶部增加padding，避开压在边上的图片 */
    background: transparent;
}

/* ====== 表格通用样式 ====== */
.table-container {
    width: 100%;
    margin-bottom: 24px;
}

.welfare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.welfare-table thead tr {
    background: #fff;
    color: #444444;
}

.welfare-table thead th {
    padding: 10px 8px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #444444;
    font-size: 14px;
    letter-spacing: 1px;
}

.welfare-table tbody tr:nth-child(odd) {
    background: #fff9f9;
}

.welfare-table tbody tr:nth-child(even) {
    background: #fff;
}

.welfare-table tbody td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #444444;
    color: #444;
    font-size: 14px;
}

.welfare-table tbody td.highlight {
    color: #444444;
    font-weight: bold;
}

/* ====== 详情文本 ====== */
.detail-text {
    font-size: 14px;
    color: #000;
    line-height: 1.9;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 10px;
}

.detail-text h3 {
    font-size: 15px;
    color: #000;
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 6px;
}

.detail-text p {
    margin-bottom: 6px;
    margin-top: 6px;
    text-align: justify;
}

.detail-text .bold-text {
    font-weight: bold;
    color: #444444;
}

/* ====== 分割线 ====== */
.divider {
    display: none;
}

.divider img {
    display: none;
}

/* ====== 长篇子项 ====== */
.sub-section {
    margin-top: 66px;
    margin-bottom: 24px;
    border: 2px solid #ffdbdb; /* 内部小项的浅色边框保留，不影响外部的大橘红框 */
    border-radius: 12px;
    padding: 28px 16px 16px;
    position: relative;
    box-shadow: 0 2px 8px rgba(228, 66, 52, 0.05);
}

.sub-title-img {
    position: absolute;
    top: 0;
    left: 50%;
    /* 将标题向上偏移，使其底部的红线刚好压在容器的顶部边框线上 */
    /* 由于图片本身可能下半部分是透明的或者红线在偏下位置，使用 calc 精确控制 */
    transform: translate(-50%, calc(-100% + 2px)); 
    display: flex;
    justify-content: center;
    line-height: 0;
    width: max-content;
    max-width: 80%;
}

.sub-title-img img {
    height: 32px;
    width: auto;
    display: block;
}

/* ====== 文本段落 ====== */
.text-block {
    font-size: 14px;
    color: #000;
    line-height: 1.9;
    margin-bottom: 8px;
    border-radius: 8px;
    padding: 12px 14px;
}

.text-block p {
    margin-bottom: 5px;
    margin-top: 5px;
}

.text-block .red {
    color: #444444;
    font-weight: bold;
}

.text-block .bold {
    font-weight: bold;
}

/* ====== 标签组 ====== */
.tag-group {
    margin: 8px 0;
    font-size: 13px;
    line-height: 2;
}

.tag-label {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    margin: 4px 4px 4px 0;
    font-size: 13px;
    transition: transform 0.2s;
}

.tag-label:hover {
    transform: scale(1.05);
}

.tag-red {
    background: linear-gradient(135deg, #d9251e, #e84535);
    color: #fff;
    box-shadow: 0 2px 6px rgba(217,37,30,0.3);
}

.tag-gray {
    background: #fff;
    color: #666;
    border: 1px solid #e0d0c0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.tag-row-label {
    font-weight: bold;
    color: #d9251e;
    min-width: 70px;
    flex-shrink: 0;
    font-size: 14px;
}

.editor-contact-simple {
    display: flex;
    flex-direction: row;
    gap: 12px;
    font-size: 14px;
    justify-content: space-around;
    padding: 20px 14px;
}

.editor-contact-simple .red {
    color: #444444;
}

/* ====== 签约地址 ====== */
.signup-url {
    font-size: 14px;
    color: #555;
    word-break: break-all;
    margin-top: 14px;
}

.signup-url a {
    color: #444444;
    text-decoration: none;
    transition: color 0.2s;
}

.signup-url a:hover {
    color: #e84535;
    text-decoration: underline;
}

/* ====== 完结续签奖说明 ====== */
.bonus-box {
    background: transparent;
    padding: 14px 16px;
    font-size: 14px;
    line-height: normal;
    color: #000;
}

.bonus-box .highlight-num {
    color: #444444;
    font-weight: bold;
    font-size: 15px;
}

/* ====== 页脚 ====== */
.footer-notice {
    background-color: transparent;
    background-image: none;
    border-radius: 0;
    background: transparent;
    position: relative;
    padding-bottom: 0;
    margin: 0;
}

/* 页脚标题 - 注意事项，叠加在背景图片之上 */
.footer-title {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ff5518 0%, #ff8d23 100%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 5px 40px;
    border-radius: 50px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(255, 85, 24, 0.3);
    z-index: 10;
}

.footer-header-img {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.footer-header-img img {
    width: 100%;
    display: block;
}

.footer-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 28% 10% 10%; /* 顶部增加比例，给标题留出空间 */
    box-sizing: border-box;
}

.notice-list {
    padding-left: 20px;
    font-size: 14px;
    color: #000; /* 改回黑色文字 */
    line-height: 1.6;
}

.notice-list li {
    margin-bottom: 12px;
}

.notice-list li::marker {
    color: #444444; /* 修改为主题红 */
    font-weight: bold;
}

/* ====================================================
   响应式 -- 桌面端适配 (>=768px)
   ==================================================== */
@media screen and (min-width: 768px) {
    .card-section {
        margin: 0;
    }
    
    .footer-notice {
        margin: 0; /* 电脑端不加边距，对齐屏幕或容器边缘 */
    }
    body {
        font-size: 15px;
        background: linear-gradient(180deg, #d33c2a 0%, #db3e2d 30%, #ec5a38 100%);
    }

    .page-container {
        max-width: 800px;
        margin: 20px auto;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    }

    .main-content {
        padding: 0 20px 28px;
    }

    .card-body {
        padding: 50px 28px 22px;
        background: transparent;
    }

    .welfare-table {
        font-size: 14px;
    }

    .welfare-table thead th {
        padding: 12px 10px;
        font-size: 14px;
    }

    .welfare-table tbody td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .detail-text {
        font-size: 14px;
        padding: 18px 22px;
    }

    .detail-text h3 {
        font-size: 16px;
    }

    .text-block {
        font-size: 14px;
        padding: 16px 20px;
    }

    .tag-label {
        padding: 4px 18px;
        font-size: 14px;
    }

    .tag-row-label {
        font-size: 15px;
        min-width: 80px;
    }

    .editor-contact-simple {
        flex-direction: row;
        gap: 16px;
    }

    .editor-avatar {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .editor-info .name {
        font-size: 15px;
    }

    .editor-info .qq {
        font-size: 14px;
    }

    .bonus-box {
        padding: 18px 22px;
        font-size: 14px;
    }

    .bonus-box .highlight-num {
        font-size: 16px;
    }

    .footer-notice {
        margin: 0; 
    }

    .footer-title {
        font-size: 20px;
        padding: 12px 50px;
        margin-bottom: 24px;
    }

    .footer-header-img {
        width: 100%;
        margin: 0 auto;
    }

    .footer-body {
        padding: 15% 10% 10%;
    }

    .notice-list {
        font-size: 14px;
    }

    .signup-url {
        font-size: 13px;
        padding: 12px 16px;
    }

    

    .card-header-img img {
        height: 60px;
        width: auto;
    }

    .card-footer-img {
        padding: 0 12px;
    }

    .sub-section {
        margin-top: 80px;
        padding: 30px 24px 20px;
    }
    
    .sub-title-img img {
        height: 38px;
    }
}

/* ====================================================
   响应式 -- 大屏桌面端 (>=1024px)
   ==================================================== */
@media screen and (min-width: 1024px) {
    .card-section {
        margin: 0;
    }
    
    .footer-notice {
        margin: 0;
    }
    .page-container {
        max-width: 860px;
        margin: 30px auto;
    }

    .main-content {
        padding: 0 24px 32px;
    }

    .card-body {
        padding: 60px 32px 26px;
    }

    .welfare-table {
        font-size: 16px;
    }

    .welfare-table thead th {
        padding: 14px 12px;
        font-size: 16px;
    }

    .welfare-table tbody td {
        padding: 14px 12px;
        font-size: 16px;
    }

    .detail-text {
        font-size: 16px;
    }

    .text-block {
        font-size: 16px;
    }

    .editor-item {
        padding: 20px 24px;
        gap: 20px;
    }

    .footer-body {
        padding: 15% 10% 10%;
    }

    .notice-list {
        font-size: 16px;
    }

    .footer-title {
        font-size: 22px;
        padding: 14px 60px;
        margin-bottom: 30px;
    }

    .card-header-img img {
        height: 60px;
        width: auto;
    }
    .sub-section {
        margin-top: 92px;
        padding: 34px 28px 24px;
    }
    
    .sub-title-img img {
        height: 44px;
    }
}

/* ====================================================
   响应式 -- 小屏手机 (<=400px)
   ==================================================== */
@media screen and (max-width: 400px) {
    .card-section {
        margin: 0;
    }
    
    .footer-notice {
        margin: 0;
    }
    .main-content {
        padding: 0 20px 16px; /* 手机端外边距减少到10px */
    }

    .card-body {
        padding: 30px 12px 14px;
        background: transparent;
    }

    .welfare-table {
        font-size: 12px;
    }

    .welfare-table thead th {
        padding: 7px 4px;
        font-size: 12px;
    }

    .welfare-table tbody td {
        padding: 7px 4px;
        font-size: 12px;
    }

    .detail-text {
        font-size: 12px;
        padding: 10px 12px;
    }

    .text-block {
        font-size: 12px;
        padding: 10px 12px;
    }

    .tag-label {
        padding: 2px 10px;
        font-size: 12px;
    }

    .editor-contact-simple {
        flex-direction: column;
        gap: 8px;
        padding: 10px 14px;
    }

    .editor-item {
        padding: 10px 12px;
    }

    .editor-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .footer-title {
        font-size: 16px;
        padding: 8px 30px;
        margin-bottom: 16px;
    }

    .footer-notice {
        margin: 0;
    }

    .footer-body {
        padding: 15% 10% 10%;
    }

    .notice-list {
        font-size: 11px;
        padding-left: 12px;
        line-height: 1.4;
    }

    .notice-list li {
        margin-bottom: 6px;
    }

    .bonus-box {
        padding: 10px 12px;
        font-size: 12px;
    }

    .bonus-box .highlight-num {
        font-size: 14px;
    }

    .tag-row-label {
        font-size: 13px;
        min-width: 58px;
    }

    

    .card-header-img img {
        height: 40px;
        width: auto;
    }

    .card-frame-inner {
        box-shadow: none;
        margin: 30px 10px 0;
        background-color: transparent;
    }

    .card-section {
        box-shadow: none;
        margin: 0;
        background: #fffed7; /* 强制手机端保持淡黄色背景 */
    }

    .card-short {
        border-radius: 15px 15px 0 0;
    }

    .card-long {
        border-radius: 0 0 15px 15px;
    }
    
    .footer-notice {
        box-shadow: none;
        border-radius: 0;
        margin: 0;
    }

    .sub-section {
        margin-top: 50px;
        padding: 20px 12px 12px;
    }
    
    .sub-title-img img {
        height: 26px;
    }

    .footer-header-img {
        padding: 0;
    }

    .card-frame-top, .card-frame-bottom {
        display: none;
    }
}

/* ====== 滚动条美化 ====== */
::-webkit-scrollbar {
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #f0e0c0;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb {
    background: #d9a050;
    border-radius: 2px;
}

/* ====== 选中文本样式 ====== */
::selection {
    background: #444444;
    color: #fff;
}
