/*
Theme Name: winapps
Theme URI: www.winapps.cc
Description: 简洁高效的 WinApps 软件下载站主题。
Version: 2.0
Author: 阿永
Author URI: 
Tags: 共享资源站点, 简洁, 响应式
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: winapps
Domain Path: /languages
*/

/* ==========================================================================
   模块化CSS加载
   建议加载顺序：变量 -> 重置 -> 布局 -> 组件 -> 页面 -> 响应式 -> 打印
   ========================================================================== */

/* 1. CSS 变量 */
@import url("css/variables.css?v=20260128");

/* 2. 重置样式 */
@import url("css/reset.css?v=20260128");

/* 3. 布局样式 */
@import url("css/layout.css?v=20260128");

/* 4. 头部导航 */
@import url("css/header.css?v=20260128");

/* 5. 可复用组件 */
@import url("css/components.css?v=20260128");

/* 6. 页面特定样式 */
@import url("css/pages.css?v=20260128");

/* 7. 骨架屏样式 */
@import url("css/skeleton.css?v=20260128");

/* 8. 相关文章样式 */
@import url("css/related-posts.css?v=20260128");

/* 9. 响应式设计 */
@import url("css/responsive.css?v=20260128");

/* 10. 打印样式 */
@import url("css/print.css?v=20260128");

/* ==========================================================================
   主题特定样式
   包含无法归类的特定样式和兼容代码
   ========================================================================== */

/* 浮动类（保持向后兼容） */
.fl {
    float: left;
}

.fr {
    float: right;
}

/* 灰色滤镜 */
.gray {
    filter: grayscale(1);
}

/* Bootstrap 覆盖样式 */
.row {
    margin-right: 0;
    margin-left: 0;
}

/* ==========================================================================
   编辑器内容样式
   WordPress TinyMCE 编辑器中使用
   ========================================================================== */

.editor-content {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-loose);
    color: var(--color-text);
}

.editor-content p {
    margin-bottom: var(--space-md);
}

.editor-content img {
    max-width: 100%;
    height: auto;
    margin: var(--space-md) 0;
    border-radius: var(--radius-md);
}

.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--color-text);
}

.editor-content h1 { font-size: 2em; }
.editor-content h2 { font-size: 1.5em; }
.editor-content h3 { font-size: 1.25em; }
.editor-content h4 { font-size: 1em; }

.editor-content ul,
.editor-content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.editor-content ul {
    list-style-type: disc;
}

.editor-content ol {
    list-style-type: decimal;
}

.editor-content li {
    margin-bottom: var(--space-xs);
}

/* ==========================================================================
   WordPress 核心类兼容
   ========================================================================== */

/* WordPress 图片对齐 */
.alignnone {
    margin: var(--space-md);
}

.aligncenter {
    display: block;
    margin: var(--space-md) auto;
}

.alignleft {
    float: left;
    margin: 0 var(--space-md) var(--space-md) 0;
}

.alignright {
    float: right;
    margin: 0 0 var(--space-md) var(--space-md);
}

/* WordPress 图片尺寸 */
.size-thumbnail {
    max-width: 150px;
    height: auto;
}

.size-medium {
    max-width: 300px;
    height: auto;
}

.size-large {
    max-width: 800px;
    height: auto;
}

.size-full {
    max-width: 100%;
    height: auto;
}

/* WordPress 图库 */
.gallery {
    margin: var(--space-lg) 0;
}

.gallery-item {
    float: left;
    margin: 0 var(--space-sm) var(--space-sm) 0;
    text-align: center;
}

.gallery-columns-1 .gallery-item {
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    width: calc(50% - var(--space-sm));
}

.gallery-columns-3 .gallery-item {
    width: calc(33.33% - var(--space-sm));
}

.gallery-columns-4 .gallery-item {
    width: calc(25% - var(--space-sm));
}

.gallery-columns-5 .gallery-item {
    width: calc(20% - var(--space-sm));
}

.gallery-icon img {
    margin: 0 auto;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   临时兼容样式
   迁移期间保留旧类名映射
   ========================================================================== */

/* 旧类名 -> 新类名映射 */

/* 布局 */
.app_left,
.app_left_one,
.apk_left_one,
.apk_left_two {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
}

.app_right,
.apk_right,
.apk_right_two {
    width: var(--sidebar-width);
}

.app_right .right_title {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    min-height: 100px;
}

/* 面包屑 */
.bread_nav,
.breadcrumb {
    font-size: var(--font-size-xl);
    color: var(--color-text-light);
}

.bread_nav_first a,
.breadcrumb__item--current a,
.breadcrumb__current {
    color: var(--color-primary);
}

.bread_nav_second a,
.breadcrumb__item {
    color: var(--color-text-light);
}

/* 下载区域 */
.download_right,
.download-section {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
}

.download_logo,
.qr-section {
    margin-bottom: var(--space-md);
}

/* 侧边栏底部 */
.footer-sidebar,
.sidebar-footer {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    text-align: center;
}

.footer-sidebar .footer-links,
.footer-info__links {
    margin-bottom: var(--space-sm);
}

.footer-sidebar .footer-links a,
.footer-info__links a {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    margin: 0 var(--space-sm);
    transition: color var(--transition-fast);
}

.footer-sidebar .footer-links a:hover,
.footer-info__links a:hover {
    color: var(--color-primary);
}

.footer-sidebar .footer-record,
.footer-sidebar .footer-copyright,
.footer-info__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}

/* ==========================================================================
   END OF STYLESHEET
   ========================================================================== */
