/* ==========================================
   INDEX.HTML 专用布局样式
   ========================================== */

/* ▼▼▼ 1. 标准容器类 ▼▼▼ */
.standard-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ▼▼▼ 2. 分类图标导航栏 ▼▼▼ */
.home-category-nav {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 100px;
}

.home-cat-card {
    flex: 1;
    min-width: 200px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;
}

.home-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #b4b096;
}

.home-cat-card .cat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    stroke: #b4b096;
    stroke-width: 1.5;
    fill: none;
}

.home-cat-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: #555;
}

/* 移动端：两列布局 */
@media screen and (max-width: 800px) {
    .home-category-nav {
        flex-wrap: wrap;
        margin-bottom: 60px;
    }
    .home-cat-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
        padding: 20px 15px;
    }
    .home-cat-card .cat-icon {
        width: 40px;
        height: 40px;
    }
}

/* ▼▼▼ 3. Brand Video Section ▼▼▼ */
.hero-video-section {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 100px;
    padding: 0 24px;
    box-sizing: border-box;
}

.hero-video-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    letter-spacing: 0.05em;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 800px) {
    .hero-video-section {
        margin-bottom: 60px;
    }
    .hero-video-section h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
}

/* ▼▼▼ 4. Story Section (图文故事) ▼▼▼ */
.story-section {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 100px;
    padding: 0 24px;
    box-sizing: border-box;
}

.story-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.story-block:last-child {
    margin-bottom: 0;
}

/* 左图右文 (默认) */
.story-block .story-img {
    flex: 0 0 48%;
    overflow: hidden;
    border-radius: 8px;
}

.story-block .story-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.story-block .story-img:hover img {
    transform: scale(1.05);
}

.story-block .story-text {
    flex: 1;
}

.story-block .story-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    letter-spacing: 0.05em;
}

.story-block .story-text p {
    line-height: 1.9;
    color: #666;
    margin-bottom: 25px;
}

.story-block .story-text strong {
    font-size: 1.1rem;
    color: #333;
}

.story-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #b4b096;
    color: #b4b096;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.story-btn:hover {
    background: #b4b096;
    color: #fff;
}

/* 右图左文 (reverse) */
.story-block.reverse {
    flex-direction: row-reverse;
}

/* 移动端：强制单列布局，图在上文在下 */
@media screen and (max-width: 800px) {
    .story-section {
        margin-bottom: 60px;
    }
    
    .story-block,
    .story-block.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .story-block .story-img {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .story-block .story-text h3 {
        font-size: 1.5rem;
    }
}

/* ▼▼▼ 5. Brand Banner (NEMON卡片式设计) ▼▼▼ */
.home-section-width {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 100px;
    padding: 0 24px;
    box-sizing: border-box;
}

.nemon-card {
    display: block;
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
}

.nemon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.nemon-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.nemon-card:hover img {
    transform: scale(1.05);
}

/* 中央文字框 */
.nemon-text-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 60px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.nemon-card:hover .nemon-text-box {
    background: rgba(255, 255, 255, 1);
}

.nemon-subtitle {
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.nemon-title {
    font-size: 3.5rem;
    color: #333;
    letter-spacing: 0.15em;
    margin: 0 0 20px 0;
    font-weight: 300;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.nemon-cta {
    font-size: 1rem;
    color: #b4b096;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nemon-card:hover .nemon-cta {
    color: #8d8474;
}

/* 移动端适配 */
@media screen and (max-width: 800px) {
    .home-section-width {
        margin-bottom: 60px;
    }
    
    .nemon-card {
        height: 280px;
        border-radius: 8px;
    }
    
    .nemon-text-box {
        padding: 25px 35px;
    }
    
    .nemon-subtitle {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }
    
    .nemon-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }
    
    .nemon-cta {
        font-size: 0.85rem;
    }
}

/* ▼▼▼ 6. News Section ▼▼▼ */
#new {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 100px;
    padding: 0 24px;
    box-sizing: border-box;
}

#new h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #333;
    letter-spacing: 0.05em;
}

#news-list {
    max-width: 800px;
    margin: 0 auto;
}

#news-list dt {
    float: left;
    clear: left;
    width: 120px;
    padding: 10px 0;
    font-weight: bold;
    color: #666;
}

#news-list dd {
    margin-left: 140px;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    color: #555;
}

#news-list dd a {
    color: #333;
    text-decoration: none;
}

#news-list dd a:hover {
    color: #b4b096;
    text-decoration: underline;
}

.newicon {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

#toggle-news {
    color: #b4b096;
    text-decoration: none;
    font-size: 0.9rem;
}

#toggle-news:hover {
    text-decoration: underline;
}

.r {
    text-align: right;
}

@media screen and (max-width: 800px) {
    #new {
        margin-bottom: 60px;
    }
    
    #new h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    #news-list dt {
        float: none;
        width: 100%;
        padding: 15px 0 5px;
    }
    
    #news-list dd {
        margin-left: 0;
        padding: 5px 0 15px;
    }
}

/* ▼▼▼ 7. 清除浮动 ▼▼▼ */
#news-list::after {
    content: "";
    display: table;
    clear: both;
}
