/* 首页特定样式 */

/* 轮播图 */
.banner-section {
    margin-top: 50px;
}

/* 热门创作者 */
.creator-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: stretch;
}

.goods-grid,
.creator-grid,
.album-grid {
    align-items: stretch;
}

.goods-card,
.creator-card,
.album-card {
    min-height: 100%;
}

.creator-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    cursor: default;
}

.creator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.creator-hero {
    position: relative;
    aspect-ratio: 1 / 1;
    padding: 18px 12px 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
}

.creator-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.18);
    transition: all 0.3s ease;
}

.creator-card:hover .creator-avatar {
    border-color: var(--primary-color);
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.88);
}

.creator-info {
    padding: 12px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 88px;
}

.creator-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    min-height: 40px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.creator-works {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    min-height: 32px;
}

.creator-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px 12px;
    margin-top: auto;
}

.creator-meta {
    font-size: 12px;
    color: var(--text-light);
}

.btn-follow {
    padding: 5px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-follow:active {
    transform: scale(0.97);
}

/* 热门专辑 */
.album-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: stretch;
}

.album-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.album-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.album-card:hover .album-image img {
    transform: scale(1.1);
}

.album-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--bg-white);
}

.album-tag.hot {
    background: linear-gradient(135deg, #ff6b6b, #f5222d);
}

.album-tag.new {
    background: linear-gradient(135deg, #52c41a, #389e0d);
}

.album-info {
    padding: 12px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 88px;
}

.album-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    min-height: 40px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.album-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    min-height: 32px;
}

.album-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px 12px;
    margin-top: auto;
}

.album-meta {
    font-size: 12px;
    color: var(--text-light);
}

.btn-album {
    padding: 5px 12px;
    background: rgba(102, 126, 234, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.16);
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-album:active {
    transform: scale(0.97);
}

/* 轮播图 */

.swiper-container {
    position: relative;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.swiper-slide {
    min-width: 100%;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.swiper-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* 金刚区 */
.icon-nav-section {
    background: white;
    padding: 15px 0;
    margin-bottom: 10px;
}

.icon-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 0 15px;
}

.icon-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.icon-nav-item:hover {
    transform: translateY(-2px);
}

.icon-nav-item:active {
    opacity: 0.82;
}

.icon-nav-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 12px;
}

.icon-nav-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 20px;
}

.icon-nav-text {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* 商品区块 */
.goods-section {
    background: white;
    margin-bottom: 10px;
    padding: 20px 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.section-title i {
    color: #667eea;
}

.section-more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 商品网格 */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.goods-card {
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.goods-card:active {
    transform: scale(0.98);
}

.goods-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.goods-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goods-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: white;
    font-weight: 500;
}

.goods-tag.hot {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.goods-tag.new {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.goods-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 108px;
}

.goods-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    min-height: 40px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.goods-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
    min-height: 18px;
}

.goods-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.goods-price {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}

.btn-buy {
    padding: 5px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    min-width: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 横向滚动商品 */
.goods-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.goods-scroll::-webkit-scrollbar {
    display: none;
}

.goods-item {
    min-width: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.goods-item .goods-image {
    padding-top: 100%;
}

.goods-item .goods-info {
    padding: 10px;
}

.goods-item .goods-name {
    font-size: 13px;
    margin-bottom: 6px;
}

.goods-item .goods-price {
    font-size: 14px;
}

/* 公告区块 */
.notice-section {
    background: white;
    padding: 20px 15px;
    margin-bottom: 10px;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
}

.notice-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    background: #667eea;
    color: white;
    flex-shrink: 0;
}

.notice-tag.activity {
    background: #f5576c;
}

.notice-tag.new {
    background: #4facfe;
}

.notice-title {
    flex: 1;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-date {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}
