/* Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: #333; background: #fff; }
a { color: #0F62FA; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

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

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #ddedfa 0%, #e4f2f9 25%, #e2eafc 50%, #eaf5fc 75%, #f1f3fa 100%);
    min-height: 580px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: -70px;
    padding-top: 30px;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 60%);
    border-radius: 50%;
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
    height: 400px;
}
.hero-text { width: 500px; flex-shrink: 0; color: #1a1a1a; min-width: 0; height: 400px; display: flex; flex-direction: column; justify-content: center; }
.hero-title { font-size: 48px; font-weight: 800; margin-bottom: 10px; }
.hero-subtitle { font-size: 20px; margin-bottom: 20px; color: #333; }
.hero-desc { font-size: 18px; margin-bottom: 30px; color: #555; }
.hero-features { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.hero-features span { font-size: 14px; display: inline-flex; align-items: center; }
.icon-check-img { width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; display: inline-block; }
.hero-text .btn-download { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 180px; }
.hero-text .btn-download img { width: 20px; height: 20px; }
.hero-image { width: 600px; flex-shrink: 0; flex-grow: 0; min-width: 600px; height: 400px; display: flex; align-items: center; justify-content: center; position: relative; }

/* Product Carousel */
.product-carousel { width: 620px; height: 400px; position: relative; flex-shrink: 0; margin: auto; }
.hero-image { width: 620px; flex-shrink: 0; flex-grow: 0; min-width: 620px; height: 400px; display: flex; align-items: center; justify-content: center; position: relative; }
.carousel-track { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.carousel-track .product-card { position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-sizing: border-box; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); text-align: center; opacity: 0; visibility: visible; pointer-events: none; display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0; transition: opacity 0.5s ease; }
.carousel-track .product-card.active { opacity: 1; visibility: visible; z-index: 1; display: flex; flex-direction: column; flex-shrink: 0; pointer-events: auto; }
.carousel-track .product-card > img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top center; }
.carousel-product-info { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 10px 15px; background: #fff; border-top: 1px solid #eee; gap: 15px; flex-shrink: 0; }
.carousel-product-info .product-info-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.carousel-product-info .product-icon { display: inline-flex; width: 32px; height: 32px; }
.carousel-product-info .product-icon img { width: 32px; height: 32px; object-fit: contain; }
.carousel-product-info .product-text { text-align: left; }
.carousel-product-info .product-text h3 { font-size: 16px; font-weight: bold; margin: 0 0 0 0; color: #333; font-family: 'Microsoft YaHei', sans-serif; }
.carousel-product-info .product-text p { font-size: 12px; color: #666; margin: 0; line-height: 1.1; }
.carousel-product-info .btn-download { padding: 10px 24px; font-size: 14px; white-space: nowrap; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; position: absolute; bottom: 15px; left: 0; right: 0; z-index: 2; }
.carousel-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.carousel-dots .dot.active { background: #fff; transform: scale(1.2); }
.carousel-arrows { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); pointer-events: none; z-index: 10; }
.carousel-arrows .arrow { position: absolute; width: 44px; height: 44px; background: rgba(255,255,255,0.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; color: #333; transition: all 0.3s; pointer-events: auto; opacity: 0; }
.hero-banner:hover .carousel-arrows .arrow { opacity: 1; }
.carousel-arrows .arrow:hover { background: #fff; transform: scale(1.1); }
.carousel-arrows .arrow.prev { left: 20px; }
.carousel-arrows .arrow.next { right: 20px; }
@media (max-width: 768px) {
    .carousel-arrows { display: none; }
}
.product-icon { font-size: 80px; }
.main-card .product-icon { font-size: 100px; }
.product-features { text-align: left; margin: 20px 0; }
.product-features li { color: #666; margin-bottom: 8px; font-size: 14px; }
.product-actions { display: flex; gap: 12px; justify-content: center; }
.btn-download {
    background: linear-gradient(135deg, #FF6600 0%, #ff8533 100%);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-download:hover { background: linear-gradient(135deg, #e55c00 0%, #ff6b1a 100%); color: #fff; text-decoration: none; transform: translateY(-2px); }
.btn-detail {
    background: #f5f5f5;
    color: #333;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-detail:hover { background: #e8e8e8; color: #333; text-decoration: none; }

/* Products Section */
.products-section {
    padding: 80px 0;
    background: #fff;
}
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 36px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; }
.section-desc { font-size: 18px; color: #666; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.products-grid .product-card {
    background: #fafbfe;
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s;
}
.products-grid .product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.products-grid .product-card-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.products-grid .product-card-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.products-grid .product-card-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.products-grid .product-card-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.products-grid .product-card-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.products-grid .product-card-info .product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}
.products-grid .product-card-bottom {
    margin-top: 24px;
    text-align: left;
}
.products-grid .product-card-btn {
    padding: 10px 32px;
    font-size: 15px;
    letter-spacing: 2px;
}
.products-grid .product-card-info .btn-download {
    display: inline-flex;
    align-items: center;
    padding: 8px 24px;
    font-size: 14px;
}
.products-grid .product-card-deco {
    position: absolute;
    right: 20px;
    bottom: 15px;
    width: 60px;
    height: 60px;
    opacity: 0.06;
}
.products-grid .product-card-deco img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Features Section */
.features-section { padding: 80px 0; background: #f8f9ff; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.feature-item { text-align: center; padding: 30px; border-radius: 12px; transition: all 0.3s; }
.feature-item:hover { background: #f8f9ff; }
.feature-icon { font-size: 48px; margin-bottom: 20px; }
.feature-icon img { width: 48px; height: 48px; }
.feature-item h3 { font-size: 20px; margin-bottom: 12px; color: #1a1a1a; }
.feature-item p { color: #666; font-size: 15px; line-height: 1.7; }

/* Reviews Section */
.reviews-section { padding: 80px 0; background: #fff; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.review-stars { color: #f5c518; margin-bottom: 15px; }
.review-text { color: #444; font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { font-size: 32px; }
.review-name { font-weight: 600; color: #333; }
.review-job { color: #999; font-size: 13px; }

/* Download Section */
.download-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}
.download-content { color: #fff; }
.download-content h2 { font-size: 36px; margin-bottom: 15px; }
.download-content p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }
.btn-download-main {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s;
}
.btn-download-main:hover { background: #f0f0f0; color: #764ba2; text-decoration: none; transform: translateY(-3px); }

/* Responsive */
@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-content { flex-direction: column; text-align: center; gap: 40px; }
    .hero-title { font-size: 40px; }
    .hero-features { justify-content: center; flex-wrap: wrap; gap: 15px; }
    .hero-image { flex: none; }
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 28px; }
}

/* Navigation (from base.html) */
.header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 1000; }
.header-wrapper { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; padding: 0 20px; height: 70px; }
.logo { display: flex; align-items: center; margin-right: 40px; }
.logo img { height: 40px; }
.logo-text { font-size: 20px; font-weight: 700; color: #333; margin-left: 10px; }

.nav { flex: 1; display: flex; }
.nav ul { display: flex; list-style: none; gap: 5px; }
.nav li { position: relative; }
.nav a { display: block; padding: 10px 16px; color: #333; font-size: 15px; text-decoration: none; border-radius: 4px; }
.nav a:hover { color: #0F62FA; background: #f5f8ff; }

.header-sub_title { cursor: pointer; display: inline-flex; align-items: center; white-space: nowrap; }
.header-sub_title i { font-size: 10px; color: #666; margin-left: -9px; }

.header-sub_content { display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.12); border-radius: 12px; padding: 16px; min-width: auto; z-index: 100; border: 1px solid #f0f0f0; }
.product-li:hover .header-sub_content,
.product-li.dropdown-open .header-sub_content { display: block; }
.header-sub_content::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.header-sub_content ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.header-sub_content li { width: 100%; }
.header-sub_content a { display: flex; align-items: center; padding: 14px 16px; border-radius: 8px; white-space: nowrap; transition: background .2s; }
.header-sub_content a:hover { background: #f5f8ff; text-decoration: none; }
.product-icon-nav { width: 40px; height: 40px; margin-right: 14px; border-radius: 10px; background-size: contain; background-repeat: no-repeat; background-position: center; flex-shrink: 0; }
.product-icon-nav[data-slug="windows-cleaner"] { background-image: url('/static/images/wcleaner-logo.png'); }
.product-icon-nav[data-slug="zip-compress"] { background-image: url('/static/images/zip-logo.png'); }
.product-icon-nav[data-slug="windows-repair"] { background-image: url('/static/images/winrep-logo.png'); }
.product-icon-nav[data-slug="windows-task"] { background-image: url('/static/images/wintask-logo.png'); background-size: contain; background-repeat: no-repeat; background-position: center; }
.product-nav-info { display: flex; flex-direction: column; min-width: 0; }
.product-nav-name { font-size: 15px; font-weight: 600; color: #1a1a1a; line-height: 1.3; }
.product-nav-desc { font-size: 12px; color: #999; line-height: 1.4; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.top-download { background: #FF6600; color: #fff; padding: 10px 24px; border-radius: 6px; font-weight: 600; text-decoration: none; margin-left: 20px; white-space: nowrap; }
.top-download:hover { background: #e55c00; color: #fff; }

.main { min-height: calc(100vh - 70px - 300px); }

/* Footer */
.outer-footer { background: #f8f9ff; color: #333; padding: 40px 0 30px; }
.outer-footer-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.outer-footer-main { display: flex; align-items: center; }
.outer-footer-icon { margin-right: 40px; }
.outer-footer-icon img { height: 60px; width: auto; object-fit: contain; }
.line { width: 1px; height: 60px; background: #d0d0d0; margin-right: 40px; }
.outer-footer-list { flex: 1; display: flex; gap: 60px; }
.list-title { font-size: 16px; font-weight: 600; margin-bottom: 20px; color: #1a1a1a; }
.list-url { display: block; color: #666; font-size: 14px; margin-bottom: 12px; text-decoration: none; }
.list-url:hover { color: #0F62FA; }

.horizontal-line { border-top: 1px solid #e0e0e0; margin: 40px 0 30px; }
.outer-footer-record { display: flex; justify-content: space-between; align-items: center; color: #999; font-size: 14px; }
.outer-footer-record a { color: #999; text-decoration: none; }
.outer-footer-record a:hover { color: #0F62FA; }
.outer-footer-record_right { display: flex; gap: 15px; align-items: center; }
.outer-footer-record_right .line { width: 1px; height: 16px; margin: 0; }

/* Side bar */
.side { position: fixed; right: 20px; bottom: 80px; display: flex; flex-direction: column; z-index: 999; }
.side-item { width: 70px; height: 70px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.1); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; margin-bottom: 10px; }
.side-item:hover { background: #f5f8ff; }
.side-item img { width: 26px; height: 26px; margin-bottom: 4px; }
.side-item p { font-size: 12px; color: #333; }

/* Article Detail Page */
.article-detail { padding: 60px 0; background: #fff; }
.article-detail .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.article-header { text-align: center; margin-bottom: 40px; }
.article-category { display: inline-block; background: #0F62FA; color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 13px; margin-bottom: 20px; }
.article-header h1 { font-size: 36px; font-weight: 700; margin-bottom: 15px; line-height: 1.4; color: #1a1a1a; }
.article-summary { font-size: 18px; color: #666; line-height: 1.8; margin-bottom: 20px; }
.article-meta { display: flex; justify-content: center; gap: 30px; color: #999; font-size: 14px; }

.article-body { flex: 1; background: #f8f9ff; padding: 30px; border-radius: 12px; }
.article-layout { display: flex; gap: 25px; align-items: flex-start; }
.article-sidebar { width: 220px; flex-shrink: 0; }
.article-sidebar h3 { font-size: 16px; color: #1a1a1a; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #0F62FA; }
.related-list { display: flex; flex-direction: column; gap: 8px; }
.article-sidebar .related-item { background: #f8f9ff; padding: 12px 15px; border-radius: 6px; font-size: 14px; line-height: 1.5; }
.article-sidebar .related-item:hover { background: #e8f0fe; }
.article-sidebar .related-item a { color: #333; }
.article-sidebar .related-item a:hover { color: #0F62FA; text-decoration: none; }
.article-content { font-size: 17px; line-height: 1.9; color: #333; }
.article-content p { margin-bottom: 20px; }
.article-content h2 { font-size: 24px; margin: 35px 0 20px; color: #1a1a1a; }
.article-content img { border-radius: 8px; margin: 25px 0; max-width: 100%; }
.article-tags { margin-top: 40px; padding-top: 30px; border-top: 1px solid #e0e0e0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.article-tags strong { color: #666; }
.tag { background: #e8f0fe; color: #0F62FA; padding: 6px 14px; border-radius: 20px; font-size: 14px; }
.tag:hover { background: #0F62FA; color: #fff; text-decoration: none; }

/* Related Articles */
.related-articles { padding: 60px 0; background: #fff; }
.related-articles h2 { font-size: 24px; font-weight: 600; margin-bottom: 30px; color: #1a1a1a; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-item { background: #f8f9ff; padding: 20px; border-radius: 8px; transition: all 0.3s; }
.related-item:hover { background: #e8f0fe; transform: translateY(-3px); }
.related-item h3 { font-size: 16px; margin-bottom: 10px; }
.related-item h3 a { color: #333; }
.related-item h3 a:hover { color: #0F62FA; text-decoration: none; }
.related-item span { color: #999; font-size: 14px; }

/* Category Page */
.category-page { padding: 50px 0; }
.category-header { text-align: center; margin-bottom: 50px; }
.category-header h1 { font-size: 36px; margin-bottom: 15px; color: #1a1a1a; }

.category-layout { display: flex; gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.category-sidebar { width: 250px; flex-shrink: 0; }
.category-sidebar h3 { font-size: 16px; margin-bottom: 20px; color: #333; padding-bottom: 10px; border-bottom: 2px solid #0F62FA; }
.category-sidebar ul { list-style: none; }
.category-sidebar li { margin-bottom: 12px; }
.category-sidebar a { display: block; padding: 10px 15px; color: #666; border-radius: 6px; font-size: 14px; }
.category-sidebar a:hover, .category-sidebar a.active { background: #f5f8ff; color: #0F62FA; text-decoration: none; }

.category-content { flex: 1; }
.article-list-category { display: flex; flex-direction: column; gap: 20px; }
.article-item { background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); display: flex; gap: 20px; }
.article-thumb { width: 200px; height: 150px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f0f4ff; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #0F62FA; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-info { flex: 1; }
.article-info h2 { font-size: 20px; margin-bottom: 10px; }
.article-info h2 a { color: #333; }
.article-info h2 a:hover { color: #0F62FA; text-decoration: none; }
.article-info p { color: #666; margin-bottom: 15px; font-size: 14px; line-height: 1.6; }
.article-meta-category { display: flex; gap: 20px; color: #999; font-size: 13px; }
.no-articles { text-align: center; padding: 40px; color: #999; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a { padding: 10px 18px; background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; color: #333; font-size: 15px; }
.pagination a:hover { border-color: #0F62FA; color: #0F62FA; text-decoration: none; }
.pagination a.active { background: #0F62FA; color: #fff; border-color: #0F62FA; }

/* Search Page */
.search-page { padding: 50px 0; }
.search-header { text-align: center; margin-bottom: 40px; }
.search-header h1 { font-size: 32px; margin-bottom: 20px; }
.search-form { display: flex; max-width: 600px; margin: 0 auto 30px; }
.search-form input { flex: 1; padding: 16px 20px; border: 2px solid #e0e0e0; border-right: none; border-radius: 8px 0 0 8px; font-size: 16px; }
.search-form input:focus { border-color: #0F62FA; outline: none; }
.search-form button { padding: 16px 30px; background: #0F62FA; color: #fff; border: none; border-radius: 0 8px 8px 0; cursor: pointer; font-size: 16px; font-weight: 600; }
.search-result { max-width: 800px; margin: 0 auto; }
.search-result h3 { font-size: 20px; margin-bottom: 15px; }
.search-result h3 a { color: #333; }
.search-result p { color: #666; margin-bottom: 10px; }
.no-results { text-align: center; padding: 40px; color: #999; }

@media (max-width: 992px) {
    .header-sub_content { min-width: 280px; }
    .outer-footer-list { gap: 30px; }
    .side { display: none; }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .outer-footer-main { flex-direction: column; }
    .outer-footer-icon { margin-bottom: 30px; }
    .line { display: none; }
    .outer-footer-list { flex-direction: column; gap: 30px; }
    .outer-footer-record { flex-direction: column; gap: 15px; text-align: center; }
    .outer-footer-record_right { flex-wrap: wrap; justify-content: center; }
}
.system-info { margin-top: 5px; }