/* ============================================
   进销存管理系统 - 精细化样式
   主色调: #165DFF (企业蓝)
   风格: 温和商贸风、干净专业、极简
   ============================================ */

:root {
    /* 主色系 */
    --color-primary: #165DFF;
    --color-primary-light: #3d7aff;
    --color-primary-dark: #0055e0;
    --color-primary-bg: rgba(22, 93, 255, 0.06);
    --color-primary-border: rgba(22, 93, 255, 0.15);

    /* 辅助色 - 低饱和三色系 */
    --color-success: #5a9a5a;
    --color-warning: #a08050;
    --color-danger: #a05050;
    --color-info: #5080a0;

    /* 背景色 - 低饱和灰蓝 */
    --color-bg: #f0f2f5;
    --color-bg-white: #ffffff;
    --color-bg-gray: #f5f7fa;

    /* 文字色 */
    --color-title: #1f1f1f;
    --color-body: #595959;
    --color-muted: #8c8c8c;
    --color-light: #b0b0b0;

    /* 边框色 */
    --color-border: #ebebeb;
    --color-border-light: #f0f0f0;

    /* 阴影 - 柔和统一 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);

    /* 圆角 */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* 字体 */
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ============================================
   全局重置
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-body);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    color: var(--color-title);
    font-weight: 600;
    line-height: 1.5;
}

p {
    line-height: 1.8;
    margin-bottom: var(--space-md);
    color: var(--color-body);
}

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

a:hover {
    color: var(--color-primary-dark);
}

/* ============================================
   文字颜色
   ============================================ */
.text-primary { color: var(--color-primary) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-muted { color: var(--color-muted) !important; }
.text-title { color: var(--color-title) !important; }

/* ============================================
   导航栏 - 纯深色极简
   ============================================ */
.navbar {
    background: #1a1a2e !important;
    box-shadow: none;
    padding: 0 var(--space-xl);
    height: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: 1rem;
    color: #fff !important;
    text-decoration: none;
}

.brand-logo {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-size: 1rem;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.65) !important;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 14px !important;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover {
    color: #fff !important;
    background: transparent;
}

.navbar .nav-link.active {
    color: #fff !important;
}

.btn-login-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff !important;
    padding: 6px 16px !important;
    border-radius: 4px;
    margin-left: var(--space-sm);
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-login-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff !important;
}

/* ============================================
   卡片 - 统一规范
   ============================================ */
.card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-lg);
}

.card-header h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-title);
    margin: 0;
}

.card-body {
    padding: var(--space-lg);
}

.card-footer {
    background: var(--color-bg-gray);
    border-top: 1px solid var(--color-border-light);
    padding: var(--space-md) var(--space-lg);
}

/* ============================================
   产品卡片 - 固定高度整齐
   ============================================ */
.product-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s ease;
    height: 300px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

.product-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 1;
}

.product-divider {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    margin: 8px auto 12px;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-primary-border);
}

