/* =========================================================
   香蕉动漫 新增模块样式
   - .oct-ip-library   IP合作资源库
   - .oct-cooperation  合作需求对接
   独立命名，避免与原有样式冲突
   ========================================================= */

/* ---------- 通用 ---------- */
.oct-ip-library,
.oct-cooperation {
    padding: 80px 0;
    overflow: hidden;
}

.oct-ip-library .pagewidth,
.oct-cooperation .pagewidth {
    width: 1300px;
    margin: 0 auto;
    position: relative;
}

/* 标题区：沿用现有 .title 结构 */
.oct-ip-library .oct-title,
.oct-cooperation .oct-title {
    text-align: center;
    margin-bottom: 60px;
}
.oct-ip-library .oct-title .h1,
.oct-cooperation .oct-title .h1 {
    font-size: 36px;
    color: #333;
    font-weight: bold;
    letter-spacing: 2px;
}
.oct-ip-library .oct-title h2,
.oct-cooperation .oct-title h2 {
    font-size: 14px;
    color: #446199;
    font-weight: normal;
    letter-spacing: 6px;
    margin-top: 8px;
    text-transform: uppercase;
}
.oct-ip-library .oct-title p,
.oct-cooperation .oct-title p {
    font-size: 16px;
    color: #666;
    margin-top: 18px;
    line-height: 1.8;
}

/* =========================================================
   模块一：IP合作资源库
   ========================================================= */
.oct-ip-library {
    background: #fff;
}

/* 筛选器 */
.oct-ip-filter {
    text-align: center;
    margin-bottom: 40px;
}
.oct-ip-filter ul {
    display: inline-block;
}
.oct-ip-filter ul li {
    display: inline-block;
    margin: 0 8px;
}
.oct-ip-filter ul li button {
    background: none;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 8px 22px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    font-family: inherit;
}
.oct-ip-filter ul li button:hover {
    border-color: #446199;
    color: #446199;
}
.oct-ip-filter ul li button.oct-active {
    background: #446199;
    border-color: #446199;
    color: #fff;
}

/* IP卡片网格 */
.oct-ip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.oct-ip-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.oct-ip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #446199;
}
.oct-ip-card-hidden {
    display: none;
}

/* 卡片图片 */
.oct-ip-card .oct-ip-img {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
    background: #f5f5f5;
}
.oct-ip-card .oct-ip-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    -webkit-transition: transform 0.4s ease;
}
.oct-ip-card:hover .oct-ip-img img {
    transform: scale(1.05);
}

