/*
 * 文件: category-expander.css
 * 描述: 分类与归档页面样式 (v2.7 - 纯净重构版)
 * 结构:
 * 1. 顶部 Hero Card 标题区
 * 2. 底部折叠长文区
 * 3. 内部元素样式 (折叠遮罩、内链、按钮)
 */

/* ==========================================================================
   1. 顶部 Hero Card 标题区 (极致轻量、灰底圆角)
   ========================================================================== */
.auras-category-hero-section {
    padding-top: 15px;    /* 控制距离上方黑条的间距 */
    padding-bottom: 5px;  /* 控制距离下方 Filter 按钮的间距 */
    margin-bottom: 10px;
}

.category-hero-card {
    /* 淡灰色高级渐变背景 */
    background: linear-gradient(135deg, #fbfcfc 0%, #f4f5f7 100%);
    padding: 30px 20px; 
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02); /* 极轻微的阴影增加层次感 */
}

.category-hero-card .expander-title {
    font-size: 28px;
    font-weight: 500;     /* 摒弃沉重的粗体，改为中等字重 */
    color: #222222;       /* 深灰替代纯黑，视觉更柔和 */
    margin: 0;            /* 强制清除 H1 自带的巨大外边距 */
    letter-spacing: -0.2px;
    line-height: 1.3;
}


/* ==========================================================================
   2. 底部长文展开区域 (控制间距与底色)
   ========================================================================== */
.auras-expander-section.bottom-expander {
    margin-top: 30px;    
    margin-bottom: 30px; 
    padding-top: 25px;
    border-top: 1px solid #f0f0f0; /* 添加一条极淡的顶部分割线，与商品区隔开 */
    clear: both;
    width: 100%;
}

.expandable-description-container {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

/* 清除最后一个段落的底部边距，防止高度计算误差 */
.expandable-description-container p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   3. 内部元素交互样式 (折叠遮罩、内链、按钮)
   ========================================================================== */

/* --- 3A. 折叠状态与渐变遮罩 --- */
/* 折叠状态的初始高度 (配合JS中的115px) */
.expandable-description-container.is-collapsed {
    max-height: 115px; 
}

.expandable-description-container.is-collapsed .description-fade-overlay {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px; 
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1) 90%);
    pointer-events: none;
    z-index: 2;
}

.expandable-description-container:not(.is-collapsed) .description-fade-overlay {
    display: none;
}


/* --- 3B. SEO 内链样式优化 --- */
.expandable-description-container a[data-term-interlink="true"] {
    color: #555; 
    text-decoration: none; 
    border-bottom: 1px dashed #999; 
    font-weight: normal; 
    transition: all 0.2s ease-in-out; 
}

.expandable-description-container a[data-term-interlink="true"]:hover {
    color: #0056b3; 
    border-bottom-color: #0056b3; 
    border-bottom-style: solid; 
}


/* --- 3C. 底部展开/收起 按钮样式 --- */
.expander-button-wrapper {
    text-align: center;
    padding-top: 15px;
}

.expandable-toggle-button {
    display: inline-block;
    padding: 8px 24px; 
    border: 1px solid #e0e0e0;
    border-radius: 4px; 
    background-color: #ffffff;
    color: #555; 
    font-size: 14px;
    font-weight: 500; 
    line-height: 1.5;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.expandable-toggle-button:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
    color: #111;
}


/* ==========================================================================
   4. 移动端适配 (响应式调整)
   ========================================================================== */
@media (max-width: 768px) {
    /* 弱化顶部卡片 */
    .auras-category-hero-section {
        padding-top: 10px; 
        margin-bottom: 5px; 
    }
    
    .category-hero-card {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .category-hero-card .expander-title {
        font-size: 22px; /* 移动端字号缩小，不喧宾夺主 */
    }
}