/* ===================================================================
 *  STYLE.CSS - 极夜源码站 最终黄金版 (v1.3 - 补全卡片样式)
 *  Description: 本文件包含了网站前台所有页面的样式，是最终基准。
 *  - 修复了聚合首页布局
 *  - 修复了下拉菜单垂直显示及背景问题
 *  - ‼️ 新增：补全了资源详情页侧边栏购买卡片 (V3) 的样式 ‼️
 * =================================================================== */

/* --- 1. 全局变量与基础样式 --- */
:root {
    --primary-color: #333;
    --primary-hover-color: #357ABD;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --text-color: #333;
    --text-light-color: #888;
    --background-color: #f7f9fc;
    --card-background-color: #ffffff;
    --border-color: #e9ecef;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hirino Sans GB", "Microsoft YaHei", sans-serif;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}
html, body {
    width: 100%;
    height: 100%;
}
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}
.container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--primary-hover-color);
}

/* --- 2. 头部导航 (Header) --- */
header {
    background-color: var(--card-background-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}
.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}
.logo img {
    max-height: 50px;
    width: auto;
}

.main-nav ul, .user-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 1px; /* 修复对齐问题的关键 */
}
/* 旧的 margin 规则已移除，保持代码整洁 */

.main-nav ul li a, .user-nav ul li a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    white-space: nowrap;
}
.main-nav ul li a:hover, .user-nav ul li a:hover {
    background-color: #f0f4f8;
    color: var(--primary-color);
}
.user-nav ul li a[data-modal-trigger] {
    background-color: var(--primary-color);
    color: #fff;
}
.user-nav ul li a[data-modal-trigger]:hover {
    background-color: var(--primary-hover-color);
}
.main-nav ul li a .fa-angle-down {
    font-size: 12px;
    margin-left: 5px;
}
.dropdown-li {
    position: relative;
}
.dropdown-menu {
    display: none;
    flex-direction: column; 
    position: absolute;
    top: calc(100% + 10px);
    left: 0; /* 使用 gap 后，这里对齐就准确了 */
    background-color: var(--card-background-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 10px;
    list-style: none;
    min-width: 180px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}
.dropdown-li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}
.dropdown-menu li {
    margin: 0;
    display: block;
    width: 100%;
    margin-bottom: 5px;
}
.dropdown-menu li:last-child {
    margin-bottom: 0;
}
.dropdown-menu li a {
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    display: block;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    background-color: #ffffff; 
}
.dropdown-menu li a:hover {
    background-color: #f0f4f8;
    color: var(--primary-color);
}

/* --- 3. 主要内容区 (Main) --- */
main {
    padding: 40px 0;
}
main > .container > h1.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

