/**
 * JDP 现代科技艺术风格网页样式
 * 极简深色主题 + 科幻霓虹发光 + 高级玻璃拟态 (Glassmorphism) + 响应式布局优化
 */

/* ========== 导入字体 & 变量定义 ========== */
:root {
    --bg-main: radial-gradient(circle at 50% 0%, #141729 0%, #0b0c13 100%);
    --bg-glass: rgba(20, 24, 43, 0.6);
    --bg-glass-hover: rgba(28, 33, 59, 0.75);
    --border-glow: 1px solid rgba(0, 240, 255, 0.15);
    --border-light: 1px solid rgba(255, 255, 255, 0.08);
    
    --color-cyan: #00f0ff;
    --color-pink: #ff007f;
    --color-purple: #9d4edd;
    --color-green: #00e676;
    
    --font-primary: 'Outfit', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html, body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    background: var(--bg-main);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-pink);
    text-shadow: 0 0 12px rgba(255, 0, 127, 0.6);
}

ul {
    list-style: none;
}

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

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

/* ========== 导航栏 (Navigation Bar) ========== */
#navMenu {
    background: rgba(11, 12, 19, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 64px;
    display: flex;
    align-items: center;
    border-bottom: var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.logo {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
    letter-spacing: 0.5px;
    margin-right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

#navLinks::-webkit-scrollbar {
    display: none;
}

#navLinks li a {
    display: flex;
    align-items: center;
    padding: 8px 18px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    white-space: nowrap;
    border: 1px solid transparent;
}

#navLinks li a:hover {
    color: var(--color-cyan);
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.15);
}

#navLinks li.active a {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(255, 0, 127, 0.05) 100%);
    border: var(--border-glow);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

/* ========== 语言选择器 ========== */
.lang-selector select {
    background: rgba(0, 0, 0, 0.4);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.lang-selector select:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.lang-selector select option {
    background: #0f111a;
    color: #fff;
}

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

.pleft {
    flex: 1;
    min-width: 0;
}

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

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

/* ========== 搜索区域 ========== */
.search-section {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: var(--border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
}

.search-section:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

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

.search-label {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-purple) 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.35);
}

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

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
    background: rgba(0, 0, 0, 0.6);
}

.search-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--color-cyan) 0%, #0072ff 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.45);
}

/* ========== 最新上架广告栏 ========== */
.new-product-section {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: var(--border-light);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

.product-image {
    position: relative;
    width: 260px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: var(--border-light);
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 19, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.product-image:hover .product-overlay {
    opacity: 1;
}

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

.product-list h3 {
    color: var(--color-cyan);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-purple) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(255, 0, 127, 0.25);
}

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

.product-list ul li a {
    color: #f1f5f9;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.product-list ul li a:hover {
    color: var(--color-cyan);
    padding-left: 5px;
}

/* ========== 最新更新文章列表 ========== */
.newarticle {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.25) 0%, transparent 100%);
    color: #fff;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 16px;
    border-radius: 12px 12px 0 0;
    border-left: 4px solid var(--color-cyan);
    border-top: var(--border-light);
    border-right: var(--border-light);
    letter-spacing: 0.5px;
}

.update-list {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0 0 16px 16px;
    border: var(--border-light);
    border-top: none;
    padding: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.update-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    margin: 6px 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.update-list li:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(0, 240, 255, 0.25);
    transform: translateX(6px);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.08);
}

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

.update-date {
    color: var(--color-cyan);
    font-family: 'Outfit', monospace;
    font-size: 13px;
    font-weight: 700;
    min-width: 60px;
}

.update-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin: 0 16px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.update-list li:hover .update-thumb {
    border-color: var(--color-cyan);
}

.update-content a {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 600;
}

.update-tags .tested-tag {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid var(--color-green);
    color: var(--color-green);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ========== 右边栏卡片 (Tbox) ========== */
.tbox {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: var(--border-light);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
}

.tbox:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.tbox dt {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.1) 0%, transparent 100%);
    padding: 14px 20px;
    border-bottom: var(--border-light);
    border-left: 4px solid var(--color-cyan);
}

.tbox dt strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.tbox dd {
    padding: 16px;
}

/* 本月热点 */
.thumb-list li {
    display: flex;
    gap: 16px;
    padding: 10px;
    margin: 6px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: var(--transition-smooth);
    align-items: center;
}

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

.thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.thumb-info {
    flex: 1;
}

.thumb-info a {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.down-count {
    color: #64748b;
    font-size: 12px;
    font-family: 'Outfit', sans-serif;
}

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

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

.d4 li a {
    color: var(--color-cyan);
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.d4 li p {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}

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

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

.c1 li a {
    color: #cbd5e1;
}

.c1 li:hover {
    padding-left: 15px;
    background: rgba(255, 255, 255, 0.02);
}

.c1 li:hover a {
    color: var(--color-cyan);
}

/* ========== 列表页布局 (Category List) ========== */
.place {
    background: rgba(0, 240, 255, 0.05);
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--color-cyan);
    border-top: var(--border-light);
    border-right: var(--border-light);
    border-bottom: var(--border-light);
    font-size: 13px;
    color: #94a3b8;
}

.place a {
    color: #f1f5f9;
    font-weight: 600;
}

.listbox {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: var(--border-light);
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.listbox .e2 li {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    align-items: center;
}

.listbox .e2 li:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(0, 240, 255, 0.25);
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.1);
}

.listbox .e2 li .preview img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.listbox .e2 li .title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.listbox .e2 li:hover .title {
    color: var(--color-cyan);
}

.listbox .e2 li .info {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 8px;
}

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

.listbox .e2 li .intro {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

/* ========== 详情页布局 (Article View) ========== */
.viewbox {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: var(--border-light);
    padding: 30px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.viewbox .title {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.viewbox .title h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.viewbox .info {
    color: #64748b;
    font-size: 12px;
    padding: 0 0 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

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

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

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

.detail-img-box img {
    width: 100%;
    border-radius: 12px;
    border: var(--border-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

/* 霓虹发光下载按钮 */
.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-cyan) 0%, #0072ff 100%);
    color: white !important;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.35);
    text-align: center;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

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

/* 属性表格 */
.info-table {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.1);
    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: 12px 18px;
    font-size: 13px;
}

.info-table td:first-child {
    width: 110px;
    color: var(--color-cyan);
    font-weight: 700;
    background: rgba(0, 240, 255, 0.04);
}

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

/* 警告框 */
.warning-box {
    background: rgba(255, 0, 127, 0.08);
    border: 1px solid rgba(255, 0, 127, 0.25);
    border-radius: 10px;
    padding: 14px 20px;
    margin: 24px 0;
    color: #ff4d94;
    font-size: 13px;
}

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

.context-nav div {
    margin: 6px 0;
}

.context-nav div a {
    font-weight: 600;
}
