/* ===== 首页样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background: #fff !important;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #faf8f5;
    color: #3d3a35;
    line-height: 1.8;
}

.magazine-home {
    background: #fff;
}

/* ===== Hero 轮播 ===== */
.hero-section {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #3d3a35;
}

.hero-slider {
    height: 100%;
    width: 100%;
}

.hero-slider .swiper {
    height: 100%;
    width: 100%;
}

.hero-slider .swiper-wrapper {
    height: 100%;
}

.hero-slider .swiper-slide {
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: #fff;
    width: 80%;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 20px;
    font-family: "PingFang SC", "Microsoft YaHei", serif;
}

.hero-content p {
    font-size: 16px;
    letter-spacing: 3px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-content .hero-btn {
    display: inline-block;
    padding: 15px 50px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    transition: all 0.3s;
    cursor: pointer;
}

.hero-slider .swiper-slide {
    cursor: pointer;
}

.hero-content .hero-btn:hover {
    background: #fff;
    color: #3d3a35;
}

.hero-slider .swiper-pagination {
    bottom: 60px;
}

.hero-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #fff;
    opacity: 0.5;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #c9a96e;
}

/* ===== 分类卡片栏 ===== */
.category-bar {
    position: relative;
    margin-top: -30px;
    z-index: 9;
}

.category-bar-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    padding: 28px 24px;
    gap: 0;
    justify-content: space-between;
}

.category-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 12px 8px;
    transition: all 0.3s ease;
    border-radius: 10px;
    min-width: 0;
}

.category-item:hover {
    background: #fafafa;
    transform: translateY(-2px);
}

.category-item-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.category-item:nth-child(1) .category-item-icon {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: #d63384;
}

.category-item:nth-child(2) .category-item-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
}

.category-item:nth-child(3) .category-item-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
}

.category-item:nth-child(4) .category-item-icon {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    color: #fff;
}

.category-item:nth-child(5) .category-item-icon {
    background: linear-gradient(135deg, #fccb90, #d57eeb);
    color: #fff;
}

.category-item:nth-child(6) .category-item-icon {
    background: linear-gradient(135deg, #fa709a, #fee140);
    color: #fff;
}

.category-item.category-all .category-item-icon {
    background: linear-gradient(135deg, #ff6b81, #ee5a5a);
    color: #fff;
}

.category-item-info {
    text-align: left;
    min-width: 0;
}

.category-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.category-item:hover .category-item-name {
    color: #c9302c;
}

.category-item-count {
    font-size: 11px;
    color: #aaa;
    line-height: 1.3;
}

.category-item.category-all {
    flex: none;
    width: auto;
    padding-left: 18px;
    padding-right: 18px;
    border-left: 1px solid #f0f0f0;
    margin-left: 4px;
}

.category-item.category-all:hover {
    background: #fff5f5;
}

.category-item.category-all .category-item-name {
    color: #c9302c;
}

.category-item.category-all .category-item-count {
    color: #ffb3b3;
}

/* ===== 热门杂志推荐 ===== */
.magazine-section {
    padding: 30px 0 20px;
}

.magazine-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}

.magazine-title-row h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.magazine-more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.25s;
}

.magazine-more:hover {
    color: #c9302c;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
}

.magazine-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    padding-bottom: 18px;
}

.magazine-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #e74c3c;
}

.magazine-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f5;
}

.magazine-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.magazine-card:hover .magazine-cover img {
    transform: scale(1.06);
}

.magazine-name {
    font-size: 15px;
    color: #333;
    margin: 14px 10px 6px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.magazine-card:hover .magazine-name {
    color: #c9302c;
}

.magazine-price {
    font-size: 17px;
    color: #c9302c;
    font-weight: 600;
    margin: 4px 0 12px;
}

.magazine-price span {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.magazine-btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 13px;
    padding: 7px 36px;
    border-radius: 4px;
    letter-spacing: 2px;
    transition: background 0.25s;
}

.magazine-card:hover .magazine-btn {
    background: #c9302c;
}

/* ===== 企业专属订阅服务 ===== */
.enterprise-service {
    padding: 0 0 30px;
}

.enterprise-inner {
    background: linear-gradient(135deg, #fff9f5, #fff5f2, #fff);
    border-radius: 12px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    border: 1px solid #f5e8e4;
}

.enterprise-left {
    flex: 1;
}

.enterprise-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.enterprise-subtitle {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.enterprise-features {
    display: flex;
    justify-content: space-between;
}

.enterprise-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.enterprise-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff3f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #e74c3c;
    font-size: 22px;
}

.enterprise-feature-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.enterprise-feature-text p {
    font-size: 12px;
    color: #999;
}

.enterprise-right {
    text-align: left;
    border-left: 1px solid #eee;
    flex-shrink: 0;
    padding-left: 50px;
    margin-right: 80px;
}

.enterprise-contact-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.enterprise-contact-desc {
    font-size: 12px;
    color: #999;
}

.enterprise-btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    padding: 4px 22px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 2px;
    transition: background 0.25s;
    margin: 4px 0;
}

.enterprise-btn:hover {
    background: #c9302c;
}

.enterprise-phone {
    font-size: 18px;
    color: #e74c3c;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.enterprise-phone-icon {
    margin-right: 4px;
}

.enterprise-phone-desc {
    font-size: 12px;
    color: #999;
    display: flex;
    flex-direction: column;
}

.enterprise-phone-desc p {
    margin: 0 !important;
}

.enterprise-phone-desc .enterprise-phone-num {
    color: #e2483a;
}

/* ===== 畅销排行榜 ===== */
.ranking-section {
    padding: 30px 0 30px;
}

.ranking-title-row {
    margin-bottom: 24px;
}

.ranking-title-row h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.ranking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 24px;
    align-items: start;
}

