@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=ZCOOL+XiaoWei&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #c62828;
    --primary-dark: #b71c1c;
    --primary-light: #ef5350;
    --secondary: #1976d2;
    --secondary-dark: #1565c0;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 14px;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    background: #2c2c2c;
    color: #ccc;
    font-size: 12px;
    padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #ccc; margin-left: 15px; }
.top-bar a:hover { color: #fff; }

.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: bold;
}
.logo-text { font-family: 'ZCOOL XiaoWei', serif; font-size: 22px; color: var(--primary); }
.logo-sub { font-size: 12px; color: var(--text-gray); }

.search-box {
    display: flex;
    background: var(--bg-light);
    border: 2px solid var(--primary);
    border-radius: 24px;
    overflow: hidden;
    width: 420px;
}
.search-box input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
}
.search-box button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 24px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.search-box button:hover { background: var(--primary-dark); }

.nav-bar {
    background: var(--primary);
}
.nav-bar .container { display: flex; }
.nav-bar a {
    color: #fff;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
    position: relative;
}
.nav-bar a:hover, .nav-bar a.active { background: var(--primary-dark); }
.nav-bar a.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 30px; height: 3px;
    background: #fff;
    border-radius: 2px;
}

.breadcrumb {
    background: var(--bg-white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-gray);
}
.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { text-decoration: underline; }

.banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #8b0000 100%);
    color: #fff;
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.banner-content { position: relative; z-index: 1; }
.banner h1 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 36px;
    margin-bottom: 12px;
}
.banner p { font-size: 16px; opacity: 0.9; margin-bottom: 20px; }
.banner-search {
    display: flex;
    max-width: 600px;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.banner-search input {
    flex: 1;
    padding: 14px 24px;
    border: none;
    outline: none;
    font-size: 15px;
}
.banner-search button {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 0 36px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.banner-search button:hover { background: var(--secondary-dark); }

.section { padding: 40px 0; }
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-title h2 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 24px;
    color: var(--text-dark);
    position: relative;
    padding-left: 16px;
}
.section-title h2::before {
    content: '';
    position: absolute;
    left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 24px;
    background: var(--primary);
    border-radius: 2px;
}
.section-title .more {
    color: var(--text-gray);
    font-size: 13px;
}
.section-title .more:hover { color: var(--primary); }

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.category-item {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 28px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}
.category-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.category-icon {
    width: 56px; height: 56px;
    margin: 0 auto 12px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    color: #fff;
}
.cat-software { background: linear-gradient(135deg, #667eea, #764ba2); }
.cat-video { background: linear-gradient(135deg, #f093fb, #f5576c); }
.cat-games { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.cat-documents { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.cat-mobile { background: linear-gradient(135deg, #fa709a, #fee140); }
.cat-tools { background: linear-gradient(135deg, #30cfd0, #330867); }
.category-name { font-size: 14px; font-weight: 500; color: var(--text-dark); }
.category-count { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.card-thumb {
    height: 140px;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
    color: var(--primary);
    position: relative;
}
.card-thumb .badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.card-meta span { display: flex; align-items: center; gap: 3px; }
.card-desc {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.download-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.download-btn:hover { background: var(--primary-dark); color: #fff; }
.download-btn.secondary {
    background: var(--secondary);
}
.download-btn.secondary:hover { background: var(--secondary-dark); }
.card-footer .size { font-size: 12px; color: var(--text-gray); }

.sidebar-list {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.sidebar-list h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.sidebar-list ul { list-style: none; }
.sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a { color: var(--text-dark); }
.sidebar-list li a:hover { color: var(--primary); }
.sidebar-list .hot {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-group {
    display: flex;
    gap: 6px;
    align-items: center;
}
.filter-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}
.filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}
.pagination a {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--bg-white);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-dark);
    padding: 0 10px;
}
.pagination a:hover, .pagination a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.video-list { display: flex; flex-direction: column; gap: 16px; }
.video-item {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    transition: all 0.3s;
}
.video-item:hover { box-shadow: var(--shadow-hover); }
.video-thumb {
    width: 180px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 36px;
    flex-shrink: 0;
    position: relative;
}
.video-thumb .quality {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
}
.video-info { flex: 1; }
.video-info h3 { font-size: 16px; margin-bottom: 8px; }
.video-info h3 a:hover { color: var(--primary); }
.video-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-light); margin-bottom: 8px; flex-wrap: wrap; }
.video-desc { font-size: 13px; color: var(--text-gray); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-actions { display: flex; gap: 8px; }

.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.game-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.game-cover {
    height: 160px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 48px;
    position: relative;
}
.game-cover.pc { background: linear-gradient(135deg, #667eea, #764ba2); }
.game-cover.mobile { background: linear-gradient(135deg, #fa709a, #fee140); }
.game-cover.console { background: linear-gradient(135deg, #30cfd0, #330867); }
.game-platform {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}
.game-info { padding: 14px; }
.game-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.game-meta { display: flex; gap: 8px; font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.game-footer { display: flex; align-items: center; justify-content: space-between; }

.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc-item {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 14px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.3s;
}
.doc-item:hover { box-shadow: var(--shadow-hover); }
.doc-icon {
    width: 48px; height: 48px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}
.doc-icon.pdf { background: #e53935; }
.doc-icon.doc { background: #1e88e5; }
.doc-icon.xls { background: #43a047; }
.doc-icon.zip { background: #8e24aa; }
.doc-icon.txt { background: #6d4c41; }
.doc-info { flex: 1; min-width: 0; }
.doc-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { display: flex; gap: 8px; font-size: 12px; color: var(--text-light); }
.doc-action { flex-shrink: 0; }

.about-section {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.about-section h2 {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}
.about-section h3 {
    font-size: 18px;
    margin: 20px 0 12px;
    color: var(--text-dark);
}
.about-section p, .about-section li { font-size: 14px; line-height: 1.8; color: var(--text-dark); }
.about-section ul { padding-left: 20px; }
.about-section li { margin-bottom: 6px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 24px 0;
}
.feature-item {
    text-align: center;
    padding: 20px;
}
.feature-icon {
    width: 60px; height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 28px;
}
.feature-title { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.feature-desc { font-size: 12px; color: var(--text-gray); }

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}
.form-group label .required { color: var(--primary); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-white);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }

.submit-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.submit-btn:hover { background: var(--primary-dark); }
.submit-btn.secondary { background: var(--secondary); }
.submit-btn.secondary:hover { background: var(--secondary-dark); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}
.faq-q { font-weight: 500; font-size: 15px; margin-bottom: 8px; color: var(--text-dark); }
.faq-q::before { content: 'Q'; color: var(--primary); font-weight: bold; margin-right: 8px; }
.faq-a { font-size: 14px; color: var(--text-gray); padding-left: 20px; }

.footer {
    background: #2c2c2c;
    color: #aaa;
    padding: 40px 0 0;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--primary);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #aaa; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-bottom {
    border-top: 1px solid #444;
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: #888;
}
.footer-bottom a { color: #aaa; margin: 0 6px; }
.footer-bottom a:hover { color: #fff; }

.breadcrumb-bar {
    background: var(--bg-white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.breadcrumb-bar .container { display: flex; align-items: center; gap: 6px; color: var(--text-gray); }
.breadcrumb-bar a { color: var(--secondary); }
.breadcrumb-bar a:hover { text-decoration: underline; }

.new-resources {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.hot-tags a {
    padding: 5px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 12px;
    color: var(--text-gray);
    transition: all 0.2s;
}
.hot-tags a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .game-grid { grid-template-columns: repeat(3, 1fr); }
    .new-resources { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .content-layout { grid-template-columns: 1fr; }
    .search-box { width: 280px; }
}

@media (max-width: 768px) {
    .nav-bar .container { overflow-x: auto; }
    .nav-bar a { padding: 12px 16px; font-size: 14px; white-space: nowrap; }
    .header .container { height: auto; padding: 12px 20px; flex-wrap: wrap; gap: 10px; }
    .search-box { width: 100%; }
    .banner { padding: 30px 0; }
    .banner h1 { font-size: 24px; }
    .banner p { font-size: 14px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .game-grid { grid-template-columns: repeat(2, 1fr); }
    .new-resources { grid-template-columns: repeat(2, 1fr); }
    .doc-list { grid-template-columns: 1fr; }
    .video-item { flex-direction: column; }
    .video-thumb { width: 100%; height: 160px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
    .game-grid { grid-template-columns: 1fr; }
    .new-resources { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title h2 { font-size: 20px; }
}