/* 首页样式 - 与管理后台保持一致的视觉风格 */

/* 轮播图 */
.swiper-container {
    position: relative;
    width: calc(100% - 32px);
    height: 180px;
    overflow: hidden;
    margin: 16px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

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

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.swiper-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}

.swiper-dot.active {
    background: #fff;
    width: 16px;
    border-radius: 3px;
}

/* 公告栏 */
.announcement {
    background: #fff;
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 16px 16px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.announcement-icon {
    font-size: 18px;
    color: #ff5e00;
}

.announcement-content {
    flex: 1;
    overflow: hidden;
}

.announcement-scroll {
    transition: transform 0.3s ease;
}

.announcement-scroll .item {
    font-size: 14px;
    color: #666;
    line-height: 20px;
}

/* 服务介绍 */
.service-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 0;
    background: #fff;
    margin: 0 16px 16px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.service-card:active {
    background: #fff8f5;
}

.service-card img {
    width: 48px;
    height: 48px;
}

.service-card .service-title {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.service-card .service-desc {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.5;
}

/* 赔付案例 */
.compensation-section {
    background: linear-gradient(135deg, #fff, #fff8f5);
    padding: 12px 0 8px 0;
    margin: 0 16px 16px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(255, 94, 0, 0.1);
    border: 1px solid rgba(255, 94, 0, 0.05);
}

.compensation-section .section-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 94, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.compensation-section .section-title .title-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FF5E00, #FF8C00);
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255, 94, 0, 0.3);
}

.compensation-scroll {
    overflow: hidden;
    padding: 0 4px;
    height: 128px;
    max-height: 128px;
}

.compensation-scroll .scroll-inner {
    transition: transform 0.5s linear;
}

/* 赔付案例 - 空状态提示 */
.compensation-scroll:empty::before {
    content: '暂无赔付案例';
    display: block;
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 14px;
}

/* 无缝滚动动画 */
@keyframes scroll-compensation {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.compensation-scroll.auto-scroll .scroll-inner {
    animation: scroll-compensation 8s linear infinite;
}

.case-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(240, 240, 240, 0.3);
    transition: all 0.3s;
}

.case-item:last-child {
    border-bottom: none;
}

.case-item:active {
    background: rgba(255, 94, 0, 0.05);
    border-radius: 6px;
    margin: 0 4px;
    padding: 8px 4px;
}

.case-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.case-game {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.case-date {
    color: #999;
    font-size: 11px;
    background: #f5f5f5;
    padding: 1px 6px;
    border-radius: 8px;
}

.case-amount {
    color: #ff5e00;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(135deg, #FF5E00, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 热门推荐 */
.recommend-section {
    background: #fff;
    padding: 20px 0;
    margin: 0 16px 16px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.recommend-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.recommend-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.recommend-item:active {
    transform: scale(0.95);
}

.recommend-item img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 商品列表 */
.goods-section {
    background: #fff;
    padding: 20px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin: 0 16px 16px 16px;
}

.goods-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.goods-category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.cat-item {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    background: #f5f5f5;
    transition: all 0.3s;
}

.cat-item.active {
    background: linear-gradient(135deg, #FF5E00, #FF8C00);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 94, 0, 0.3);
}

.cat-item:active {
    opacity: 0.8;
}

.goods-view-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    transition: all 0.3s;
}

.goods-view-toggle:active {
    background: #e0e0e0;
}

/* 大图模式 - 一行 1 个 */
.goods-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.goods-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.goods-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* 大图模式 - 缩略图更高 */
.goods-card .thumb {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f5f5f5;
}

.goods-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goods-card .img-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.goods-card .info {
    padding: 14px;
}

.goods-card .title {
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.goods-card .highlight {
    font-size: 12px;
    color: #ff5e00;
    margin-bottom: 10px;
    background: #fff8f5;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.goods-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.goods-card .tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.goods-card .tags img {
    height: 18px;
}

.goods-card .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.goods-card .category-path {
    font-size: 12px;
    color: #999;
}

.goods-card .price {
    color: #ff5e00;
    font-weight: 700;
    font-size: 18px;
}

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

.goods-more {
    text-align: center;
    padding: 24px;
}

.goods-more button {
    padding: 12px 40px;
    border: none;
    background: linear-gradient(135deg, #FF5E00, #FF8C00);
    color: #fff;
    border-radius: 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.3);
    transition: all 0.3s;
}

.goods-more button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(255, 94, 0, 0.2);
}

.goods-more button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 小图模式 - 一行 2 个 */
.goods-list.small-view {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.goods-list.small-view .goods-card .thumb {
    height: 120px;
}
.goods-list.small-view .goods-card .info {
    padding: 10px;
}
.goods-list.small-view .goods-card .title {
    font-size: 13px;
}
.goods-list.small-view .goods-card .price {
    font-size: 15px;
}
.goods-list.small-view .goods-card .game-name {
    font-size: 12px;
}

/* 估价入口 */
.valuation-entrance {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 16px;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s;
}

.valuation-entrance:hover {
    transform: translateY(-2px);
}

.valuation-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.valuation-text {
    flex: 1;
}

.valuation-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.valuation-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.valuation-arrow {
    font-size: 24px;
    color: #fff;
}