/* 卡片信息 */
.oct-ip-card .oct-ip-info {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.oct-ip-card .oct-ip-info h3 {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}
.oct-ip-card .oct-ip-info .oct-ip-en {
    font-size: 12px;
    color: #999;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.oct-ip-card .oct-ip-info .oct-ip-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 14px;
    flex: 1;
}

/* 标签 */
.oct-ip-card .oct-ip-tags {
    margin-bottom: 18px;
}
.oct-ip-card .oct-ip-tags span {
    display: inline-block;
    font-size: 12px;
    color: #446199;
    background: rgba(68,97,153,0.08);
    padding: 3px 10px;
    border-radius: 2px;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* 按钮 */
.oct-ip-card .oct-ip-btns {
    display: flex;
    gap: 10px;
}
.oct-ip-card .oct-ip-btns a {
    display: inline-block;
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
    font-family: inherit;
    line-height: 1;
}
.oct-ip-card .oct-ip-btns .oct-btn-primary {
    background: #446199;
    color: #fff;
    border: 1px solid #446199;
}
.oct-ip-card .oct-ip-btns .oct-btn-primary:hover {
    background: #36507d;
    text-decoration: none;
}
.oct-ip-card .oct-ip-btns .oct-btn-ghost {
    background: #fff;
    color: #446199;
    border: 1px solid #446199;
}
.oct-ip-card .oct-ip-btns .oct-btn-ghost:hover {
    background: #446199;
    color: #fff;
    text-decoration: none;
}

/* 空结果提示 */
.oct-ip-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 15px;
    grid-column: 1 / -1;
}

/* =========================================================
   模块二：合作需求对接（联系信息 + 流程）
   ========================================================= */
.oct-cooperation {
    background: #f7f8fa;
}
.oct-cooperation .oct-title {
    text-align: center;
    margin-bottom: 50px;
}
.oct-coop-main {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* 流程图 */
.oct-flow {
    list-style: none;
    counter-reset: oct-step;
    flex: 0 0 380px;
}
.oct-flow li {
    position: relative;
    padding: 20px 0 20px 60px;
    border-left: 1px solid #e0e0e0;
}
.oct-flow li:first-child { padding-top: 0; }
.oct-flow li:last-child { border-left-color: transparent; }
.oct-flow li::before {
    counter-increment: oct-step;
    content: counter(oct-step);
    position: absolute;
    left: -18px;
    top: 16px;
    width: 36px;
    height: 36px;
    background: #446199;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
}
.oct-flow li h4 {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 6px;
}
.oct-flow li p {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
}

/* 联系卡 */
.oct-contact-card {
    flex: 1;
    max-width: 480px;
    background: #fff;
    border-radius: 6px;
    padding: 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    text-align: center;
}
.oct-contact-email {
    margin-bottom: 28px;
}
.oct-contact-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.oct-contact-value {
    display: block;
    font-size: 26px;
    color: #446199;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    word-break: break-all;
}
.oct-contact-value:hover {
    color: #36507d;
    text-decoration: underline;
}
.oct-contact-tip {
    font-size: 12px;
    color: #aaa;
    margin-top: 8px;
}
.oct-contact-actions {
    margin-bottom: 24px;
}
.oct-contact-actions .oct-btn-primary {
    display: inline-block;
    background: #446199;
    color: #fff;
    border: 1px solid #446199;
    padding: 14px 48px;
    font-size: 16px;
    border-radius: 2px;
    text-decoration: none;
    letter-spacing: 2px;
    transition: background 0.25s ease;
    -webkit-transition: background 0.25s ease;
    cursor: pointer;
    font-family: inherit;
}
.oct-contact-actions .oct-btn-primary:hover {
    background: #36507d;
    text-decoration: none;
}
.oct-contact-note {
    font-size: 13px;
    color: #888;
    line-height: 1.8;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
    text-align: left;
}

/* IP详情弹窗 */
.oct-modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    justify-content: center;
    align-items: center;
}
.oct-modal-backdrop.oct-show {
    display: flex;
}
.oct-modal {
    background: #fff;
    border-radius: 6px;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    position: relative;
}
.oct-modal-close {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 24px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    font-family: inherit;
}
.oct-modal h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 14px;
    padding-right: 30px;
}
.oct-modal p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* toast */
.oct-toast {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
}
.oct-toast.oct-show {
    display: block;
}

/* =========================================================
   响应式
   ========================================================= */
@media screen and (max-width: 1112px) {
    .oct-ip-library .pagewidth,
    .oct-cooperation .pagewidth {
        width: auto;
        margin: 0 20px;
    }
    .oct-ip-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .oct-coop-main {
        gap: 50px;
    }
    .oct-coop-main .oct-flow {
        flex: 0 0 320px;
    }
}

