/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* ===== 技术高亮分类标签 Badge ===== */
.tech-tag-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #00a1ff;
    background: transparent;
    border: 1px solid #00a1ff;
    border-radius: 2px;
    padding: 1px 6px;
    margin-right: 6px;
    letter-spacing: 0.5px;
    vertical-align: middle;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
    top: -1px;
    cursor: pointer;
}

.tech-tag-badge:hover {
    background: #00a1ff;
    color: #fff !important;
    text-decoration: none !important;
}

/* 分类颜色循环 - 用 nth-of-type 避免嵌套选择器冲突 */
.article-card:nth-child(8n+1) .tech-tag-badge { color: #e74c3c !important; border-color: #e74c3c; }
.article-card:nth-child(8n+1) .tech-tag-badge:hover { background: #e74c3c !important; color: #fff !important; }

.article-card:nth-child(8n+2) .tech-tag-badge { color: #8e44ad !important; border-color: #8e44ad; }
.article-card:nth-child(8n+2) .tech-tag-badge:hover { background: #8e44ad !important; color: #fff !important; }

.article-card:nth-child(8n+3) .tech-tag-badge { color: #27ae60 !important; border-color: #27ae60; }
.article-card:nth-child(8n+3) .tech-tag-badge:hover { background: #27ae60 !important; color: #fff !important; }

.article-card:nth-child(8n+4) .tech-tag-badge { color: #e67e22 !important; border-color: #e67e22; }
.article-card:nth-child(8n+4) .tech-tag-badge:hover { background: #e67e22 !important; color: #fff !important; }

.article-card:nth-child(8n+5) .tech-tag-badge { color: #c0392b !important; border-color: #c0392b; }
.article-card:nth-child(8n+5) .tech-tag-badge:hover { background: #c0392b !important; color: #fff !important; }

.article-card:nth-child(8n+6) .tech-tag-badge { color: #2980b9 !important; border-color: #2980b9; }
.article-card:nth-child(8n+6) .tech-tag-badge:hover { background: #2980b9 !important; color: #fff !important; }

.article-card:nth-child(8n+7) .tech-tag-badge { color: #16a085 !important; border-color: #16a085; }
.article-card:nth-child(8n+7) .tech-tag-badge:hover { background: #16a085 !important; color: #fff !important; }

.article-card:nth-child(8n+0) .tech-tag-badge { color: #d35400 !important; border-color: #d35400; }
.article-card:nth-child(8n+0) .tech-tag-badge:hover { background: #d35400 !important; color: #fff !important; }

/* 卡片悬停效果 */
.hover-shadow {
    transition: box-shadow 0.25s, transform 0.25s;
}
.hover-shadow:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* 列表项悬停效果 */
.article-list-item:hover,
.product-list-item:hover {
    background: #f8f9fa;
    border-radius: 6px;
    padding-left: 8px;
    transition: all 0.2s;
}

/* 页头样式 */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    max-height: 60px;
}

.logo-text {
    font-size: 16px;
    color: #666;
}

/* ===== 导航栏 - 看雪专业极简风 ===== */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
    box-shadow: none;
    min-height: 72px;
}

/* 导航栏内的文字和品牌名 */
.navbar-brand {
    color: #0088cc !important;
    font-weight: 700;
    font-size: 26px;
    margin-right: 30px;
    text-shadow: none;
}

.navbar-nav {
    gap: 0;
    align-items: center;
    flex-wrap: wrap;
}

/* 导航按钮基础样式 - 极简文字 */
.nav-link {
    padding: 0 18px !important;
    font-size: 16px;
    font-weight: 500;
    color: #333333 !important;
    letter-spacing: normal;
    transition: color 0.2s ease;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    position: relative;
    background: transparent;
    border: none;
    height: 72px;
    line-height: 72px;
}

/* 隐藏伪元素 */
.nav-link::after {
    display: none !important;
    content: '' !important;
}

/* 重新启用 dropdown-toggle 的下拉箭头（细线条版） */
.nav-link.dropdown-toggle::after {
    display: inline-block !important;
    content: '' !important;
    border-top: 4px solid #999 !important;
    border-right: 4px solid transparent !important;
    border-bottom: 0 !important;
    border-left: 4px solid transparent !important;
    margin-left: 4px;
    transition: transform 0.2s ease;
    vertical-align: middle;
    flex-shrink: 0;
}

/* 下拉展开时箭头向上翻转 */
.dropdown-hover:hover .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}

/* 悬停：文字变看雪蓝 */
.nav-link:hover, .nav-link.active {
    background: transparent !important;
    color: #00a1ff !important;
    box-shadow: none;
}

.nav-link:hover.dropdown-toggle::after, .nav-link.active.dropdown-toggle::after {
    border-top-color: #00a1ff !important;
}

/* 去除之前的闪烁光标效果 */
.nav-link:hover::before {
    display: none;
    content: none;
    animation: none;
}

/* ===== 右侧登录/注册按钮区 (看雪风) ===== */
.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto; /* 推到最右侧 */
}

.btn-login {
    border: 1px solid #00a1ff;
    color: #00a1ff;
    background: #fff;
    padding: 4px 16px;
    font-size: 14px;
    border-radius: 2px;
    transition: all 0.2s;
}

.btn-login:hover {
    background: #f0f8ff;
    color: #0088cc;
}

.btn-register {
    border: 1px solid #00a1ff;
    color: #fff;
    background: #00a1ff;
    padding: 4px 16px;
    font-size: 14px;
    border-radius: 2px;
    transition: all 0.2s;
}

.btn-register:hover {
    background: #0088cc;
    border-color: #0088cc;
}

/* ===== 下拉菜单 - 极简白底框 ===== */
.dropdown-hover:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-hover .dropdown-menu {
    margin-top: 0;
    border-radius: 2px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-width: 140px;
    padding: 8px 0;
    animation: none; /* 看雪没有多余弹出动画，直接显示 */
}

/* 下拉菜单项 */
.dropdown-item {
    padding: 8px 20px !important;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 400;
    color: #555555 !important;
    width: 100% !important;
    border-left: none !important;
    display: block !important;
    transition: background 0.2s ease;
    position: relative;
    background: transparent;
    margin-bottom: 0;
}

/* 隐藏右侧箭头 */
.dropdown-item::after {
    display: none !important;
    content: '' !important;
}

/* 悬停：极简浅灰底色 */
.dropdown-item:hover {
    background: #f5f7f9 !important;
    color: #00a1ff !important;
    padding-left: 20px !important; /* 取消左移效果 */
}

.dropdown-item:focus {
    background: #f5f7f9 !important;
    color: #00a1ff !important;
    outline: none;
}

.dropdown-item.active {
    background: #f0f8ff !important;
    color: #00a1ff !important;
    font-weight: 500;
}

/* 下拉菜单分隔线 */
.dropdown-divider {
    border-top: 1px solid #f0f0f0;
    margin: 4px 0;
}

/* 移动端汉堡按钮适配 */
.navbar-toggler {
    border-color: #e5e5e5;
    border-radius: 4px;
    padding: 4px 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23666666' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 面包屑导航 */
.breadcrumb-nav {
    background: transparent;
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb-item {
    display: inline-block;
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 8px;
    color: #dee2e6;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #212529;
    font-weight: 500;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 12px;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 5px;
    }

    /* 长标题截断 */
    .breadcrumb-item {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: bottom;
    }

    .breadcrumb-item.active {
        max-width: 200px;
    }
}

/* 搜索框 */
.search-box {
    margin: 20px 0;
}

.search-input {
    border-radius: 20px;
    padding: 10px 20px;
}

/* 搜索下拉提示框 */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-dropdown-section {
    padding: 12px 16px;
}

.search-dropdown-title {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-dropdown-item:hover {
    background: #f5f5f5;
}

.search-dropdown-item-text {
    color: #333;
    font-size: 14px;
}

.search-dropdown-item-count {
    color: #999;
    font-size: 12px;
}

.search-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

.search-dropdown-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 卡片悬浮效果 */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 图片可点击的链接层必须高于遮罩层 */
.product-image-link {
    display: block;
    position: relative;
    z-index: 20; /* 确保图片链接在最上层 */
}
.card-img-top {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 200px;
    object-fit: cover;
}

/* 移除导致所有链接都变成遮罩层的全局设置 */
/* .card img {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
} */

/* 卡片内容优化 */
.text-truncate-1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 卡片悬停时标题变色 */
.card:hover .card-title,
.card:hover .card-title a {
    color: #0d6efd !important;
    transition: color 0.3s;
}

/* 占位图高级样式（优雅降级） */
.img-placeholder {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    border-bottom: 1px solid #eee;
}

/* 联系按钮 */
.contact-btn {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-btn:hover {
    background: #229954;
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: #ffffff;
    padding: 30px 0 10px;
    margin-top: 50px;
}

.footer h5 {
    color: #ffffff;
}

.footer p {
    color: #ffffff;
}

.footer a {
    color: #ffffff;
}

.footer a:hover {
    color: #5dade2;
}

.footer-nav {
    margin: 20px 0;
    padding: 12px 0;
    border-top: 1px solid #34495e;
    border-bottom: 1px solid #34495e;
    text-align: center;
}

.footer-nav a {
    color: #ffffff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #5dade2;
}

/* 友情链接 */
.friendly-links {
    margin: 10px 0;
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
}

.friendly-links .links-label {
    color: #ffffff;
    margin-right: 10px;
    font-weight: 500;
}

.friendly-links a {
    color: #ffffff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.friendly-links a:hover {
    color: #5dade2;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    color: #ffffff;
    font-size: 12px;
}

.copyright a {
    color: #ffffff;
}

.copyright a:hover {
    color: #5dade2;
}

/* 人气排行榜 */
.rank-list {
    list-style: none;
    padding: 0;
}

.rank-item {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 覆盖旧的 rank-number 和 rank-item nth-child 样式 */
.rank-number {
    background: #7a9bbf;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.rank-item:nth-child(1) .rank-number {
    background: #e74c3c;
}

.rank-item:nth-child(2) .rank-number {
    background: #f39c12;
}

.rank-item:nth-child(3) .rank-number {
    background: #f1c40f;
}

/* 首页热门分类 */
.hot-category-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hot-category-item:hover {
    background-color: #f8f9fa;
    padding-left: 20px;
}

.hot-category-item a {
    color: #495057;
    transition: color 0.3s ease;
}

.hot-category-item:hover a {
    color: #0d6efd;
}

.hot-category-item .badge {
    font-size: 12px;
}

/* 语言切换 */
.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.lang-btn.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* 响应式 */
@media (max-width: 768px) {
    .logo-area {
        flex-direction: column;
        text-align: center;
    }

    .search-box {
        margin: 10px 0;
    }
}

/* 文章详情页样式 */
.article-detail {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    font-size: 14px;
    color: #7f8c8d;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.article-image {
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 文章内容区域 - 重要：限制所有图片宽度 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #34495e;
    margin-top: 20px;
}

.article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-content p {
    margin-bottom: 15px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.article-content ul,
.article-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.article-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
    color: #7f8c8d;
    font-style: italic;
}

.article-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.article-content pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-footer {
    margin-top: 30px;
}

/* 商品详情页样式 */
.product-detail {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-content {
    font-size: 16px;
    line-height: 1.8;
    color: #34495e;
    margin-top: 20px;
}

.product-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-content p {
    margin-bottom: 15px;
}

/* ===== 侧边栏卡片 ===== */
.sidebar-card {
    border: 1px solid #ebebeb !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    margin-bottom: 16px;
}

.sidebar-card:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.sidebar-card-header {
    border-bottom: none !important;
    padding: 10px 14px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px 4px 0 0 !important;
}

.sidebar-card-header h5 {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0;
    color: #fff !important; /* 统一白色字体，适配后台选的各种底色 */
}

/* 各模块左边线颜色（已废弃，改为背景色控制） */

/* 排行榜数字样式 - 看雪风：纯数字+颜色区分 */
.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    background: #eee;
    color: #888;
}
.rank-num-1 { background: #e05252; color: #fff; }
.rank-num-2 { background: #e07c3a; color: #fff; }
.rank-num-3 { background: #d4a830; color: #fff; }

/* 排行榜列表项悬停 */
.list-group-item-action:hover {
    background: #f8f9fa !important;
}
.list-group-item-action:hover span {
    color: #4a90d9;
}

/* 热门标签按钮 - 看雪风：小线框标签 */
.sidebar-tag-btn {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.15s;
}
.sidebar-tag-btn:hover {
    background: #4a90d9;
    border-color: #4a90d9;
    color: #fff;
}
.sidebar-tag-count {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    color: #999;
}
.sidebar-tag-btn:hover .sidebar-tag-count {
    color: rgba(255,255,255,0.8);
}

/* 覆盖旧的刺眼 card-header 颜色 */
.card-header.bg-primary,
.card-header.bg-success,
.card-header.bg-info,
.card-header.bg-warning,
.card-header.bg-danger {
    background-color: #f7f7f7 !important;
    color: #333 !important;
    border-bottom: 1px solid #eee !important;
}

/* ===== 侧边栏 card-header 柔和配色覆盖 ===== */
/* 热门标签 bg-info → 淡蓝灰 */
.card-header.bg-info,
.card-header.text-white.bg-info {
    background-color: #5b8fa8 !important;
    color: #fff !important;
}

/* 商品排行榜 bg-success → 淡墨绿 */
.card-header.bg-success,
.card-header.text-white.bg-success {
    background-color: #5a8f72 !important;
    color: #fff !important;
}

/* 热门标签/文章排行榜/联系我们/侧边 bg-primary → 淡蓝 */
.card-header.bg-primary,
.card-header.text-white.bg-primary {
    background-color: #4a7caa !important;
    color: #fff !important;
}

/* 热门标签 bg-warning → 淡金 */
.card-header.bg-warning,
.card-header.text-dark.bg-warning {
    background-color: #b8975a !important;
    color: #fff !important;
}

/* ===== 排行榜数字圆圈降饱和 ===== */
.rank-number {
    background: #7a9bbf;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-number {
    background: #b05c5c;
}

.rank-item:nth-child(2) .rank-number {
    background: #b08a46;
}

.rank-item:nth-child(3) .rank-number {
    background: #9aab5a;
}

/* ===== 登录/注册按钮柔和蓝 ===== */
.btn-login {
    border: 1px solid #4a7caa;
    color: #4a7caa;
    background: #fff;
    padding: 4px 16px;
    font-size: 14px;
    border-radius: 2px;
    transition: all 0.2s;
}

.btn-login:hover {
    background: #eef4fb;
    color: #325d8a;
}

.btn-register {
    border: 1px solid #4a7caa;
    color: #fff;
    background: #4a7caa;
    padding: 4px 16px;
    font-size: 14px;
    border-radius: 2px;
    transition: all 0.2s;
}

.btn-register:hover {
    background: #325d8a;
    border-color: #325d8a;
}

/* ---------------------------------------------------
 * 横幅文字排版系统 (方案A: 预设尺寸 + rem + 响应式)
 * --------------------------------------------------- */

/* 横幅标题尺寸 */
.menu-banner {
    height: 280px;
    box-sizing: border-box;
    background-repeat: no-repeat;
}

.banner-title-xlarge { font-size: 3.5rem; font-weight: bold; }  /* ~56px */
.banner-title-large  { font-size: 3rem; font-weight: bold; }    /* ~48px */
.banner-title-medium { font-size: 2.5rem; font-weight: bold; }  /* ~40px */
.banner-title-small  { font-size: 2rem; font-weight: bold; }    /* ~32px */

/* 横幅副标题尺寸 */
.banner-subtitle-large  { font-size: 1.5rem; opacity: 0.9; }   /* ~24px */
.banner-subtitle-medium { font-size: 1.25rem; opacity: 0.85; } /* ~20px */
.banner-subtitle-small  { font-size: 1rem; opacity: 0.8; }     /* ~16px */

/* 文字位置系统 */
.banner-pos-center       { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; height: 100%; }

/* 左下/左上：用flex靠底/靠顶，padding-left与下方内容区(.container>.row)左边距对齐 */
.banner-pos-bottom-left  {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;   /* 文字靠底 */
    align-items: flex-start;
    text-align: left;
    height: 100%;
    padding-bottom: 32px;
    padding-left: 0;             /* 与外层横幅的 padding-left 保持一致即可 */
}
.banner-pos-top-left     {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 文字靠顶 */
    align-items: flex-start;
    text-align: left;
    height: 100%;
    padding-top: 32px;
    padding-left: 0;
}
.banner-pos-bottom-right { position: absolute; bottom: 40px; right: 40px; text-align: right; }

/* 基础文字阴影 (提升可读性) */
.banner-text-shadow-strong { text-shadow: 2px 2px 4px rgba(0,0,0,0.6), 0 0 20px rgba(0,0,0,0.4); }
.banner-text-shadow-light  { text-shadow: 1px 1px 2px rgba(255,255,255,0.6), 0 0 15px rgba(255,255,255,0.4); }

/* 响应式缩放机制：使用CSS变量计算动态缩放比例，适应不同的初始配置大小 */
@media (max-width: 1366px) {
    .menu-banner { height: 260px; padding: 40px 30px !important; }
    .banner-pos-bottom-right { bottom: 30px; right: 30px; }
    .banner-pos-bottom-left  { padding-bottom: 24px; }
    .banner-pos-top-left     { padding-top: 24px; }

    .banner-title-xlarge { font-size: 3.15rem; }
    .banner-title-large  { font-size: 2.7rem; }
    .banner-title-medium { font-size: 2.25rem; }
    .banner-title-small  { font-size: 1.8rem; }

    .banner-subtitle-large  { font-size: 1.35rem; }
    .banner-subtitle-medium { font-size: 1.125rem; }
    .banner-subtitle-small  { font-size: 0.9rem; }
}

@media (max-width: 1024px) {
    .menu-banner { height: 220px; padding: 30px 20px !important; }
    .banner-pos-bottom-right { bottom: 20px; right: 20px; }
    .banner-pos-bottom-left  { padding-bottom: 16px; }
    .banner-pos-top-left     { padding-top: 16px; }

    .banner-title-xlarge { font-size: 2.8rem; }
    .banner-title-large  { font-size: 2.4rem; }
    .banner-title-medium { font-size: 2rem; }
    .banner-title-small  { font-size: 1.6rem; }

    .banner-subtitle-large  { font-size: 1.2rem; }
    .banner-subtitle-medium { font-size: 1rem; }
    .banner-subtitle-small  { font-size: 0.8rem; }
}

@media (max-width: 768px) {
    .menu-banner { height: 180px; padding: 20px 15px !important; }
    .banner-pos-bottom-left, .banner-pos-bottom-right, .banner-pos-top-left {
        /* 在移动端强制居中显示以获得更好效果 */
        position: relative;
        bottom: auto; left: auto; right: auto; top: auto;
        padding: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding: 20px 0;
    }

    .banner-title-xlarge { font-size: 2.45rem; }
    .banner-title-large  { font-size: 2.1rem; }
    .banner-title-medium { font-size: 1.75rem; }
    .banner-title-small  { font-size: 1.4rem; }

    .banner-subtitle-large  { font-size: 1.05rem; }
    .banner-subtitle-medium { font-size: 0.875rem; }
    .banner-subtitle-small  { font-size: 0.7rem; }
}
