/* Banner 组件 */
.banner {
    width: 100%;
    height: 128px; /* 从160px缩小1/5到128px */
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f1e8, #e8dcc0);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    border-bottom: 3px solid #d4af37;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path d="M20,50 Q50,20 80,50 T140,50" stroke="rgba(212,175,55,0.2)" stroke-width="1" fill="none"/><path d="M160,150 Q130,120 100,150 T40,150" stroke="rgba(212,175,55,0.15)" stroke-width="1" fill="none"/></svg>');
    opacity: 0.6;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.8;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #3a2f1f;
    font-size: 20px; /* 从24px缩小到20px */
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    letter-spacing: 1.6px; /* 从2px缩小到1.6px */
    position: relative;
    z-index: 1;
}

.banner-placeholder .subtitle {
    font-size: 12px; /* 从14px缩小到12px */
    font-weight: 400;
    color: #6b5b4a;
    margin-top: 5px; /* 从6px缩小到5px */
    letter-spacing: 0.8px; /* 从1px缩小到0.8px */
    opacity: 0.8;
}

/* 首页模块卡片 */
.home-module {
    background: linear-gradient(135deg, #fff, #fafafa);
    border-radius: 16px;
    padding: 20px;
    margin: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 移除首页模块顶部装饰线 */
.home-module::before {
    display: none;
}

.home-module:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #d4af37;
}

/* 左侧区域 */
.home-module-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.home-module-icon {
    font-size: 32px;
    margin-bottom: 8px;
    color: #d4af37;
}

.home-module-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

/* 右侧区域 */
.home-module-right {
    flex: 1;
    padding-left: 16px;
    border-left: 2px solid #f0f0f0;
}

.home-module-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* 分类卡片 */
.category-item {
    background: linear-gradient(135deg, #fff, #fafafa);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

/* 移除顶部装饰线 */
.category-item::before {
    display: none;
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #d4af37;
}

/* 左侧区域 */
.category-item-left {
    flex-shrink: 0;
    min-width: 140px;
    text-align: center;
}

.category-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin: 0;
}

/* 右侧区域 */
.category-item-right {
    flex: 1;
    padding-left: 16px;
    border-left: 2px solid #f0f0f0;
}

.category-item-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* 内容卡片包装器 */
.content-card-wrapper {
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.content-card-wrapper:hover .content-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d4af37;
}

/* 内容卡片容器 */
.content-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 16px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f5f5f5; /* 默认灰色边框 */
    text-align: center;
    min-height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 12px;
}

/* 有外部链接的内容卡片 - 金色边框 */
.content-card-external {
    border: 2px solid #d4af37; /* 金色边框 */
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15); /* 金色阴影 */
}

.content-card-external:hover {
    border-color: #c19b26; /* 悬停时更深的金色 */
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

.content-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
    word-break: break-all;
}

.content-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-all;
    text-align: center;
    margin-top: 0;
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: #ccc;
}

/* 空状态中的外部链接按钮 */
.empty-state-actions {
    margin-top: 24px;
}

.empty-state-external-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d4af37, #f4e4a6);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    text-decoration: none;
}

.empty-state-external-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #c19b26, #e6d395);
}

.empty-state-external-btn:active {
    transform: translateY(0);
}

.external-btn-icon {
    margin-right: 8px;
    font-size: 16px;
}

.external-btn-text {
    margin-right: 8px;
}

.external-btn-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.empty-state-external-btn:hover .external-btn-arrow {
    transform: translateX(2px);
}

/* 响应式调整 */
@media (max-width: 360px) {
    .grid-2 {
        gap: 12px;
        padding: 16px 12px;
    }
    
    .grid-3 {
        gap: 10px;
        padding: 16px 12px;
    }
    
    /* 分类卡片小屏幕适配 */
    .category-item {
        padding: 16px;
        gap: 16px;
        min-height: 70px;
    }

    .category-item-left {
        min-width: 120px;
    }

    .category-item-title {
        font-size: 16px;
    }

    .category-item-right {
        padding-left: 12px;
    }

    .category-item-desc {
        font-size: 13px;
    }
    
    .content-card {
        padding: 14px 10px;
        min-height: 55px;
    }

    .content-card-title {
        font-size: 14px;
    }

    .content-card-desc {
        font-size: 12px;
    }

    /* 首页模块小屏幕适配 */
    .home-module {
        padding: 16px;
        margin: 12px;
        gap: 16px;
    }

    .home-module-left {
        min-width: 100px;
    }

    .home-module-icon {
        font-size: 28px;
    }

    .home-module-title {
        font-size: 16px;
    }

    .home-module-right {
        padding-left: 12px;
    }

    .home-module-desc {
        font-size: 13px;
    }
}