/* 聚合首页模块标题样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 50px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.section-header:first-of-type {
    margin-top: 0;
}
.section-header .section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0;
    border: none;
    display: inline-block;
}
.more-link {
    font-size: 15px;
    color: var(--text-light-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.more-link:hover {
    color: var(--primary-hover-color);
    transform: translateX(3px);
}


/* --- 4. 首页英雄区域 & 搜索框 --- */
.hero-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f3f6 0%, #e8edf3 100%);
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}
.hero-content {
    text-align: center;
    max-width: 700px;
    width: 100%;
}
.clock-container {
    font-size: 3rem;
    font-weight: 300;
    color: #4a4a4a;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: 'Helvetica Neue', sans-serif;
}
.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: #777;
    margin: 10px 0 30px 0;
}
.search-bar-wrapper {
    max-width: 650px;
    margin: 0 auto;
}
.hero-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}
.hero-search-form input {
    flex-grow: 1;
    height: 52px;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 0 20px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s;
}
.hero-search-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
    outline: none;
}
.hero-search-form button {
    flex-shrink: 0;
    height: 52px;
    width: 100px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(45deg, #4A90E2, #007bff);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}
.hero-search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(74, 144, 226, 0.5);
}

/* --- 5. 首页资源卡片 & 网格布局 --- */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}
.resource-card-grid {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.resource-card-grid:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}
.card-image a {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 62.5%;
    background-color: #f0f4f8;
}
.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.resource-card-grid:hover .card-image img {
    transform: scale(1.05);
}
.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}
.card-category-tag {
    display: inline-block;
    position: absolute;
    top: -12px;
    right: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-color);
    background-color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
    z-index: 2;
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 15px;
    min-height: 50px;
}
.card-description {
    font-size: 14px;
    color: var(--text-light-color);
    margin-top: 8px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-meta {
    font-size: 14px;
    color: var(--text-light-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-meta svg {
    stroke: var(--text-light-color);
    width: 18px;
    height: 18px;
}

/* --- 6. 详情页 & 会员中心 & 其他 --- */
.resource-page-layout { display: flex; gap: 40px; }
.resource-main-content { flex: 1; min-width: 0; }
.resource-sidebar { flex-basis: 380px; flex-shrink: 0; }
.breadcrumb { font-size: 15px; color: var(--text-light-color); margin-bottom: 15px; }
.breadcrumb span { color: var(--text-color); font-weight: 500; }
.resource-main-content h1 { text-align: left; font-size: 36px; font-weight: 700; margin-bottom: 15px; line-height: 1.4; }
.meta-bar { display: flex; flex-wrap: wrap; gap: 15px 25px; color: var(--text-light-color); font-size: 14px; margin-bottom: 30px; align-items: center; }
.meta-bar span { display: flex; align-items: center; gap: 8px; }
.description-box, .tags-box, .fixed-statement, .content-box, .sidebar-widget { background-color: var(--card-background-color); border-radius: var(--border-radius); padding: 35px; margin-bottom: 30px; box-shadow: var(--card-shadow); }
.fixed-statement { background-color: #fffbe6; border-left: 5px solid #ffc107; box-shadow: none; }
.fixed-statement ol { padding-left: 20px; margin: 0; line-height: 1.8; color: #555; }
.description-box h2, .tags-box h2, .sidebar-widget h3, .user-content h2 { font-size: 20px; font-weight: 600; margin-top: 0; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; }
.description-content img { border-radius: var(--border-radius); max-width: 100% !important; height: auto !important; margin: 15px 0; }
.tags-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-item { background-color: #f0f4f8; border-radius: 6px; color: var(--text-color); padding: 6px 14px; font-size: 14px; }
.purchase-card .amount { font-size: 48px; font-weight: 700; color: var(--danger-color); }
.original-price { text-decoration: line-through; color: #999; font-size: 16px; margin-left: 10px; }
.purchase-info { list-style: none; padding: 0; margin: 15px 0; }
.purchase-info li { padding: 8px 0; font-size: 14px; display: flex; justify-content: space-between; }
.purchase-card .button { font-size: 18px; padding: 16px; border-radius: 10px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3); width: 100%; text-align: center; }
.purchase-card .button:hover { transform: translateY(-3px); box-shadow: 0 7px 20px rgba(74, 144, 226, 0.5); }
.membership-info-box { background: linear-gradient(45deg, #f39c12, #f1c40f); color: #fff; padding: 15px; border-radius: 8px; text-align: center; margin-top: 20px; }
.membership-promo { text-align: center; margin-top: 20px; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table th, .specs-table td { padding: 12px 0; text-align: left; border-bottom: 1px solid #f0f0f0; }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }
.latest-posts ul { list-style: none; margin: 0; padding: 0; }
.latest-posts li a { display: flex; align-items: center; gap: 15px; text-decoration: none; padding: 12px 5px; border-bottom: 1px solid #f0f0f0; }
.latest-posts li:last-child a { border-bottom: none; }
.latest-posts img { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.user-center-layout { display: flex; gap: 30px; align-items: flex-start; }
.user-sidebar { flex-basis: 250px; flex-shrink: 0; }
.user-content { flex-grow: 1; min-width: 0; }
.user-info-card, .user-menu { box-shadow: var(--card-shadow); border-radius: var(--border-radius); }
.user-info-card { padding: 25px; text-align: center; margin-bottom: 20px; }
.user-menu { padding: 15px; }
.user-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.user-menu a { display: flex; align-items: center; gap: 15px; padding: 12px 20px; text-decoration: none; color: var(--text-color); border-radius: 10px; font-size: 16px; font-weight: 500; transition: all 0.2s; }
.user-menu a i { width: 20px; text-align: center; color: var(--text-light-color); transition: all 0.2s; }
.user-menu a:hover { background-color: #f0f4f8; color: var(--primary-color); }
.user-menu a:hover i { color: var(--primary-color); }
.user-menu a.active { background-color: var(--primary-color); color: #fff; box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3); }
.user-menu a.active i { color: #fff; }
.content-box { padding: 40px; }
.orders-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.orders-table th, .orders-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.orders-table th { background-color: #f8f9fa; font-weight: 600; }
.order-item { display: flex; align-items: center; gap: 15px; text-decoration: none; color: var(--text-color); }
.order-item img { width: 100px; height: 75px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.order-item span { font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-item:hover span { color: var(--primary-color); }
.btn-download-small { background-color: var(--success-color); padding: 6px 12px; font-size: 13px; color: #fff; border-radius: 6px; }

/* ‼️ --- 新增的V3购买卡片样式 --- ‼️ */
.sidebar-widget.purchase-card-v3 {
    padding: 25px 30px;
    border: 2px solid var(--danger-color);
}
.price-highlight {
    font-size: 36px;
    font-weight: 700;
    color: var(--danger-color);
    text-align: center;
    margin-bottom: 20px;
}
.price-highlight span {
    font-size: 16px;
    font-weight: 500;
    margin-left: 5px;
}
.pricing-options {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.option-item input[type="radio"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}
.option-item label {
    font-size: 15px;
    color: var(--text-color);
    cursor: pointer;
}
.option-item label strong {
    color: var(--danger-color);
    font-weight: 600;
}
.option-item input[type="radio"]:disabled + label {
    color: var(--text-light-color);
    cursor: not-allowed;
}
.actions {
    margin-bottom: 25px;
}
.actions .button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    text-align: center;
    display: block;
    box-sizing: border-box;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}
.actions .button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}
.actions .button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.actions .btn-download {
    background-color: var(--success-color);
}
.actions .btn-purchase {
    background-color: var(--danger-color);
}
.actions .button.js-show-modal {
    background-color: var(--primary-color);
}
.purchase-info-v2 {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.purchase-info-v2 li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}
.purchase-info-v2 li i {
    color: var(--text-light-color);
    width: 18px;
    text-align: center;
}
.qq-consult {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
}
.qq-consult a {
    color: #12b7f5;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.qq-consult a:hover {
    opacity: 0.8;
}
.sidebar-widget.resource-specs {
    padding: 30px;
}
.sidebar-widget.resource-specs h3, .sidebar-widget.latest-posts h3 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* ‼️ --- 新增样式结束 --- ‼️ */


/* 表单样式 (会员中心 & 弹窗) */
.user-center-form, .modal-content form { max-width: 500px; margin-top: 20px; padding: 0; box-shadow: none; background: none; }
.user-center-form div, .modal-content form div { margin-bottom: 20px; }
.user-center-form label, .modal-content form label { display: block; margin-bottom: 8px; font-weight: 500; color: #555; }
.user-center-form input[type="password"], .user-center-form input[type="text"], .user-center-form input[type="email"],
.modal-content form input[type="text"], .modal-content form input[type="email"], .modal-content form input[type="password"] { width: 100%; height: 48px; padding: 0 15px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 16px; box-sizing: border-box; transition: all 0.2s; }
.user-center-form input:focus, .modal-content form input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2); outline: none; }
.user-center-form input[type="submit"], .modal-content form input[type="submit"] { width: 100%; height: 50px; border: none; border-radius: 8px; background-color: var(--primary-color); color: #fff; font-size: 16px; font-weight: 500; cursor: pointer; transition: background-color 0.2s; }
.user-center-form input[type="submit"]:hover, .modal-content form input[type="submit"]:hover { background-color: var(--primary-hover-color); }

/* --- 7. 弹窗样式 (Modal Styles) --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); display: none; justify-content: center; align-items: center; z-index: 2000; opacity: 0; animation: fadeIn 0.3s forwards; }
.modal-content { background-color: var(--card-background-color); padding: 30px 40px; border-radius: var(--border-radius); box-shadow: 0 5px 20px rgba(0,0,0,0.2); position: relative; width: 100%; max-width: 420px; transform: scale(0.95); animation: scaleIn 0.3s forwards cubic-bezier(0.25, 0.8, 0.25, 1); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 28px; color: #aaa; cursor: pointer; line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: #333; }
.modal-content form { max-width: none; }
.modal-content form h2 { margin-top: 0; text-align: center; margin-bottom: 25px; color: #333; font-size: 24px; font-weight: 600; }
.modal-switch { text-align: center; font-size: 14px; margin-top: 25px; color: #888; }
.modal-switch a { color: var(--primary-color); font-weight: 500; }

/* 其他组件样式 */
.vip-promo-card { background: linear-gradient(135deg, #434343 0%, #000000 100%); color: #fff; text-align: center; }
.vip-promo-card h3 { color: #f39c12; border-bottom-color: rgba(255,255,255,0.2); }
.vip-promo-card p { color: #eee; font-size: 14px; margin-bottom: 25px; }
.button.button-vip-promo { background: linear-gradient(45deg, #f1c40f, #f39c12); color: #fff; width: auto; display: inline-block; padding: 10px 30px; font-weight: bold; box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4); border-radius: 50px; }
.button.button-vip-promo:hover { box-shadow: 0 7px 20px rgba(243, 156, 18, 0.6); }
.payment-modal { text-align: center; }
#payment-qrcode-container { margin: 20px 0; display: flex; justify-content: center; align-items: center; }
#payment-qrcode-container img, #payment-qrcode-container canvas { border: 1px solid #eee; padding: 5px; border-radius: 8px; }
#payment-status-text { font-weight: bold; color: var(--primary-color); }
.payment-note { font-size: 13px; color: #999; margin-top: 15px; }

/* 会员购买页 */
.membership-header { text-align: center; margin-bottom: 50px; }
.membership-header h1 { font-size: 2.5rem; display: flex; align-items: center; justify-content: center; gap: 15px; }
.membership-header .fa-crown { color: #f39c12; }
.membership-header .subtitle { font-size: 1.1rem; color: var(--text-light-color); max-width: 600px; margin: 10px auto 0; }
.membership-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.plan-card { background: var(--card-background-color); border-radius: var(--border-radius); box-shadow: var(--card-shadow); text-align: center; padding: 30px; transition: all 0.3s; display: flex; flex-direction: column; border: 2px solid transparent; }
.plan-card:hover { transform: translateY(-10px); box-shadow: var(--card-hover-shadow); border-color: var(--primary-color); }
.plan-header { flex-grow: 1; }
.plan-header h3 { font-size: 22px; margin: 0 0 10px; }
.plan-header p { color: var(--text-light-color); font-size: 14px; }
.plan-price { margin: 20px 0; }
.plan-price sup { font-size: 24px; top: -20px; }
.plan-price .duration { font-size: 16px; color: #888; }
.plan-features { list-style: none; padding: 0; margin: 30px 0; text-align: left; }
.plan-features li { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.plan-features .fa-check-circle { color: var(--success-color); }
.plan-footer .button { width: 100%; }

/* --- 8. 页脚 (Footer) --- */
.site-footer {
    background-color: #343a40;
    color: #adb5bd;
    padding: 40px 0;
    margin-top: 60px;
    font-size: 14px;
    line-height: 1.8;
}
.site-footer .container {
    text-align: center;
}
.footer-links {
    margin-bottom: 20px;
}
.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #ffffff;
}
.footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.icp-info a, .police-beian a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s;
}
.icp-info a:hover, .police-beian a:hover {
    color: #ffffff;
}
.police-beian a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.police-beian img {
    width: 18px;
    height: 18px;
}
/* --- 专属会员卡片样式 --- */
.plan-card.level-基础VIP:hover {
    border-color: #4A90E2; /* 基础VIP使用主题蓝 */
}

.plan-card.level-高级VIP:hover {
    border-color: #28a745; /* 高级VIP使用绿色 */
}

.plan-card.level-终身VIP:hover {
    border-color: #f39c12; /* 终身VIP使用金色 */
}

/* ===================================================================
 *  10. 静态页面样式 (About, Terms, Privacy, Contact)
 * =================================================================== */
.static-page-container {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius);
    padding: 50px 60px;
    box-shadow: var(--card-shadow);
}
.static-page-content {
    max-width: 800px; /* 限制内容宽度，提升阅读体验 */
    margin: 0 auto;
}
.static-page-content h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
}
.static-page-content .lead, .static-page-content .last-updated {
    text-align: center;
    font-size: 18px;
    color: var(--text-light-color);
    margin-bottom: 40px;
}
.static-page-content h3 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}
.static-page-content p, .static-page-content ul li {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
}
.static-page-content ul {
    padding-left: 25px;
}
.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}
.contact-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}
.contact-card h3 {
    margin-top: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
@media (max-width: 600px) {
    .static-page-container { padding: 30px 20px; }
    .contact-methods { grid-template-columns: 1fr; }
}
/* --- 9. 响应式布局调整 --- */
@media (max-width: 1600px) {
    .resource-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1200px) {
    .resource-grid { grid-template-columns: repeat(3, 1fr); }
    .main-nav { display: none; } /* 在笔记本尺寸下隐藏主导航，为移动端菜单做准备 */
}
@media (max-width: 992px) {
    .resource-grid { grid-template-columns: repeat(2, 1fr); }
    .resource-page-layout, .user-center-layout { flex-direction: column; }
    .resource-sidebar { width: 100%; flex-basis: auto; }
}

@media (max-width: 768px) {
    .resource-grid { grid-template-columns: 1fr; }
    header .container { height: auto; flex-direction: column; padding: 15px 0; gap: 15px; }
    .header-left, .user-nav { width: 100%; }
    .header-left { flex-direction: column; gap: 15px; }
    .main-nav { display: block; width: 100%; } /* 在移动端重新显示导航 */
    .main-nav ul { flex-direction: column; gap: 5px; }
    .main-nav ul li { margin-left: 0; width: 100%; }
    .main-nav ul li a { justify-content: space-between; }
    .dropdown-menu { position: static; display: none; width: 100%; box-shadow: none; padding: 5px 0 5px 20px; }
    .dropdown-li:hover > .dropdown-menu { display: flex; } /* 移动端简单点击/悬停展开 */
    .user-nav ul { justify-content: center; margin-top: 15px; }
}