.product-card .product-icon {
    height: 120px;
    background: linear-gradient(180deg, #fefefe 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border-light);
    flex-shrink: 0;
}

.product-card .product-image {
    height: 140px;
    background: linear-gradient(180deg, #fefefe 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border-light);
    flex-shrink: 0;
    overflow: hidden;
    padding: 8px;
}

.product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card .card-body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card .product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-title);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.product-card .product-spec {
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: var(--space-md);
}

.product-card .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

/* ============================================
   按钮
   ============================================ */
.btn {
    font-family: var(--font);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--color-primary-bg);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary {
    background: #f5f5f5;
    color: var(--color-body);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: #ebebeb;
    color: var(--color-title);
}

.btn-success {
    background: var(--color-success);
    color: #fff;
}

.btn-success:hover {
    background: #389e0d;
    color: #fff;
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}

.btn-danger:hover {
    background: #cf1322;
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-outline-danger {
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
    background: transparent;
}

.btn-outline-danger:hover {
    background: rgba(255, 77, 79, 0.06);
    color: var(--color-danger);
}

.btn-outline-secondary {
    border: 1px solid var(--color-border);
    color: var(--color-body);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #f5f5f5;
    color: var(--color-title);
}

/* ============================================
   表单
   ============================================ */
.form-control,
.form-select {
    font-family: var(--font);
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    height: 40px;
    transition: all 0.2s ease;
    background: var(--color-bg-white);
    color: var(--color-body);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-bg);
    outline: none;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
}

.form-label {
    font-weight: 500;
    color: var(--color-title);
    margin-bottom: var(--space-sm);
    font-size: 14px;
}

.form-text {
    color: var(--color-muted);
    font-size: 12px;
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ============================================
   表格
   ============================================ */
.table {
    font-size: 14px;
    color: var(--color-body);
    margin-bottom: 0;
}

.table thead th {
    background: var(--color-bg-gray);
    color: var(--color-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border-light);
}

.table tbody tr {
    transition: background 0.15s ease;
}

.table tbody tr:hover {
    background: var(--color-bg-gray);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   徽章
   ============================================ */
.badge {
    font-weight: 500;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

.bg-success { background-color: var(--color-success) !important; }
.bg-warning { background-color: var(--color-warning) !important; color: #fff !important; }
.bg-danger { background-color: var(--color-danger) !important; }
.bg-info { background-color: var(--color-info) !important; }
.bg-secondary { background-color: #8c8c8c !important; }

/* ============================================
   分页
   ============================================ */
.pagination {
    margin: var(--space-lg) 0 0;
    gap: var(--space-xs);
}

.page-link {
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    color: var(--color-body);
    padding: 8px 14px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: var(--color-bg-gray);
    border-color: var(--color-border);
    color: var(--color-primary);
}

.page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ============================================
   提示框
   ============================================ */
.alert {
    font-size: 14px;
    border-radius: var(--radius-sm);
    padding: var(--space-md) var(--space-lg);
    border: none;
}

.alert-success {
    background: rgba(82, 196, 26, 0.1);
    color: #389e0d;
}

.alert-danger {
    background: rgba(255, 77, 79, 0.1);
    color: #cf1322;
}

.alert-warning {
    background: rgba(250, 173, 20, 0.1);
    color: #ad6800;
}

.alert-info {
    background: rgba(19, 194, 194, 0.1);
    color: #0891b2;
}

/* ============================================
   侧边栏
   ============================================ */
.sidebar {
    background: var(--color-bg-white) !important;
    border-right: 1px solid var(--color-border-light);
    box-shadow: none;
}

.sidebar-brand {
    height: 64px;
    padding: 0 var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.sidebar-brand h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-title);
    margin: 0;
}

.sidebar .nav-link {
    color: var(--color-body) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 10px var(--space-lg) !important;
    margin: 2px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.sidebar .nav-link:hover {
    background: var(--color-primary-bg);
    color: var(--color-primary) !important;
}

.sidebar .nav-link.active {
    background: var(--color-primary-bg);
    color: var(--color-primary) !important;
    font-weight: 600;
}

.sidebar-heading {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px var(--space-lg) 6px;
}

/* ============================================
   统计卡片
   ============================================ */
.stat-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-sm);
}

.stat-info h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 13px;
    color: var(--color-muted);
    margin: 0;
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ============================================
   快捷操作
   ============================================ */
.quick-action {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    text-decoration: none;
    color: var(--color-body);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.quick-action:hover {
    border-color: var(--color-primary-border);
    color: var(--color-primary);
    box-shadow: var(--shadow-xs);
}

.quick-action i {
    font-size: 1.4rem;
}

.quick-action span {
    font-size: 12px;
    font-weight: 500;
}

/* ============================================
   页面标题区
   ============================================ */
.page-header {
    margin-bottom: var(--space-lg);
}

.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-title);
    margin-bottom: 2px;
}

.page-breadcrumb {
    font-size: 13px;
    color: var(--color-muted);
    margin: 0;
}

.page-breadcrumb a {
    color: var(--color-muted);
}

.page-breadcrumb a:hover {
    color: var(--color-primary);
}

/* ============================================
   空白状态
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--color-muted);
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: var(--space-md);
    display: block;
}

.empty-state p {
    margin: 0;
}

/* ============================================
   服务卡片
   ============================================ */
.service-card {
    background: linear-gradient(135deg, var(--color-bg-white) 0%, #fafbfc 100%);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.25s ease;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-title);
    margin-bottom: 8px;
}

.service-desc {
    font-size: 13px;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.7;
}

/* ============================================
   关于页视觉区块
   ============================================ */
.about-visual {
    background: linear-gradient(135deg, var(--color-bg) 0%, #e8eaef 100%);
    border-radius: 12px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.about-icon {
    font-size: 6rem;
    color: var(--color-primary);
    opacity: 0.6;
}

/* ============================================
   联系卡片
   ============================================ */
.contact-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    transition: all 0.2s ease;
}

.contact-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.2rem;
    color: var(--color-primary);
}

/* ============================================
   分割线
   ============================================ */
hr {
    border: none;
    border-top: 1px solid var(--color-border-light);
    margin: var(--space-lg) 0;
}

hr.my-4 {
    border-top: 1px solid var(--color-border-light);
}

/* ============================================
   页脚 - 完整多栏版
   ============================================ */
.footer {
    background: #1a1a2e;
    border-top: none;
    padding: 0;
}

.footer-main {
    padding: 56px 0 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-size: 0.9rem;
}

.footer-intro {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-contact p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--color-primary);
    font-size: 12px;
}

.footer-heading {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.footer-follow-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

/* ============================================
   Hero 区域 - 有层次完整版
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    height: 420px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* 装饰元素 */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.deco-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(22, 93, 255, 0.3), transparent);
    height: 1px;
}

.deco-line-1 { top: 30%; left: 0; right: 0; width: 60%; }
.deco-line-2 { bottom: 35%; left: 20%; right: 0; width: 40%; }

.deco-circle {
    position: absolute;
    border: 1px solid rgba(22, 93, 255, 0.15);
    border-radius: 50%;
}

.deco-circle-1 { width: 300px; height: 300px; top: -100px; right: -50px; }
.deco-circle-2 { width: 200px; height: 200px; bottom: -80px; left: 10%; }

.deco-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(22, 93, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 93, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* 柔光蒙版 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-tag-line { margin-bottom: 20px; }

.hero-tag-text {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 32px;
    line-height: 1.8;
    letter-spacing: 2px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary-hero {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    border: none;
}

.btn-primary-hero:hover {
    background: var(--color-primary-light);
    color: #fff;
    box-shadow: 0 6px 20px rgba(22, 93, 255, 0.35);
    transform: translateY(-2px);
}

.btn-outline-hero {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ============================================
   区块标题
   ============================================ */
.section {
    padding: 64px 0;
}

.section-gray {
    background: var(--color-bg);
}

.section-header {
    margin-bottom: 48px;
}

.section-header.text-center {
    text-align: center;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-title);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--color-muted);
}

/* ============================================
   企业优势卡片
   ============================================ */
.advantage-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.25s ease;
    height: 100%;
}

.advantage-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary-bg) 0%, rgba(22, 93, 255, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.advantage-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-title);
    margin-bottom: 8px;
}

