/* ========== 主体 ========== */
main {
    flex: 1;
    max-width: 1400px;
    margin: 2rem auto 0;
    width: 100%;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 2rem 2rem 4rem;
}
.content-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.content-main { flex: 1; min-width: 0; }

/* ========== 右侧登录面板 ========== */
.login-panel {
    flex: 0 0 340px;
    background: linear-gradient(180deg, #f8faff 0%, #fff 30%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 8px 40px rgba(26,41,128,0.07);
    align-self: flex-start;
    position: sticky;
    top: 90px;
}
.login-panel-header {
    text-align: center;
    margin-bottom: 1rem;
}
.login-panel-header h3 {
    font-size: 1.05rem;
    color: #1a2980;
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.login-panel-header p {
    font-size: 0.78rem;
    color: #9ca3af;
}
.login-field { margin-bottom: 0.75rem; }
.login-field label {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.login-field .input-wrap {
    position: relative;
}
.login-field .input-wrap .input-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #c4c4c4;
    pointer-events: none;
}
.login-field input {
    width: 100%;
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 0.7rem 0 2.2rem;
    font-size: 0.85rem;
    color: #374151;
    background: #f9fafb;
    transition: all 0.2s;
    outline: none;
}
.login-field input:focus {
    border-color: #1a2980;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,41,128,0.06);
}
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.1rem 0 0.75rem;
    font-size: 0.76rem;
}
.login-options label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #9ca3af;
    cursor: pointer;
}
.login-options label input { accent-color: #1a2980; }
.login-options a {
    color: #1a2980;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.76rem;
}
.login-options a:hover { text-decoration: underline; }
.login-submit {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #ff5500, #ff7a30);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(255,85,0,0.2);
}
.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(255,85,0,0.3);
}
.login-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.85rem 0;
    color: #d1d5db;
    font-size: 0.75rem;
}
.login-divider::before, .login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.login-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.login-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.2s;
}
.login-social a:hover {
    border-color: #1a2980;
    color: #1a2980;
    background: #f8faff;
}
.login-extra {
    text-align: center;
    font-size: 0.82rem;
    color: #9ca3af;
}
.login-extra a {
    color: #1a2980;
    text-decoration: none;
    font-weight: 600;
}
.login-extra a:hover { text-decoration: underline; }

/* 登录后状态 */
.logged-panel { text-align: center; }
.logged-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    object-fit: cover;
    margin: 0 auto 0.75rem;
}
.logged-greeting {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 0.15rem;
}
.logged-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2980;
    margin-bottom: 1.25rem;
}
.logged-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.logged-links a {
    display: block;
    padding: 0.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}
.logged-links .btn-center {
    background: #1a2980;
    color: #fff;
    text-align: center;
}
.logged-links .btn-center:hover { background: #152270; }
.logged-links .btn-logout {
    color: #9ca3af;
    text-align: center;
    border: 1px solid #e5e7eb;
}
.logged-links .btn-logout:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }

/* ========== 板块通用 ========== */
.section-block { margin: 4rem 0; }
.section-block:first-child { margin-top: 0; }
.section-block:last-child { margin-bottom: 0; }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header .icon { font-size: 2.6rem; margin-bottom: 0.75rem; }
.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2980;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a2980, #26d0ce);
    border-radius: 2px;
}
.section-header p {
    font-size: 1.05rem;
    color: #888;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}
.section-header.compact { margin-bottom: 1.5rem; }
.section-header.compact .icon { font-size: 1.6rem; margin-bottom: 0.35rem; }
.section-header.compact h2 { font-size: 1.35rem; padding-bottom: 0.4rem; }
.section-header.compact p { font-size: 0.88rem; }

/* 紧凑卡片 */
.card-list-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.card-list-compact .card {
    padding: 1rem 1.25rem;
    border-radius: 10px;
}
.card-list-compact .card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}
.card-list-compact .card .date {
    font-size: 0.9rem;
    color: #999;
}
.card-list-compact .link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 30px;
    border-bottom: 1px dashed #e5e7eb;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}
