* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
a{
    text-decoration: none;
}
body {
    background-color: #fef9f6;  /* 柔光粉白 */
    color: #2d2a2a;
    line-height: 1.5;
}

/* 整体容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ---- 头部 (共用) ---- */
header {
    padding: 25px 0 10px;
    border-bottom: 2px solid #ffe2d4;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logo a {
    font-size: 2rem;
    font-weight: 600;
    color: #d44c66;
    text-decoration: none;
    letter-spacing: 2px;
}
.logo span {
    font-size: 1rem;
    color: #b08a7a;
    margin-left: 8px;
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-weight: 500;
}
.nav-links a {
    text-decoration: none;
    color: #5e3f3a;
    font-size: 1.1rem;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}
.nav-links a:hover, .nav-links a.active {
    border-bottom-color: #d44c66;
    color: #d44c66;
}

.search-box {
    background: white;
    border-radius: 40px;
    padding: 8px 18px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.03);
    border: 1px solid #ffd9cc;
}
.search-box i {
    color: #d98678;
    margin-right: 6px;
}
.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 190px;
    font-size: 0.95rem;
}
.search-box input::placeholder {
    color: #bfa094;
}

/* ---- 首页特有区块 (cos图集流) ---- */
.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin: 40px 0 20px;
    color: #3e2d28;
    border-left: 8px solid #f9ab9c;
    padding-left: 20px;
}
.section-title small {
    font-size: 1rem;
    color: #b38678;
    margin-left: 15px;
    font-weight: 300;
}

/* 推荐COSER卡片 (蠢沫沫 高亮) */
.featured-coser {
    background: linear-gradient(145deg, #fff4ed, #ffeae1);
    border-radius: 28px;
    padding: 30px 35px;
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    align-items: center;
    margin-bottom: 50px;
    box-shadow: 0 12px 25px -10px rgba(200, 120, 100, 0.25);
}
.coser-avatar {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    background: #ffd9cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px #ffc9bb;
}
.coser-avatar img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
}
.coser-desc {
    flex: 1;
}
.coser-desc h2 {
    font-size: 2.6rem;
    font-weight: 500;
    color: #632e22;
    margin-bottom: 6px;
}
.coser-desc h2 i {
    color: #f76f5c;
    font-size: 2.2rem;
    margin-left: 10px;
}
.coser-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 16px;
}
.badge {
    background: white;
    border-radius: 60px;
    padding: 6px 20px;
    color: #a04836;
    font-weight: 500;
    box-shadow: 0 2px 8px #f0c0b0;
}
.badge i {
    margin-right: 6px;
    color: #d44c66;
}
.collection-item{
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 12px 25px -10px rgba(200, 120, 100, 0.25);
}
.collection-item p{
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #DDD;
    padding: 8px;
}
.collection-item p:last-child{
    margin-bottom: 0;
    border-bottom: none;
}
.collection-item p b{
    margin-right: 10px;
}
/* 图集网格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin: 30px 0 40px;
}
.gallery-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(230, 150, 130, 0.15);
    transition: transform 0.25s ease, box-shadow 0.3s;
    border: 1px solid #ffebe2;
}
.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 28px -8px #e2b4a4;
}
.card-img {
    height: 390px;
    background-color: #fad9cf;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
    border-radius: 8px;
}
.gallery-card:hover .card-img img {
    transform: scale(1.03);
}
.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 240, 235, 0.85);
    backdrop-filter: blur(3px);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ba3f2e;
    border: 1px solid white;
}
.card-info {
    padding: 10px 16px 0;
}
.card-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #3a2823;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    color: #a88072;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.card-meta i {
    margin-right: 4px;
    width: 18px;
    color: #e16b56;
}
.excerpt {
    color: #6e5148;
    font-size: 0.92rem;
    border-top: 1px dashed #f3cdc0;
    padding-top: 12px;
    line-height: 1.5;
}

/* 热门COSER卡片 (首页横向滚动) */
.hot-coser-list {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 12px 0 30px;
    scrollbar-width: thin;
    scrollbar-color: #f9ab9c #ffe2d4;
}

.hot-coser-list::-webkit-scrollbar {
    height: 8px;
}
.hot-coser-list::-webkit-scrollbar-thumb {
    background: #f9ab9c;
    border-radius: 20px;
}
.hot-coser-home {
    overflow: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.hot-item {
    flex: 0 0 140px;
    text-align: center;
}
.hot-coser-home .hot-item {
    flex: 0 0 148px;
}
.hot-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    background: #fcd5c7;
    border-radius: 50%;
    padding: 6px;
}
.hot-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 12px #ecb6a5;
}
.hot-name {
    font-weight: 600;
    color: #572f24;
    font-size: 1.15rem;
}
.hot-count {
    color: #b46e5a;
    font-size: 0.85rem;
}

/* footer */
footer {
    background: #fceae3;
    padding: 20px 0;
    margin-top: 60px;
    color: #754e42;
    text-align: center;
}
footer a{
    color: #974e3b;
    text-decoration: none;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
    gap: 28px;
}
.cos-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(96, 40, 180, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f1e8ff;
    display: flex;
    flex-direction: column;
}
.cos-img {
    height: 290px;
    background-color: #fad9cf;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    object-fit: cover;
}
.cos-card .card-info {
    padding: 10px;
}
.card-info h2 {
    font-size: 16px;
    color: #3a2823;
}
.y-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px;
    border-radius: 60px;
    box-shadow: 0 4px 12px rgba(157, 86, 255, 0.12);
    font-weight: 600;
    color: #3b2b5c;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #f0e9ff;
}
/* 响应式 */
@media (max-width: 760px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    .container {
        padding: 0 20px;
    }
    .coser-avatar{
        display: none;
    }
    .grid-cards {
        grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
        gap: 16px;
    }
    .card-info {
        padding: 12px;
    }
    .card-info h2 {
        font-size: 14px;
    }
    .cos-img {
        height: 160px;
    }
    .y-link{
        font-size: 14px;
    }
    .hot-name {
        font-size: 14px;
    }
    .hot-avatar {
        width: 80px;
        height: 80px;
    }
    .hot-coser-list {
        gap: 12px;
        justify-content: center;
    }
    .hot-item {
        flex: 0 0 80px;
        text-align: center;
    }
}