@media screen and (max-width: 1024px) {
    .oct-coop-main {
        flex-direction: column;
        gap: 50px;
        align-items: center;
    }
    .oct-coop-main .oct-flow {
        flex: none;
        width: 100%;
        max-width: 480px;
    }
    .oct-contact-card {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .oct-ip-library,
    .oct-cooperation {
        padding: 50px 0;
    }
    .oct-ip-library .oct-title,
    .oct-cooperation .oct-title {
        margin-bottom: 40px;
    }
    .oct-ip-library .oct-title .h1,
    .oct-cooperation .oct-title .h1 {
        font-size: 26px;
    }
    .oct-ip-filter ul li {
        margin: 0 4px 8px;
    }
    .oct-ip-filter ul li button {
        padding: 6px 14px;
        font-size: 13px;
    }
    .oct-ip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .oct-ip-card .oct-ip-info {
        padding: 14px 14px 18px;
    }
    .oct-ip-card .oct-ip-info h3 {
        font-size: 16px;
    }
    .oct-ip-card .oct-ip-info .oct-ip-desc {
        font-size: 13px;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        overflow: hidden;
    }
    .oct-ip-card .oct-ip-btns a {
        padding: 8px 0;
        font-size: 13px;
    }
    .oct-flow li h4 {
        font-size: 16px;
    }
    .oct-flow li p {
        font-size: 13px;
    }
    .oct-contact-card {
        padding: 28px 20px;
    }
    .oct-contact-value {
        font-size: 20px;
    }
    .oct-contact-actions .oct-btn-primary {
        padding: 12px 32px;
        font-size: 14px;
    }
}

@media screen and (max-width: 414px) {
    .oct-ip-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   模块：作品资料库 / 主题推荐与选作专区 / 追更与新作日历
   ========================================================= */
.oct-sec {
    padding: 80px 0;
    overflow: hidden;
}
.oct-sec-head {
    text-align: center;
    margin-bottom: 46px;
}
.oct-sec-head .h1 {
    font-size: 36px;
    color: #333;
    font-weight: bold;
    letter-spacing: 2px;
}
.oct-sec-head h2 {
    font-size: 14px;
    color: #446199;
    font-weight: normal;
    letter-spacing: 6px;
    margin-top: 8px;
    text-transform: uppercase;
}
.oct-sec-head p {
    font-size: 15px;
    color: #666;
    margin-top: 16px;
    line-height: 1.8;
}

/* ---------- 作品资料库 ---------- */
.oct-works {
    background: #f7f7f7;
}
.oct-work-filter {
    text-align: center;
    margin-bottom: 36px;
}
.oct-work-filter button {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 8px 22px;
    margin: 0 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
    font-family: inherit;
}
.oct-work-filter button:hover {
    border-color: #446199;
    color: #446199;
}
.oct-work-filter button.oct-active {
    background: #446199;
    border-color: #446199;
    color: #fff;
}
.oct-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.oct-work-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.oct-work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #446199;
}
.oct-work-card.is-hidden {
    display: none;
}
.oct-work-cover {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: #f5f5f5;
}
.oct-work-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    -webkit-transition: transform 0.4s ease;
}
.oct-work-card:hover .oct-work-cover img {
    transform: scale(1.05);
}
.oct-work-status {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 12px;
    color: #fff;
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
}
.oct-work-status.is-serial {
    background: #446199;
}
.oct-work-status.is-finished {
    background: #8a8a8a;
}
.oct-work-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.oct-work-body h3 {
    font-size: 19px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}
.oct-work-meta {
    font-size: 13px;
    color: #888;
    line-height: 1.9;
    margin-bottom: 10px;
}
.oct-work-meta span {
    display: block;
}
.oct-work-meta em {
    font-style: normal;
    color: #446199;
}
.oct-work-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.75;
    margin-bottom: 14px;
    flex: 1;
}
.oct-work-version {
    font-size: 12px;
    color: #888;
    border-top: 1px dashed #eee;
    padding-top: 12px;
    margin-bottom: 16px;
    line-height: 1.7;
}
.oct-work-version .oct-ver-tag {
    display: inline-block;
    background: rgba(68,97,153,0.08);
    color: #446199;
    padding: 2px 9px;
    border-radius: 2px;
    margin-right: 6px;
}
.oct-work-version p {
    margin-top: 7px;
}
.oct-work-btns {
    display: flex;
    gap: 10px;
}
.oct-work-btns a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
}
.oct-work-btns .oct-btn-ghost {
    background: #fff;
    color: #446199;
    border: 1px solid #446199;
}
.oct-work-btns .oct-btn-ghost:hover {
    background: #446199;
    color: #fff;
}
.oct-work-btns .oct-btn-primary {
    background: #446199;
    color: #fff;
    border: 1px solid #446199;
}
.oct-work-btns .oct-btn-primary:hover {
    background: #36507d;
}
.oct-works-more {
    text-align: center;
    margin-top: 44px;
}
.oct-works-more a {
    display: inline-block;
    font-size: 15px;
    color: #446199;
    border: 1px solid #446199;
    padding: 11px 40px;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
}
.oct-works-more a:hover {
    background: #446199;
    color: #fff;
}