.ranking-list-box {
    background: #fff;
    border-radius: 10px;
    padding: 8px 28px;
    border: 1px solid #f0f0f0;
}

.ranking-list-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ranking-icon-crown {
    font-size: 18px;
}

.ranking-icon-thumb {
    font-size: 18px;
}

.ranking-list-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f7f7f7;
    text-decoration: none;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ranking-item:nth-child(1) .ranking-num {
    background: #ff4d4f;
    color: #fff;
}

.ranking-item:nth-child(2) .ranking-num {
    background: #ff7a45;
    color: #fff;
}

.ranking-item:nth-child(3) .ranking-num {
    background: #ffa940;
    color: #fff;
}

.ranking-item-cover {
    width: 42px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.ranking-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-item-info {
    flex: 1;
    min-width: 0;
}

.ranking-item-info .ranking-item-info-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.ranking-item-name {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    max-width: 250px;
}

.ranking-item-price {
    font-size: 15px;
    color: #c9302c;
    font-weight: 600;
    margin: 0;
}

.ranking-item-price span {
    font-size: 11px;
    color: #bbb;
    font-weight: 400;
}

.ranking-item-btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    padding: 2px 14px;
    border-radius: 3px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.25s;
}

.ranking-item-btn:hover {
    background: #c9302c;
}

/* ===== 新用户专享福利卡片 ===== */
.coupon-card {
    width: 220px;
    background: linear-gradient(160deg, #fff5eb 0%, #ffece0 50%, #ffdcc4 100%);
    border-radius: 12px;
    padding: 24px 22px;
    border: 1px solid #ffdcc4;
    text-align: left;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(231, 76, 60, 0.06);
}

.coupon-card-header {
    margin-bottom: 16px;
}

.coupon-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.coupon-card-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 0;
}

.coupon-main {
    background: #fff;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    border: 1px dashed #f0b896;
    position: relative;
    margin-bottom: 18px;
}

.coupon-main::before,
.coupon-main::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #fff5eb, #ffece0);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.coupon-main::before {
    left: -9px;
}

.coupon-main::after {
    right: -9px;
}

.coupon-amount {
    font-size: 42px;
    font-weight: 700;
    color: #e74c3c;
    line-height: 1;
    margin-bottom: 2px;
}

.coupon-amount small {
    font-size: 18px;
}

.coupon-condition {
    font-size: 11px;
    color: #bbb;
    margin-bottom: 0;
}

.coupon-benefits {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.coupon-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.coupon-benefit-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff0e8;
    color: #e74c3c;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coupon-btn {
    display: block;
    background: linear-gradient(135deg, #e74c3c, #ff6b4a);
    color: #fff;
    font-size: 14px;
    padding: 11px 0;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 2px;
    transition: all 0.25s;
    text-align: center;
    font-weight: 500;
}

.coupon-btn:hover {
    background: linear-gradient(135deg, #c9302c, #e74c3c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* ===== 服务保障 ===== */
.service-guarantee {
    padding: 28px 0 36px;
}

.guarantee-title-row {
    margin-bottom: 24px;
}

.guarantee-title-row h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.guarantee-grid {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.guarantee-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.guarantee-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: #ffdcc4;
}

.guarantee-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff5f0;
    color: #e74c3c;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guarantee-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.guarantee-text p {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* ===== 服务广告栏 ===== */
.service-bar {
    margin: 24px 0 0;
    border-radius: 8px;
    overflow: hidden;
}

.service-bar-inner {
    background: linear-gradient(135deg, #c0392b, #c9302c, #d14545);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    border-radius: 10px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.25s;
}

.service-item:hover {
    opacity: 0.85;
}

.service-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.service-text {
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.service-desc {
    font-size: 11px;
    opacity: 0.75;
    margin-top: 2px;
    letter-spacing: 1px;
}

/* ===== 返回顶部 ===== */
.go-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: #3d3a35;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.go-top.show {
    opacity: 1;
    visibility: visible;
}

.go-top:hover {
    background: #8b3a3a;
}

.go-top i {
    font-size: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state img {
    width: 120px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .guarantee-grid {
        flex-wrap: wrap;
        gap: 12px;
    }

    .guarantee-item {
        width: calc(50% - 6px);
        padding: 16px 14px;
    }
}

@media (max-width: 1200px) {
    .enterprise-inner {
        flex-direction: column;
        text-align: center;
    }

    .enterprise-features {
        justify-content: center;
        flex-wrap: wrap;
    }

    .enterprise-right {
        border-left: none;
        border-top: 1px solid #eee;
        padding-left: 0;
        padding-top: 24px;
        text-align: center;
    }

    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .coupon-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .service-bar-inner {
        flex-wrap: wrap;
        padding: 18px 16px;
        gap: 12px;
        justify-content: center;
    }

    .service-item {
        width: calc(50% - 6px);
        padding: 10px 0;
        justify-content: center;
    }

    .service-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .service-title {
        font-size: 13px;
    }

    .category-bar-inner {
        flex-wrap: wrap;
        padding: 12px;
        border-radius: 10px;
        gap: 4px;
    }

    .category-item {
        width: calc(25% - 3px);
        padding: 10px 6px;
        min-width: 0;
        flex: none;
        justify-content: center;
    }

    .category-item-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 8px;
    }

    .category-item-name {
        font-size: 13px;
    }

    .category-item-count {
        font-size: 10px;
    }

    .category-item.category-all {
        width: 100%;
        border-left: none;
        border-top: 1px solid #f0f0f0;
        margin-left: 0;
        padding-left: 16px;
        margin-top: 4px;
        justify-content: flex-start;
    }
}
