/* 基础样式变量 - 与其他页面保持一致 */
:root {
    --primary-dark: #2d2d2d;
    --primary: #333333;
    --primary-light: #4a4a4a;
    --accent: #ffc107;
    --text-light: #f0f0f0;
    --text-dark: #2d2d2d;
    --border-color: #ddd;
    --highlight: #e74c3c;
    --disabled-bg: #f5f5f5;
    --table-hover: #f5f5f5;
}

/* 首页活动图（后台可配） */
.home-promo-wrap {
    /* 容器宽度 = 视口宽度的 2/3，高度由图片按比例撑开；
       max-width 兜底防止超宽屏过大 */
    width: 66.6667vw;
    max-width: 960px;
    margin: 10px auto 4px;
    padding: 0;
    text-align: center;
}
.home-promo-image {
    /* 宽度固定为视口宽度的 1/3，高度按原图比例自动调整（保留长宽比） */
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.home-promo-empty {
    padding: 60px 20px;
    color: #999;
    background: #f7f7f7;
    border: 1px dashed #ddd;
    border-radius: 6px;
}
.home-promo-empty i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 8px;
}
.home-promo-empty .home-promo-empty-sub {
    font-size: 12px;
    color: #bbb;
    margin-top: 4px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
}

/* 按钮样式 - 与其他页面统一 */
.dropbtn {
    background-color: var(--accent);
    color: var(--primary-dark);
    padding: 12px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    font-weight: 500;
}

.dropdown {
    position: relative;
    display: block;
    margin-bottom: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    z-index: 10;
}

.dropdown-content a {
    color: var(--primary);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--table-hover);
    color: var(--highlight);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #ffd700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 标题样式 */
.section-title {
    color: var(--primary);
    font-size: 16px;
    margin: 15px 0 8px 0;
    padding-left: 5px;
    font-weight: 600;
}

/* 广告栏样式 - 调整为自适应高度 */
.ad-container {
    background: linear-gradient(135deg, #ffecb3 0%, #ffe082 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: adPulse 3s infinite alternate;
}

/* 广告栏动画 */
@keyframes adPulse {
    from {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    to {
        transform: scale(1.02);
        box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3);
    }
}

/* 广告图片样式 */
.ad-image {
    max-width: 90%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    /* 图片加载失败时显示备用内容 */
    display: block;
}

/* 广告文字样式 */
.ad-line-1 {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 10px;
    animation: fadeIn 1s ease-in-out;
}

.ad-line-2 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 10px;
    animation: fadeIn 1.5s ease-in-out;
}

.ad-line-3 {
    font-size: 14px;
    color: var(--primary-light);
    animation: fadeIn 2s ease-in-out;
}

/* 广告链接样式 */
.ad-link {
    color: #e74c3c;
    font-weight: bold;
    text-decoration: none;
}

.ad-link:hover {
    text-decoration: underline;
}

/* 广告文字淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 装饰元素 */
.ad-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
}

.ad-decoration.top-left {
    top: 10px;
    left: 10px;
    animation: float 6s infinite alternate;
}

.ad-decoration.bottom-right {
    bottom: 10px;
    right: 10px;
    animation: float 7s infinite alternate;
}

@keyframes float {
    from { transform: translate(0, 0); }
    to { transform: translate(10px, 10px); }
}

/* 页脚 + 营业执照弹窗样式已迁移到全局 static/css/footer.css */

/* 兼容旧 footer 选择器，避免影响 base.html 中其他 footer 元素 */
footer a { color: #d8d8d8; }
footer a:hover { color: #ffc107; }

footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent);
}

/* 响应式调整 */
@media (min-width: 600px) {
    .dropdowns-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .ad-container {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .ad-image {
        max-width: 80%;
    }
}

/* 小屏幕广告文字调整 */
@media (max-width: 480px) {
    .ad-line-1 {
        font-size: 18px;
    }
    .ad-line-2 {
        font-size: 14px;
    }
    .ad-line-3 {
        font-size: 12px;
    }
}

/* 全局重置与基础设置 */
        html, /* 黑灰色主题色定义 */
        :root {
            --primary-dark: #2d2d2d;
            --primary: #333333;
            --primary-light: #4a4a4a;
            --accent: #ffc107;
            --text-light: #f0f0f0;
            --text-dark: #2d2d2d;
        }

        /* 动画效果 */
        @keyframes float {
            0%, 100% { transform: translateX(0) !important; }
            50% { transform: translateX(8px) !important; }
        }

        @keyframes flash {
            0%, 100% { 
                color: var(--text-light);
                opacity: 1;
            }
            50% { 
                color: var(--accent);
                opacity: 0.8;
            }
        }

        /* 响应式调整 - 小屏手机 */
        @media (max-width: 360px) {

        }

        /* 大屏设备优化 */
        @media (min-width: 768px) {

        }