.advantage-desc {
    font-size: 12px;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   页面头部 (内页) - 深色极简
   ============================================ */
.page-header-inner {
    background: linear-gradient(180deg, #1a1a2e 0%, #2d2d44 100%);
    padding: 56px 0;
    position: relative;
}

.page-header-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.page-header-inner .container {
    position: relative;
    z-index: 1;
}

.page-title-main {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-sm);
    letter-spacing: 3px;
}

.page-subtitle-main {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    letter-spacing: 2px;
}

/* ============================================
   页面容器留白
   ============================================ */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-2xl) 0;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ============================================
   平板适配 (768px - 991px)
   ============================================ */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        position: fixed;
        z-index: 1050;
        width: 260px !important;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: var(--space-md);
    }

    .page-header .btn {
        width: 100%;
    }

    .table-responsive {
        border: none;
    }
}

/* ============================================
   手机适配 (最大 767px)
   ============================================ */
@media (max-width: 767.98px) {
    /* 基础字体 */
    html {
        font-size: 14px;
    }

    body {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 页面标题 */
    .page-title {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .page-breadcrumb {
        font-size: 12px;
    }

    /* 卡片优化 */
    .card {
        border-radius: 8px;
        margin-bottom: 12px;
    }

    .card-header {
        padding: 12px 16px;
    }

    .card-body {
        padding: 12px;
    }

    .card-footer {
        padding: 10px 12px;
    }

    /* 表单优化 */
    .form-label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .form-control,
    .form-select {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 10px 12px;
        height: 44px;
        border-radius: 6px;
    }

    textarea.form-control {
        height: auto;
        min-height: 80px;
    }

    .mb-3 {
        margin-bottom: 12px !important;
    }

    .mb-4 {
        margin-bottom: 16px !important;
    }

    /* 按钮优化 - 增大触控区域 */
    .btn {
        font-size: 14px;
        padding: 12px 20px;
        min-height: 44px;
        border-radius: 8px;
    }

    .btn-sm {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 36px;
    }

    .d-flex.gap-2 {
        flex-direction: column;
        gap: 8px !important;
    }

    .d-flex.gap-2 .btn {
        width: 100%;
        justify-content: center;
    }

    /* 表格优化 */
    .table {
        font-size: 13px;
    }

    .table thead th {
        padding: 10px 8px;
        font-size: 11px;
        white-space: nowrap;
    }

    .table tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .table-responsive {
        margin: 0 -12px;
        padding: 0 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 分页优化 */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .page-link {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 搜索区域 */
    .card-body .row.g-3 {
        gap: 8px !important;
    }

    /* 模态框优化 */
    .modal-content {
        margin: 10px;
        border-radius: 12px;
    }

    .modal-body {
        padding: 16px;
    }

    /* 统计卡片 */
    .stat-card {
        padding: 14px;
    }

    .stat-info h3 {
        font-size: 22px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* 产品卡片 */
    .product-card {
        height: auto;
        min-height: 250px;
    }

    /* 空状态 */
    .empty-state {
        padding: 32px 16px;
    }

    .empty-state i {
        font-size: 2.5rem;
    }

    /* 徽章 */
    .badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* 操作按钮 */
    .table tbody td:last-child {
        white-space: nowrap;
    }

    .table .btn-sm {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* 模态框按钮 */
    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* 表单行优化 */
    .row > div {
        margin-bottom: 8px;
    }

    /* 统计卡片行 */
    .row.g-4 {
        gap: 12px !important;
    }

    .row.g-4 > div {
        margin-bottom: 0;
    }
}

/* ============================================
   小屏手机适配 (最大 575px)
   ============================================ */
@media (max-width: 575.98px) {
    /* 简化表格显示 */
    .table {
        font-size: 12px;
    }

    .table thead th {
        font-size: 10px;
        padding: 8px 6px;
    }

    .table tbody td {
        padding: 8px 6px;
    }

    /* 隐藏次要列 */
    .hide-sm { display: none !important; }

    /* 加大输入框 */
    .form-control,
    .form-select {
        font-size: 16px;
        height: 48px;
        padding: 12px;
    }

    /* 加大按钮 */
    .btn {
        min-height: 48px;
        font-size: 15px;
    }

    /* 统计卡片 */
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 12px;
    }

    .stat-card {
        flex-direction: row;
        justify-content: space-between;
    }

    /* 标题区 */
    .page-header {
        margin-bottom: 12px;
    }
}

/* ============================================
   触控设备优化
   ============================================ */
@media (hover: none) and (pointer: coarse) {

    /* 隐藏/显示类 */
    .hide-sm { display: none; }
    .hide-desktop { display: block; }

    /* 增大可点击元素 */
    .nav-link,
    .sidebar-item,
    .btn,
    .form-control,
    .form-select,
    .page-link,
    .badge {
        min-height: 44px;
    }

    /* 表格内联显示优化 */
    .table td {
        padding: 8px 6px;
    }

    .table-sm td {
        padding: 8px 4px;
    }

    /* 移除hover效果 */
    .table tbody tr:hover {
        background: transparent;
    }

    /* 添加active状态 */
    .btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
}

@media (min-width: 768px) {
    .hide-desktop { display: none; }
    .hide-sm { display: table-cell; }
}

/* ============================================
   安全区适配 (iPhone X 及以上)
   ============================================ */
@supports (padding: max(0px)) {
    .card-body {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .modal-body {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* ============================================
   动画
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.25s ease-out;
}

/* ============================================
   打印样式
   ============================================ */
@media print {
    .sidebar, .topbar, .navbar, .no-print, .btn {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