/* ---------- 主题推荐与选作专区 ---------- */
.oct-themes {
    background: #fff;
}
.oct-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.oct-theme-card {
    background: #f7f8fa;
    border: 1px solid #eef0f4;
    border-radius: 6px;
    padding: 30px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.oct-theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.07);
}
.oct-theme-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}
.oct-theme-head h3 {
    font-size: 22px;
    color: #333;
    font-weight: bold;
}
.oct-theme-head span {
    font-size: 13px;
    color: #999;
}
.oct-theme-reason {
    font-size: 14px;
    color: #446199;
    background: rgba(68,97,153,0.06);
    border-left: 3px solid #446199;
    padding: 10px 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.oct-theme-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed #e5e7ec;
    font-size: 14px;
}
.oct-theme-list li:last-child {
    border-bottom: none;
}
.oct-theme-list li a {
    color: #333;
    text-decoration: none;
    transition: color 0.25s ease;
    -webkit-transition: color 0.25s ease;
}
.oct-theme-list li a:hover {
    color: #446199;
}
.oct-theme-list li span {
    font-size: 12px;
    color: #999;
}
.oct-theme-more {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    color: #446199;
    text-decoration: none;
}
.oct-theme-more:hover {
    color: #36507d;
}

/* ---------- 追更与新作日历 ---------- */
.oct-calendar {
    background: #f7f7f7;
}
.oct-cal-list {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}
.oct-cal-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 26px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.25s ease;
    -webkit-transition: background 0.25s ease;
}
.oct-cal-row:last-child {
    border-bottom: none;
}
.oct-cal-row:hover {
    background: #fafbfd;
}
.oct-cal-date {
    flex: 0 0 74px;
    text-align: center;
}
.oct-cal-date strong {
    display: block;
    font-size: 22px;
    color: #446199;
    font-family: "Arial Black";
    line-height: 1.15;
}
.oct-cal-date span {
    font-size: 12px;
    color: #999;
}
.oct-cal-main {
    flex: 1;
}
.oct-cal-main h3 {
    font-size: 17px;
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
}
.oct-cal-main p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}
.oct-cal-tag {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 2px;
    letter-spacing: 1px;
}
.oct-cal-tag.is-update {
    background: rgba(68,97,153,0.1);
    color: #446199;
}
.oct-cal-tag.is-new {
    background: rgba(46,160,67,0.12);
    color: #2ea043;
}
.oct-cal-tag.is-delay {
    background: rgba(230,126,34,0.12);
    color: #e67e22;
}
.oct-cal-tag.is-end {
    background: rgba(140,140,140,0.14);
    color: #777;
}
.oct-cal-src {
    flex: 0 0 240px;
    font-size: 12px;
    color: #aaa;
    text-align: right;
    line-height: 1.7;
}
.oct-cal-note {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    margin-top: 18px;
    line-height: 1.8;
}

@media screen and (max-width: 1112px) {
    .oct-sec .pagewidth {
        width: auto;
        margin: 0 20px;
    }
    .oct-work-grid {
        gap: 20px;
    }
}

@media screen and (max-width: 1024px) {
    .oct-work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .oct-theme-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .oct-sec {
        padding: 50px 0;
    }
    .oct-sec-head {
        margin-bottom: 34px;
    }
    .oct-sec-head .h1 {
        font-size: 26px;
    }
    .oct-sec-head p {
        font-size: 14px;
    }
    .oct-work-grid {
        grid-template-columns: 1fr;
    }
    .oct-theme-card {
        padding: 22px 20px;
    }
    .oct-theme-head h3 {
        font-size: 19px;
    }
    .oct-cal-row {
        flex-wrap: wrap;
        gap: 10px 16px;
        padding: 16px 18px;
    }
    .oct-cal-main h3 {
        font-size: 16px;
    }
    .oct-cal-src {
        flex: none;
        width: 100%;
        text-align: left;
    }
}