.card-list-compact .link-row:hover { background: #fafbfc; }
.card-list-compact .link-row .title {
    font-size: 1.125rem;
    color: #444;
    flex: 1;
}
.card-list-compact .link-row:hover .title { color: #1a2980; }
.card-list-compact .link-row .date {
    font-size: 1.125rem;
    color: #999;
    white-space: nowrap;
    margin-left: 1rem;
}

/* ========== 卡片基础 ========== */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.card {
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.25s;
    position: relative;
}
.card:hover {
    border-color: #e0e4ff;
    box-shadow: 0 4px 24px rgba(26,41,128,0.06);
    transform: translateY(-2px);
}

.card-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 12px;
    background: #f0f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a2980;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card h3 .badge { font-size: 0.75rem; font-weight: 500; padding: 0.15rem 0.55rem; border-radius: 100px; }
.badge-green  { background: #ecfdf5; color: #059669; }
.badge-orange { background: #fff7ed; color: #ea580c; }
.badge-red    { background: #fef2f2; color: #dc2626; }
.badge-gray   { background: #f3f4f6; color: #6b7280; }
.badge-blue   { background: #eff6ff; color: #2563eb; }

.card-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.75;
}

.card-links { list-style: none; }
.card-links li { margin-bottom: 0.5rem; }
.card-links li a {
    font-size: 0.93rem;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 0.2rem 0;
}
.card-links li a:hover { color: #1a2980; }

/* 变现标签 - 右上角 */
.monetize-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.75rem;
    color: #9ca3af;
    background: #f9fafb;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    border: 1px solid #f0f2f5;
}

/* ========== 会员模块 ========== */
.member-section {
    background: linear-gradient(135deg, #1a2980 0%, #1e3a5f 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 4rem 0;
    color: #fff;
}
.member-section .section-header h2 { color: #fff; }
.member-section .section-header h2::after { background: linear-gradient(90deg, #26d0ce, #ff5500); }
.member-section .section-header p { color: rgba(255,255,255,0.6); }
.member-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.member-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.25s;
    position: relative;
    backdrop-filter: blur(4px);
}
.member-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.member-card.featured {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,85,0,0.5);
    box-shadow: 0 4px 20px rgba(255,85,0,0.15);
}
.member-card .tier-icon { font-size: 2.4rem; margin-bottom: 0.75rem; }
.member-card .tier-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.35rem; }
.member-card .tier-price { font-size: 1.8rem; font-weight: 700; color: #26d0ce; margin-bottom: 1rem; }
.member-card .tier-price small { font-size: 0.85rem; font-weight: 400; color: rgba(255,255,255,0.5); }
.member-card .tier-benefits { list-style: none; text-align: left; margin-bottom: 1.5rem; }
.member-card .tier-benefits li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.member-card .tier-benefits li:last-child { border-bottom: none; }
.member-btn-cta {
    display: inline-block;
    padding: 0.6rem 2rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.member-btn-cta.primary {
    background: #ff5500;
    color: #fff;
}
.member-btn-cta.primary:hover { background: #e04d00; }
.member-btn-cta.outline {
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
}
.member-btn-cta.outline:hover { background: rgba(255,255,255,0.1); }

/* 学术套餐 */
.service-section {
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 4rem 0;
}
.service-section .section-header h2 { color: #1a2980; }
.service-section .section-header h2::after { background: linear-gradient(90deg, #1a2980, #26d0ce); }
.service-section .section-header p { color: #888; }
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.service-card {
    background: #f8faff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.25s;
}
.service-card:hover {
    background: #fff;
    border-color: #1a2980;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(26,41,128,0.08);
}
.service-card .svc-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.service-card .svc-name { font-size: 1.15rem; font-weight: 700; color: #1a2980; margin-bottom: 0.5rem; }
.service-card .svc-desc { font-size: 0.95rem; color: #555; line-height: 1.7; margin-bottom: 1.25rem; }
.service-card .svc-btn {
    display: inline-block;
    padding: 0.55rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: #1a2980;
    color: #fff;
    transition: all 0.2s;
}
.service-card .svc-btn:hover { background: #152270; }

/* ========== 小说区 ========== */
.novel-list { display: flex; flex-direction: column; gap: 1.25rem; }
.novel-item {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.25s;
}
.novel-item:hover {
    border-color: #e0e4ff;
    box-shadow: 0 4px 24px rgba(26,41,128,0.06);
    transform: translateY(-2px);
}
.novel-cover {
    flex: 0 0 120px;
}
.novel-cover img {
    width: 120px;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f4f6;
}
.novel-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.novel-info h4 { font-size: 1.25rem; color: #1a2980; font-weight: 600; margin-bottom: 0.5rem; }
.novel-info .desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.75rem;
    line-height: 1.75;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.novel-info .meta { font-size: 0.9rem; color: #888; margin-bottom: 0.75rem; }
.btn-read {
    display: inline-block;
    background: #ff5500;
    color: #fff;
    padding: 0.55rem 1.35rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    width: fit-content;
    transition: background 0.2s;
}
.btn-read:hover { background: #e04d00; }

/* ========== 工具箱 ========== */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 0.75rem; }
.tool-item {
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.tool-item:hover {
    border-color: #1a2980;
    color: #1a2980;
    background: #fff;
}
.tool-item .emoji { font-size: 1.4rem; margin-bottom: 0.35rem; display: block; }

/* ========== 新闻滚动 ========== */
.news-marquee {
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.news-marquee-label {
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    white-space: nowrap;
}
.news-marquee-content { flex: 1; overflow: hidden; }
.news-marquee-content a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.95rem;
    margin-right: 2.5rem;
    white-space: nowrap;
}
.news-marquee-content a:hover { color: #1a2980; }

/* 新闻列表 */
.news-list { list-style: none; }
.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.news-list li:last-child { border-bottom: none; }
.news-list li a {
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    flex: 1;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-list li a:hover { color: #1a2980; }
.news-list li .date { font-size: 0.82rem; color: #999; margin-left: 1rem; white-space: nowrap; }

/* ========== 合规声明 ========== */
.compliance-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 16px;
    padding: 1.25rem 2rem;
    margin-top: 2rem;
}
.compliance-bar .icon { font-size: 1.6rem; }
.compliance-bar .text { flex: 1; font-size: 0.95rem; color: #6b7280; }
.compliance-bar .text strong { color: #dc2626; }

/* ========== 功能标签行 ========== */
.tag-row { display: flex; gap: 0.55rem; flex-wrap: wrap; margin-top: 0.5rem; }
.tag-row span {
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    background: #f3f4f6;
    color: #6b7280;
}



/* ========== 响应式 ========== */
@media (max-width: 1000px) {
    .content-layout { flex-direction: column; }
    .login-panel { flex: none; width: 100%; position: static; }
}
@media (max-width: 900px) {
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .card-grid-2 { grid-template-columns: 1fr; }
    .tool-grid { grid-template-columns: repeat(2, 1fr); }
    .header-container { flex-direction: column; gap: 0.75rem; }
    .header-right { align-items: center; }
    .contact-info { text-align: center; }
    nav ul { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 600px) {
    .card-grid-3 { grid-template-columns: 1fr; }
    .novel-item { flex-direction: column; }
    .novel-cover { flex: 0 0 auto; }
    .novel-cover img { width: 100%; height: 200px; }
    .section-block { margin: 3rem 0; }
}