/* 主样式文件 - 导入所有CSS模块 */

/* 基础样式 */
@import url('base.css');

/* 组件样式 */
@import url('components.css');

/* 页面特定样式 */
@import url('pages.css');

/* SEO管理面板样式 */
@import url('seo-admin.css');

/* 加载状态样式 */
@import url('loading.css');

/* 错误处理样式 */
@import url('errors.css');

/* 全局重置和基础样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* 链接样式 */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
}

/* 语言切换器样式 */
.language-switcher {
    display: flex;
    gap: 8px;
    margin-left: 16px;
    align-items: center;
}

.lang-link {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #6b7280;
    transition: all 0.2s;
}

.lang-link:hover {
    background-color: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

.lang-link.active {
    background-color: #2563eb;
    color: white;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* 辅助工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* 颜色工具类 */
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }

.text-green-600 { color: #059669; }
.text-blue-600 { color: #2563eb; }
.text-red-600 { color: #dc2626; }
.text-yellow-600 { color: #d97706; }
.text-purple-600 { color: #9333ea; }

.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }

/* 打印样式 */
@media print {
    .no-print {
        display: none;
    }
    
    .card, .infobox {
        break-inside: avoid;
    }
}