/* Global Styles & Layout Fixes */
body { background-color: #f5f7f9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.navbar-white { background: #fff; border-bottom: 1px solid #eee; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.navbar-brand { font-weight: 800; color: #1e293b !important; }
.nav-link { font-weight: 500; }
.btn { border-radius: 4px; font-weight: 600; transition: all 0.2s; }
.btn-primary { background-color: #18bc9c; border-color: #18bc9c; }
.btn-primary:hover { background-color: #15a589; border-color: #15a589; }
.panel, .card { border-radius: 8px; border: 1px solid #edf2f7; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.panel-heading { border-top-left-radius: 8px; border-top-right-radius: 8px; }
.breadcrumb { background: transparent; padding: 15px 0; margin-bottom: 10px; font-size: 13px; }
.breadcrumb a { color: #64748b; }
.breadcrumb > .active { color: #1e293b; font-weight: 600; }
/* Footer Styles */
.footer { background: #393939 !important; color: #94a3b8; padding: 60px 0 30px; margin-top: 80px; text-align: left; }
.footer-top { padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer-brand { color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 20px; display: block; }
.footer-desc { font-size: 14px; line-height: 1.6; margin-bottom: 25px; max-width: 280px; }
.footer-title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ""; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: #18bc9c; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; text-decoration: none !important; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #18bc9c; }
.footer-social { display: flex; gap: 15px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: all 0.2s; }
.footer-social a:hover { background: #18bc9c; transform: translateY(-3px); }
.footer-bottom { padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.copyright a { color: #94a3b8; margin-left: 15px; }
.copyright a:hover { color: #fff; }
.footer-lang { display: flex; gap: 20px; }
.footer-lang a { color: #64748b; text-decoration: none; }
.footer-lang a:hover { color: #fff; }

/* Home Page Styles */
.hero-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero-wrapper::after {
    content: ""; position: absolute; top: -10%; right: -5%; width: 40%; height: 120%;
    background: radial-gradient(circle, rgba(24, 188, 156, 0.05) 0%, transparent 70%);
    transform: rotate(-15deg);
}
.hero-content h1 { font-size: 56px; font-weight: 800; color: #1e293b; letter-spacing: -2px; line-height: 1.1; margin-bottom: 25px; }
.hero-content p { font-size: 20px; color: #64748b; line-height: 1.6; margin-bottom: 40px; max-width: 600px; }
.hero-btns .btn { padding: 15px 35px; font-size: 16px; border-radius: 6px; }
.stats-bar { background: #fff; padding: 40px 0; border-bottom: 1px solid #f1f5f9; margin-top: -50px; position: relative; z-index: 10; border-radius: 12px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); }
.stat-item { text-align: center; border-right: 1px solid #f1f5f9; }
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 32px; font-weight: 800; color: #1e293b; display: block; }
.stat-label { font-size: 13px; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.section-header { text-align: center; margin-bottom: 60px; margin-top: 80px; }
.section-header h2 { font-size: 32px; font-weight: 800; color: #1e293b; margin-bottom: 15px; }
.section-header p { color: #64748b; font-size: 16px; max-width: 700px; margin: 0 auto; }
.feature-card { padding: 40px; border-radius: 12px; border: 1px solid #f1f5f9; transition: all 0.3s; height: 100%; background: #fff; }
.feature-card:hover { transform: translateY(-5px); border-color: #18bc9c; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05); }
.feature-icon { width: 60px; height: 60px; background: #f0fdf4; color: #18bc9c; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 24px; margin-bottom: 25px; }
.feature-card h3 { font-size: 20px; font-weight: 700; color: #1e293b; margin-bottom: 15px; }
.feature-card p { color: #64748b; line-height: 1.6; font-size: 14px; }
.cta-section { background: #1e293b; padding: 80px 0; margin-top: 100px; color: #fff; text-align: center; }
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 20px; }
.cta-section p { color: #94a3b8; font-size: 18px; margin-bottom: 40px; }

/* App Store (List & Grid) */
.store-container { padding: 30px 0; background: #f5f7fa; min-height: 600px; }
.store-filter { margin-bottom: 25px; background: #fff; padding: 20px; border-radius: 8px; border: 1px solid #edf2f7; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.filter-row { display: flex; align-items: flex-start; margin-bottom: 15px; border-bottom: 1px solid #f8fafc; padding-bottom: 12px; }
.filter-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-label { font-weight: 700; width: 60px; color: #334155; font-size: 14px; padding-top: 4px; }
.filter-options { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-link { color: #64748b; text-decoration: none !important; padding: 4px 12px; border-radius: 4px; transition: all 0.2s; font-size: 13px; border: 1px solid transparent; }
.filter-link.active { background: #18bc9c; color: #fff !important; font-weight: 700; }
.filter-link:hover:not(.active) { background: #f1f5f9; color: #18bc9c !important; }
.sub-filter-box { background: #f8fafc; padding: 10px 15px; border-radius: 6px; margin-top: 10px; display: flex; align-items: center; gap: 15px; }
.sub-link { font-size: 13px; color: #64748b; text-decoration: none !important; }
.sub-link.active { color: #18bc9c; font-weight: 700; }
.sub-link:hover:not(.active) { color: #18bc9c; }
.item-card { background: #fff; border-radius: 8px; overflow: hidden; transition: all 0.2s; margin-bottom: 25px; border: 1px solid #edf2f7; position: relative; }
.item-card:hover { border-color: #18bc9c; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
.item-badge { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 2px; font-size: 10px; font-weight: 700; color: #fff; z-index: 10; text-transform: uppercase; }
.badge-free { background: #10b981; }
.badge-paid { background: #ef4444; }
.item-img-wrapper { width: 100%; height: 160px; overflow: hidden; background: #f8fafc; border-bottom: 1px solid #f1f5f9; }
.item-img { width: 100%; height: 100%; object-fit: cover; }
.item-info { padding: 15px; }
.item-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-desc { color: #64748b; font-size: 13px; height: 36px; overflow: hidden; margin-bottom: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #f8fafc; }
.item-price { font-size: 16px; color: #ef4444; font-weight: 800; }
.item-price.free { color: #10b981; }
.item-meta { font-size: 11px; color: #94a3b8; }
.store-grid { margin-bottom: 50px; }
.store-item-card { background: #fff; border-radius: 10px; border: 1px solid #f1f5f9; overflow: hidden; transition: all 0.2s; }
.store-item-card:hover { border-color: #18bc9c; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
.store-img { width: 100%; height: 160px; object-fit: cover; background: #f8fafc; }
.store-info { padding: 15px; }
.store-title { font-weight: 700; font-size: 15px; color: #1e293b; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Forum Emoji Toolbar */
.dz-reply-toolbar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 8px 15px;
    display: flex;
    gap: 10px;
}
.btn-toolbar {
    background: transparent;
    border: none;
    padding: 4px 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-toolbar:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.toolbar-divider {
    width: 1px;
    height: 18px;
    background: #e2e8f0;
    margin: auto 5px;
}
.btn-toolbar i {
    font-size: 16px;
}
.emoji-dropdown {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 15px;
    display: none;
    z-index: 10;
}
.emoji-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    gap: 5px;
}
.emoji-item {
    font-size: 20px;
    padding: 5px;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    transition: all 0.1s;
}
.emoji-item:hover {
    background: #f1f5f9;
    transform: scale(1.2);
}
.dz-qr-form textarea {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-top: none !important;
}
.emoji-picker-container {
    position: relative;
}

/* Quick Phrases */
.quick-phrases {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 5px;
}
.phrase-item {
    font-size: 11px;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.phrase-item:hover {
    background: #18bc9c;
    color: #fff;
    border-color: #18bc9c;
}

/* Forum Content Styles */
.forum-quote {
    background: #f8fafc;
    border-left: 4px solid #18bc9c;
    padding: 15px;
    margin: 15px 0;
    color: #64748b;
    font-size: 14px;
    font-style: italic;
}
.forum-code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
}
.forum-img {
    display: inline-block;
    max-width: 30%;
    max-height: 250px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: zoom-in;
}
.forum-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Store Detail */
.detail-container { padding: 30px 0; background: #f5f7f9; }
.item-header-block { background: #fff; border-radius: 8px; border: 1px solid #edf2f7; padding: 30px; margin-bottom: 25px; display: flex; gap: 40px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.item-preview { flex: 0 0 400px; }
.item-preview img { width: 100%; border-radius: 6px; border: 1px solid #eee; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-size: 26px; font-weight: 800; margin: 10px 0 15px 0; color: #1e293b; }
.item-price-box { background: #f8fafc; padding: 20px 25px; border-radius: 6px; margin-bottom: 25px; border: 1px solid #f1f5f9; }
.price-label { font-size: 13px; color: #94a3b8; margin-bottom: 5px; display: block; }
.price-value { font-size: 30px; color: #ef4444; font-weight: 800; }
.price-value.free { color: #10b981; }
.item-stats { color: #64748b; font-size: 13px; margin-bottom: 25px; display: flex; flex-wrap: wrap; gap: 20px; }
.item-stats span { display: flex; align-items: center; gap: 6px; }
.item-stats i { color: #94a3b8; }
.detail-content-block { background: #fff; border-radius: 8px; border: 1px solid #edf2f7; padding: 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.section-title { font-size: 18px; font-weight: 700; color: #1e293b; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #f1f5f9; position: relative; }
.section-title::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 50px; height: 2px; background: #18bc9c; }
.item-description { line-height: 1.8; color: #475569; font-size: 15px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f8fafc; color: #475569; font-size: 14px; }
.feature-list li:last-child { border-bottom: none; }
.feature-list i { color: #10b981; font-size: 16px; }
.btn-buy { padding: 12px 40px; border-radius: 4px; font-weight: 700; font-size: 16px; }

/* News & Articles List */
.article-body { background: #f5f7f9; padding: 30px 0; min-height: calc(100vh - 200px); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
.article-container { max-width: 1200px; margin: 0 auto; }
.dz-breadcrumb { font-size: 13px; color: #64748b; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.dz-breadcrumb a { color: #64748b; text-decoration: none; }
.dz-breadcrumb a:hover { color: #18bc9c; }
.dz-breadcrumb i { font-size: 12px; color: #cbd5e1; }
.article-cat-block { background: #fff; border-radius: 8px; margin-bottom: 25px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid #edf2f7; }
.article-table { width: 100%; border-collapse: collapse; }
.article-tr { border-bottom: 1px solid #f8fafc; transition: background 0.2s; display: flex; align-items: stretch; }
.article-tr:hover { background: #fafbfc; }
.article-tr:last-child { border-bottom: none; }
.article-td-img { width: 200px; padding: 20px; flex-shrink: 0; }
.article-img-wrapper { width: 100%; height: 120px; border-radius: 6px; overflow: hidden; border: 1px solid #eee; }
.article-img { width: 100%; height: 100%; object-fit: cover; }
.article-td-info { padding: 20px 0; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.article-name { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.article-name a { color: #1e293b; text-decoration: none; }
.article-name a:hover { color: #18bc9c; }
.article-desc { color: #64748b; font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 20px; }
.article-td-stats { width: 120px; padding: 20px; text-align: center; font-size: 12px; color: #94a3b8; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #f8fafc; }
.article-td-stats em { display: block; font-style: normal; color: #475569; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.article-td-date { width: 140px; padding: 20px; text-align: center; font-size: 12px; color: #94a3b8; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #f8fafc; }
.sidebar-block { background: #fff; border-radius: 8px; border: 1px solid #edf2f7; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 20px; overflow: hidden; }
.sidebar-header { background: #f8fafc; padding: 10px 15px; border-bottom: 1px solid #edf2f7; font-weight: 700; color: #334155; font-size: 14px; }
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav a { display: flex; justify-content: space-between; padding: 10px 15px; color: #475569; text-decoration: none; font-size: 13px; border-bottom: 1px solid #f8fafc; }
.sidebar-nav a:hover { background: #fafbfc; color: #18bc9c; }
.sidebar-nav a.active { background: #18bc9c; color: #fff; }
.hot-item { padding: 12px 15px; border-bottom: 1px solid #f8fafc; display: flex; gap: 10px; }
.hot-item:last-child { border-bottom: none; }
.hot-img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex-shrink: 0; border: 1px solid #eee; }
.hot-title { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-title a { color: inherit; text-decoration: none; }
.hot-title a:hover { color: #18bc9c; }
.hot-meta { font-size: 11px; color: #94a3b8; }
.sidebar-search { padding: 15px; }
.sidebar-search .input-group { border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
.sidebar-search input { border: none; font-size: 13px; height: 34px; box-shadow: none; }
.sidebar-search button { background: #f8fafc; border: none; border-left: 1px solid #e2e8f0; color: #64748b; padding: 0 12px; }
.sidebar-search button:hover { background: #f1f5f9; color: #18bc9c; }

/* Forum Styles */
.forum-body { background: #f5f7f9; padding: 25px 0; min-height: calc(100vh - 200px); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.forum-container { max-width: 1200px; margin: 0 auto; }
.forum-stat { background: #fff; padding: 12px 20px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); margin-bottom: 20px; font-size: 13px; color: #64748b; display: flex; align-items: center; border: 1px solid #edf2f7; }
.forum-stat span { margin-right: 25px; display: flex; align-items: center; gap: 6px; }
.forum-stat strong { color: #1e293b; font-weight: 700; }
.forum-stat i { color: #94a3b8; font-size: 14px; }
.forum-cat-block { background: #fff; border-radius: 4px; margin-bottom: 20px; overflow: hidden; border: 1px solid #edf2f7; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.cat-header { background: #f8fafc; padding: 10px 15px; border-bottom: 1px solid #edf2f7; font-weight: 700; color: #334155; font-size: 14px; display: flex; justify-content: space-between; }
.board-table { width: 100%; border-collapse: collapse; }
.board-tr { border-bottom: 1px solid #f8fafc; transition: background 0.2s; }
.board-tr:hover { background: #fafbfc; }
.board-tr:last-child { border-bottom: none; }
.board-td-icon { width: 70px; padding: 15px; text-align: center; vertical-align: middle; }
.board-icon-wrapper { width: 40px; height: 40px; border-radius: 4px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.board-icon-wrapper i { font-size: 18px; color: #18bc9c; }
.board-td-info { padding: 15px 0; vertical-align: middle; }
.board-name { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.board-name a { color: #1e293b; text-decoration: none; }
.board-name a:hover { color: #18bc9c; }
.board-desc { color: #94a3b8; font-size: 12px; }
.board-td-stats { width: 120px; padding: 15px 0; text-align: center; font-size: 12px; color: #94a3b8; vertical-align: middle; }
.board-td-stats em { display: block; font-style: normal; color: #475569; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.board-td-last { width: 250px; padding: 15px; font-size: 12px; color: #94a3b8; vertical-align: middle; border-left: 1px solid #f8fafc; }
.last-post-link { display: block; width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #475569; text-decoration: none; font-weight: 600; margin-bottom: 3px; }
.last-post-link:hover { color: #18bc9c; }
.last-post-meta { font-size: 11px; color: #cbd5e1; }
.last-post-meta cite { font-style: normal; color: #18bc9c; margin-right: 6px; font-weight: 600; }
.btn-dz-action { display: inline-block; padding: 6px 16px; background: #18bc9c; color: #fff; font-size: 13px; text-decoration: none; font-weight: 700; border-radius: 4px; transition: all 0.2s; }
.btn-dz-action:hover { background: #15a589; color: #fff; }

/* Download Center */
.dl-container { padding-top: 40px; }
.dl-header { margin-bottom: 40px; text-align: center; }
.dl-header h1 { font-weight: 800; color: #1e293b; margin-bottom: 10px; }
.dl-header p { color: #64748b; font-size: 15px; }
.dl-card { background: #fff; border: 1px solid #edf2f7; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 20px; }
.dl-card-header { background: #1e293b; color: #fff; padding: 15px 25px; font-weight: 700; font-size: 14px; }
.dl-card-header.light { background: #f8fafc; color: #334155; border-bottom: 1px solid #edf2f7; }
.dl-card-body { padding: 30px; }
.dl-card-body.compact { padding: 20px; }
.dl-hero-info { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.dl-hero-icon { width: 70px; height: 70px; background: #f1f5f9; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #18bc9c; }
.dl-hero-title h2 { margin: 0 0 5px 0; font-weight: 800; color: #1e293b; font-size: 24px; }
.dl-hero-meta { color: #94a3b8; font-size: 12px; }
.dl-summary { background: #fcfdfe; border: 1px solid #f1f5f9; padding: 20px; border-radius: 4px; margin-bottom: 25px; }
.dl-summary h4 { font-weight: 700; font-size: 14px; margin-bottom: 12px; color: #475569; }
.dl-summary ul { padding-left: 18px; line-height: 2; font-size: 13px; color: #64748b; margin-bottom: 0; }
.dl-actions { display: flex; gap: 15px; }
.dl-actions .btn { flex: 1; padding: 12px; font-weight: 700; }
.dl-req-table { margin-bottom: 0; font-size: 13px; width: 100%; }
.dl-req-table td { padding: 12px 0; border-bottom: 1px solid #f8fafc; }
.dl-req-table tr:last-child td { border-bottom: none; }
.dl-req-label { color: #94a3b8; width: 100px; }
.dl-req-value { color: #475569; font-weight: 600; }
.dl-link-box { display: flex; align-items: center; justify-content: space-between; text-decoration: none !important; }
.dl-history-table { margin-bottom: 0; font-size: 13px; width: 100%; }
.dl-history-table th { background: #fcfdfe; padding: 12px 20px; color: #64748b; font-weight: 700; text-align: left; }
.dl-history-table td { padding: 12px 20px; border-top: 1px solid #f8fafc; }

/* Article Detail */
.article-detail-body { background: #f5f7f9; padding: 30px 0; min-height: calc(100vh - 200px); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
.article-view-block { background: #fff; border-radius: 8px; border: 1px solid #edf2f7; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 25px; }
.article-title-box { background: #f8fafc; padding: 25px 30px; border-bottom: 1px solid #edf2f7; text-align: center; }
.article-title { font-size: 26px; font-weight: 800; color: #1e293b; margin: 0 0 12px 0; line-height: 1.3; }
.article-meta-bar { display: flex; justify-content: center; align-items: center; gap: 20px; color: #94a3b8; font-size: 13px; }
.article-meta-bar span { display: flex; align-items: center; gap: 5px; }
.article-author-name { color: #1e293b; font-weight: 700; }
.article-official-badge { background: #18bc9c; color: #fff; padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.article-main { background: #fff; padding: 30px; }
.article-rich-text { font-size: 16px; line-height: 1.8; color: #334155; }
.article-rich-text p { margin-bottom: 1.2em; }
.article-rich-text h2 { font-size: 22px; font-weight: 700; color: #1e293b; margin: 30px 0 15px 0; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px; }
.article-rich-text h3 { font-size: 18px; font-weight: 700; color: #1e293b; margin: 20px 0 10px 0; }
.article-rich-text img { max-width: 100%; height: auto; margin: 20px 0; border: 1px solid #eee; border-radius: 4px; }
.article-footer-notice { margin-top: 30px; padding: 15px 20px; background: #f8fafc; border-radius: 6px; font-size: 13px; color: #94a3b8; display: flex; align-items: center; gap: 10px; }
.related-title { font-size: 16px; font-weight: 700; color: #334155; margin-bottom: 15px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related-item { display: flex; gap: 10px; padding: 10px; border: 1px solid #f5f7f9; text-decoration: none !important; }
.related-item:hover { background: #f8fafc; }
.related-item img { width: 60px; height: 45px; border-radius: 3px; object-fit: cover; }
.related-item h5 { font-size: 13px; font-weight: 600; color: #334155; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-box { display: flex; gap: 10px; margin-top: 20px; }
.nav-link-item { flex: 1; padding: 12px; border: 1px solid #edf2f7; border-radius: 6px; background: #fff; text-decoration: none !important; min-width: 0; }
.nav-link-item:hover { border-color: #18bc9c; }
.nav-tip { font-size: 11px; color: #94a3b8; display: block; margin-bottom: 3px; }
.nav-txt { font-size: 13px; color: #1e293b; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* News List Item (Shared) */
.news-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #f1f5f9; transition: all 0.2s; }
.news-item:hover { background: #fcfdfe; }
.news-date { flex: 0 0 60px; text-align: center; background: #f8fafc; border-radius: 8px; padding: 10px 0; height: fit-content; }
.news-date .day { font-size: 20px; font-weight: 800; color: #1e293b; display: block; }
.news-date .month { font-size: 11px; color: #94a3b8; text-transform: uppercase; }
.news-body { flex: 1; }
.news-title { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 8px; display: block; text-decoration: none !important; }
.news-title:hover { color: #18bc9c; }
.news-desc { color: #64748b; font-size: 14px; line-height: 1.5; }

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Global Container */
    .container, .article-container, .forum-container, .board-container { padding: 0 15px; }
    
    /* Forum Home Mobile */
    .forum-stat { 
        flex-wrap: wrap; 
        gap: 8px; 
        padding: 12px;
    }
    .forum-stat span { 
        margin-right: 12px; 
        font-size: 12px; 
    }
    .forum-stat .ms-auto { 
        width: 100%; 
        margin-top: 5px; 
        margin-left: 0 !important;
    }
    .forum-stat .btn-dz-action { 
        display: block; 
        text-align: center; 
        width: 100%; 
    }
    
    .board-td-stats, .board-td-last { 
        display: none; 
    }
    .board-td-icon { 
        width: 60px; 
        padding: 12px 10px; 
    }
    .board-icon-wrapper { 
        width: 36px; 
        height: 36px; 
    }
    .board-icon-wrapper i { 
        font-size: 16px; 
    }
    .board-name { 
        font-size: 14px; 
        margin-bottom: 2px;
    }
    .board-desc { 
        font-size: 11px; 
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Article List Mobile */
    .article-td-img { 
        width: 100px; 
        padding: 10px; 
    }
    .article-img-wrapper { 
        height: 70px; 
    }
    .article-td-stats, .article-td-date { 
        display: none; 
    }
    .article-name { 
        font-size: 15px; 
    }
    .article-desc { 
        -webkit-line-clamp: 2; 
        padding-right: 10px;
    }
    
    /* Hero Section Mobile */
    .hero-wrapper { padding: 60px 0 80px; text-align: center; }
    .hero-content h1 { font-size: 32px; line-height: 1.2; margin-bottom: 20px; }
    .hero-content p { font-size: 16px; margin: 0 auto 30px; }
    .hero-btns { display: flex; flex-direction: column; gap: 12px; }
    .hero-btns .btn { width: 100%; margin: 0 !important; }
    
    /* Stats Bar Mobile */
    .stats-bar { margin-top: -40px; padding: 20px 10px; }
    .stat-item { 
        width: 50% !important; 
        float: left; 
        border-right: none; 
        border-bottom: 1px solid #f1f5f9; 
        padding: 15px 0; 
    }
    .stat-item:nth-child(odd) { border-right: 1px solid #f1f5f9; }
    .stat-item:nth-child(n+3) { border-bottom: none; }
    .stat-value { font-size: 24px; }
    .stat-label { font-size: 11px; }

    /* Features Mobile */
    .section-header { margin-bottom: 40px; margin-top: 50px; }
    .section-header h2 { font-size: 24px; }
    .feature-card { padding: 30px 20px; margin-bottom: 20px; }
    
    /* Store Grid Mobile */
    .store-grid [class*="col-"] { padding: 0 10px; }
    .store-item-card { margin-bottom: 20px; }

    /* News Item Mobile */
    .news-item { gap: 15px; }
    .news-date { flex: 0 0 50px; }
    .news-date .day { font-size: 16px; }

    /* CTA Section Mobile */
    .cta-section { padding: 60px 0; margin-top: 60px; }
    .cta-section h2 { font-size: 26px; }
    .cta-section p { font-size: 15px; }

    /* Download Page Mobile */
    .dl-actions { flex-direction: column; gap: 10px; }
    .dl-hero-info { flex-direction: column; text-align: center; gap: 15px; }
    .dl-hero-icon { margin: 0 auto; }
    .dl-history-table th:nth-child(n+3), .dl-history-table td:nth-child(n+3) { display: none; }
    .dl-history-table::after { content: "请在 PC 端查看完整下载链接"; display: block; padding: 15px; font-size: 12px; color: #94a3b8; text-align: center; }

    /* Article Detail Mobile */
    .article-title { font-size: 20px; }
    .article-meta-bar { flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
    .article-main { padding: 20px 15px; }
    .related-grid { grid-template-columns: 1fr; }
    .nav-box { flex-direction: column; }

    /* Board Page Mobile */
    .dz-board-header { 
        padding: 15px;
        display: block;
    }
    .dz-board-header .text-right { 
        margin-top: 5px; 
        text-align: left;
        font-size: 11px;
    }
    .dz-board-title h1 { font-size: 18px; margin-bottom: 5px; }
    
    .dz-list-header { display: none !important; }
    .dz-post-author, .dz-post-stats, .dz-post-last { display: none !important; }
    
    .dz-post-item {
        padding: 12px 10px;
        display: flex;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
    }
    .dz-post-icon { 
        width: 30px; 
        flex-shrink: 0;
        padding-top: 3px;
    }
    .dz-post-main { 
        padding-right: 0;
        flex: 1;
        min-width: 0; /* 关键：允许 flex 子项收缩，防止撑破容器 */
    }
    .dz-post-title { 
        font-size: 14px; 
        line-height: 1.5;
        font-weight: 600;
        display: block; /* 改为块级，确保标题占据行宽 */
        margin-bottom: 5px;
        word-wrap: break-word;
        word-break: break-all;
    }
    .badge-dz {
        margin-left: 0 !important;
        margin-right: 6px;
        display: inline-block;
        font-size: 10px;
        padding: 1px 4px;
    }
    .dz-actions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 5px;
    }
    .dz-actions .btn-dz-post {
        padding: 6px 12px;
        font-size: 12px;
    }
    .dz-actions .pull-right {
        margin: 0 !important;
    }
    .pagination { margin: 0; }
    .pagination > li > a { padding: 4px 8px; font-size: 11px; }
    /* Pagination Mobile Fix */
    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }
    .pagination > li > a, .pagination > li > span {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Board Styles */
.board-body { background: #f5f7f9; padding: 25px 0; min-height: calc(100vh - 200px); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.board-container { max-width: 1200px; margin: 0 auto; }
.dz-board-header { 
    background: #fff; border-radius: 4px; padding: 20px 25px; 
    margin-bottom: 20px; border: 1px solid #edf2f7;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    display: flex; justify-content: space-between; align-items: center;
}
.dz-board-title h1 { font-size: 22px; font-weight: 800; color: #1e293b; margin: 0 0 6px 0; }
.dz-board-title p { color: #94a3b8; font-size: 13px; margin: 0; }
.dz-actions { margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.btn-dz-post { 
    display: inline-block; padding: 8px 20px; background: #18bc9c; 
    color: #fff; font-weight: 700; border: none; border-radius: 4px;
    text-decoration: none; font-size: 13px; transition: all 0.2s;
}
.btn-dz-post:hover { background: #15a589; color: #fff; }
.dz-post-list { background: #fff; border-radius: 4px; border: 1px solid #edf2f7; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.dz-list-header { 
    background: #f8fafc; height: 40px; line-height: 40px; 
    border-bottom: 1px solid #edf2f7; display: flex; font-size: 12px; color: #64748b; font-weight: 700;
}
.dz-col-title { flex: 1; padding-left: 50px; }
.dz-col-author { width: 140px; text-align: left; }
.dz-col-stats { width: 120px; text-align: center; }
.dz-col-last { width: 180px; text-align: left; padding-right: 20px; }
.dz-post-item { 
    display: flex; align-items: center; border-bottom: 1px solid #f8fafc; 
    padding: 15px 0; transition: background 0.2s; 
}
.dz-post-item:hover { background: #fafbfc; }
.dz-post-item:last-child { border-bottom: none; }
.dz-post-icon { width: 50px; text-align: center; flex-shrink: 0; }
.dz-post-icon i { font-size: 16px; color: #cbd5e1; }
.dz-post-icon.is-new i { color: #18bc9c; }
.dz-post-main { flex: 1; min-width: 0; padding-right: 15px; }
.dz-post-title { font-size: 14px; color: #334155; text-decoration: none; font-weight: 600; }
.dz-post-title:hover { color: #18bc9c; text-decoration: underline; }
.dz-post-title.is-top { color: #2b7ac2; }
.badge-dz { font-size: 10px; padding: 1px 5px; border-radius: 2px; margin-left: 6px; font-weight: 700; }
.badge-dz-top { border: 1px solid #ef4444; color: #ef4444; }
.badge-dz-best { border: 1px solid #d97706; color: #d97706; }
.badge-dz-official { background: #18bc9c; color: #fff; }
.dz-post-author { width: 140px; font-size: 12px; color: #94a3b8; }
.dz-post-author cite { display: block; font-style: normal; color: #475569; font-weight: 600; margin-bottom: 2px; }
.badge-user { font-size: 9px; padding: 1px 4px; border-radius: 2px; margin-left: 2px; vertical-align: middle; display: inline-block; line-height: 1.2; }
.badge-user-admin { background: #ef4444; color: #fff; }
.badge-user-dev { background: #3b82f6; color: #fff; }
.badge-user-level { border: 1px solid #cbd5e1; color: #94a3b8; }
.dz-post-stats { width: 120px; text-align: center; font-size: 12px; color: #cbd5e1; }
.dz-post-stats em { display: block; font-style: normal; color: #475569; font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.dz-post-last { width: 180px; font-size: 11px; color: #94a3b8; }
.dz-post-last cite { display: block; font-style: normal; color: #18bc9c; font-weight: 600; margin-bottom: 2px; }
.dz-separator { 
    background: #f8fafc; height: 32px; line-height: 32px; 
    padding-left: 15px; font-size: 11px; color: #94a3b8; 
    font-weight: 700; border-bottom: 1px solid #edf2f7; text-transform: uppercase;
}
