/**
 * JDP 现代科技风格静态化样式 (Cloudflare SPA 专用)
 * 深色主题 + 霓虹发光 + 卡片悬浮 + 移动端适配
 */

/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #10121d 0%, #16192b 50%, #0a0b12 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

ul {
    list-style: none;
}

img {
    border: none;
    max-width: 100%;
}

/* ========== 主容器 ========== */
.w960 {
    max-width: 1200px;
    margin: 0;
    padding-top: 70px; /* 避开固定导航栏 */
    min-height: calc(100vh - 70px);
}

/* ========== 导航栏 ========== */
#navMenu {
    background: rgba(22, 25, 43, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 56px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid #00d4ff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 15px;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    margin-right: 20px;
}

#navLinks {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

#navLinks::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

#navLinks li a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#navLinks li a:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

#navLinks li.active a {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.15);
    border-bottom: 2px solid #00d4ff;
    border-radius: 6px 6px 0 0;
}

/* ========== 主页网格布局 ========== */
.homepage {
    display: flex;
    gap: 20px;
    padding: 15px;
}

.pleft {
    flex: 1;
    min-width: 0; /* 允许收缩 */
}

.pright {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .homepage {
        flex-direction: column;
    }
    .pright {
        width: 100%;
    }
}

/* ========== 搜索区域 ========== */
.search-section {
    background: linear-gradient(145deg, #16192b 0%, #1e223c 100%);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-label {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(255, 107, 107, 0.6); }
}

.search-form {
    display: flex;
    flex: 1;
    gap: 10px;
    min-width: 250px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.search-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

/* ========== 最新上架广告栏 ========== */
.new-product-section {
    background: linear-gradient(145deg, #16192b 0%, #1e223c 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.product-container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.product-image {
    position: relative;
    width: 240px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-image:hover img {
    transform: scale(1.1);
}

.product-list {
    flex: 1;
    min-width: 250px;
}

.product-list h3 {
    color: #00d4ff;
    font-size: 16px;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.product-label {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.product-list ul li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.product-list ul li a {
    color: #fff;
    font-weight: 500;
}

/* ========== 最新更新文章列表 ========== */
.newarticle {
    background: linear-gradient(90deg, #00d4ff 0%, transparent 100%);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 15px;
    border-radius: 8px 8px 0 0;
}

.update-list {
    background: linear-gradient(145deg, #16192b 0%, #1e223c 100%);
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-top: none;
    padding: 10px;
}

.update-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    margin: 4px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.update-list li:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

.update-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.update-date {
    color: #00d4ff;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    min-width: 50px;
}

.update-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    margin: 0 12px;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.update-content a {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
}

.update-tags .tested-tag {
    background: linear-gradient(135deg, #00c853 0%, #00a844 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

/* ========== 右边栏卡片 (Tbox) ========== */
.tbox {
    background: linear-gradient(145deg, #16192b 0%, #1e223c 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tbox dt {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.15) 0%, transparent 100%);
    padding: 12px 18px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.tbox dt strong {
    color: #00d4ff;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.tbox dd {
    padding: 12px;
}

/* 本月热点 */
.thumb-list li {
    display: flex;
    gap: 12px;
    padding: 8px;
    margin: 4px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.thumb-list li:hover {
    background: rgba(0, 212, 255, 0.08);
}

.thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.thumb-info {
    flex: 1;
}

.thumb-info a {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-bottom: 3px;
}

.down-count {
    color: #888;
    font-size: 11px;
}

/* 推荐内容 */
.d4 li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.d4 li:last-child {
    border-bottom: none;
}

.d4 li a {
    color: #00d4ff;
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.d4 li p {
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}

/* 侧栏排行榜 */
.c1 li {
    padding: 6px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c1 li:last-child {
    border-bottom: none;
}

/* ========== 列表页布局 (Category List) ========== */
.place {
    background: rgba(0, 212, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #00d4ff;
    font-size: 13px;
}

.listbox {
    background: linear-gradient(145deg, #16192b 0%, #1e223c 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 15px;
}

.listbox .e2 li {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin: 8px 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    align-items: center;
}

.listbox .e2 li:hover {
    background: rgba(0, 212, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

.listbox .e2 li .preview img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.listbox .e2 li .title-row {
    margin-bottom: 5px;
}

.listbox .e2 li .title {
    color: #00d4ff;
    font-size: 15px;
    font-weight: bold;
}

.listbox .e2 li .info {
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}

.listbox .e2 li .info span {
    margin-right: 15px;
}

.listbox .e2 li .intro {
    color: #aaa;
    font-size: 12px;
    line-height: 1.5;
}

/* ========== 详情页布局 (Article View) ========== */
.viewbox {
    background: linear-gradient(145deg, #16192b 0%, #1e223c 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.viewbox .title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.viewbox .title h2 {
    color: #00d4ff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.viewbox .info {
    color: #888;
    font-size: 12px;
    padding: 5px 0 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.viewbox .info span {
    margin-right: 15px;
}

/* 详情核心网格 */
.detail-grid {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.detail-img-box {
    width: 250px;
    flex-shrink: 0;
}

.detail-img-box img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.detail-info-box {
    flex: 1;
    min-width: 280px;
}

/* 霓虹发光下载按钮 */
.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white !important;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    text-align: center;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
}

/* 属性表格 */
.info-table {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 10px 15px;
    font-size: 13px;
}

.info-table td:first-child {
    width: 100px;
    color: #00d4ff;
    font-weight: bold;
    background: rgba(0, 212, 255, 0.05);
}

.info-table td:last-child {
    color: #e0e0e0;
}

/* 警告框 */
.warning-box {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 12px 18px;
    margin: 20px 0;
    color: #ff6b6b;
    font-size: 13px;
}

/* 上下篇导航 */
.context-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    margin-top: 20px;
    font-size: 13px;
}

.context-nav div {
    margin: 5px 0;
}

/* ========== Language Selector ========== */
.lang-selector select { background: rgba(0,0,0,0.5); color: #00d4ff; border: 1px solid #00d4ff; padding: 5px 10px; border-radius: 5px; cursor: pointer; outline: none; font-weight: bold; } 
.lang-selector select option { background: #16192b; color: #fff; }
