/* ============================================================
   服务价格页样式 serve.css
   移植自 v2_fanscome_official/service.html（去掉导航/页脚样式，由 landing.css 提供）
   ============================================================ */

:root {
    --primary: #F5222D;
    --primary-light: #ff4d4f;
    --primary-dark: #cf1322;
    --primary-gradient: linear-gradient(135deg, #F5222D 0%, #ff7875 100%);
    --primary-gradient-hover: linear-gradient(135deg, #ff4d4f 0%, #ffa39e 100%);
    --success: #52c41a;
    --warning: #faad14;
    --bg-dark: #0f0f1a;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 10px 40px -10px rgba(245, 34, 45, 0.5);
    --shadow-glow: 0 0 60px rgba(245, 34, 45, 0.3);
}

body {
    background: #f8fafc;
    min-height: 100vh;
}

/* ===== 主内容区 ===== */
.main-content {
    padding-top: 80px;
}

/* ===== Hero区域 - 动态渐变背景 ===== */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 80px 5% 100px;
    position: relative;
    overflow: hidden;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(245, 34, 45, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 120, 117, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
}

/* 浮动粒子效果 */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* 覆盖 landing.css 的 hero-content 网格布局 */
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    display: block;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 34, 45, 0.2);
    border: 1px solid rgba(245, 34, 45, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    color: #fff;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 34, 45, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(245, 34, 45, 0.2); }
}
.hero-badge svg {
    width: 18px;
    height: 18px;
    color: #52c41a;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.2;
}
.hero-title span {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa502 50%, #ff6b6b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
}
@keyframes shine {
    to { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.75);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: var(--shadow-primary), 0 0 40px rgba(245, 34, 45, 0.3);
    transition: all 0.3s ease;
    animation: float-cta 3s ease-in-out infinite;
}
@keyframes float-cta {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(245, 34, 45, 0.6), 0 0 60px rgba(245, 34, 45, 0.4);
}

/* ===== 统计卡片 - 3D浮动效果 ===== */
.stats-container {
    max-width: 1100px;
    margin: -50px auto 0;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: #fff;
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.02);
}
.stat-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245,34,45,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(245, 34, 45, 0.2);
}
.stat-card:hover::before {
    opacity: 1;
}
.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(245,34,45,0.1) 0%, rgba(255,120,117,0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}
.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(245,34,45,0.15) 0%, rgba(255,120,117,0.15) 100%);
}
.stat-icon svg {
    width: 28px;
    height: 28px;
}
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== 筛选工具栏 - 玻璃效果 ===== */
.toolbar-section {
    padding: 50px 5% 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.toolbar-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.platform-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.platform-btn {
    padding: 10px 20px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.platform-btn:hover {
    background: #e2e8f0;
    color: var(--text-primary);
    transform: translateY(-2px);
}
.platform-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 34, 45, 0.3);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}
.search-input {
    padding: 12px 18px 12px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    width: 280px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(245, 34, 45, 0.1);
}
.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    pointer-events: none;
}

/* ===== 服务列表 ===== */
.services-section {
    padding: 24px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 服务分类卡片 - 现代设计 */
.service-category {
    background: #fff;
    border-radius: 24px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-category:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.category-header {
    padding: 28px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 16px;
}
.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.category-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}
.category-count {
    margin-left: auto;
    padding: 8px 18px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

/* 服务表格 - 精致设计 */
.service-table-wrap {
    padding: 0;
    background: #fff;
}
.service-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.service-table th {
    padding: 18px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}
.service-table td {
    padding: 24px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    transition: all 0.2s ease;
    vertical-align: middle;
}
.service-table tr {
    transition: all 0.2s ease;
}
.service-table tbody tr:nth-child(odd) {
    background: #fafafa;
}
.service-table tbody tr:nth-child(even) {
    background: #ffffff;
}
.service-table tr:hover {
    background: #f1f5f9 !important;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.08);
    transform: scale(1.002);
}
.service-table tr:hover td {
    border-bottom-color: #cbd5e1;
}
.service-table tr:last-child td {
    border-bottom: none;
}

.service-id {
    font-family: 'SF Mono', monospace;
    font-size: 13px;
    color: #64748b;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    border: 1px solid #cbd5e1;
}

.service-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
}
.service-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

.price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border-radius: 10px;
    border: 1px solid #fecaca;
}
.price-symbol {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.range-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f0fdf4;
    border-radius: 10px;
    font-size: 13px;
    color: #166534;
    font-weight: 500;
    white-space: nowrap;
}
.range-badge svg {
    width: 14px;
    height: 14px;
    color: var(--success);
}

.detail-btn {
    padding: 10px 18px;
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.detail-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(245, 34, 45, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 34, 45, 0.1);
}
.detail-btn svg {
    width: 14px;
    height: 14px;
}

/* 移动端卡片列表（默认隐藏） */
.service-mobile-list {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}
.service-mobile-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.service-mobile-card:hover {
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.service-mobile-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.service-mobile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.service-mobile-label {
    font-size: 13px;
    color: var(--text-secondary);
}
.service-mobile-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}
.service-mobile-range {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}
.service-mobile-detail {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.service-mobile-detail:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== 加载更多 ===== */
.load-more-wrap {
    text-align: center;
    margin-top: 48px;
    margin-bottom: 80px;
}
.load-more-btn {
    padding: 16px 40px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.load-more-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow);
}
.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 加载中状态 */
.loading-wrap {
    text-align: center;
    padding: 100px;
}
.loading-wrap .loading-spinner {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}
.empty-wrap {
    text-align: center;
    padding: 100px;
    color: var(--text-secondary);
}
.empty-wrap svg {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    color: #cbd5e1;
}

/* ===== Popover 弹出框 ===== */
.popover-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}
.popover-overlay.active {
    display: block;
}
.popover-content {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    min-width: 360px;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.04);
    z-index: 2001;
    border: 1px solid rgba(0,0,0,0.06);
    animation: popoverIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes popoverIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.popover-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}
.popover-arrow-bottom {
    bottom: -12px;
    border-width: 12px 12px 0 12px;
    border-color: #fff transparent transparent transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.06));
}
.popover-arrow-top {
    top: -12px;
    border-width: 0 12px 12px 12px;
    border-color: transparent transparent #fff transparent;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.06));
}
.popover-inner {
    padding: 24px;
}
.popover-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}
.popover-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}
.popover-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-height: 360px;
    overflow-y: auto;
}
.popover-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== 动画 ===== */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 滚动显示动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 20px;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-icon {
        width: 44px;
        height: 44px;
    }
    .stat-value {
        font-size: 1.5rem;
    }

    .toolbar-card {
        flex-direction: column;
        align-items: stretch;
    }
    .platform-filter {
        justify-content: center;
    }
    .search-box {
        width: 100%;
    }
    .search-input {
        width: 100%;
    }

    /* 移动端卡片布局 */
    .service-table-wrap {
        display: none;
    }
    .service-mobile-list {
        display: flex;
    }
    .category-header {
        padding: 20px;
    }
    .category-header h3 {
        font-size: 1.1rem;
    }

    /* 移动端弹窗优化 */
    .popover-content {
        min-width: 280px;
        max-width: 90vw;
        left: 50% !important;
        transform: translateX(-50%);
    }
    .popover-inner {
        padding: 20px;
    }
    .popover-title {
        font-size: 15px;
    }
    .popover-body {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }
    .stat-card {
        padding: 12px;
    }
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    .stat-icon svg {
        width: 20px;
        height: 20px;
    }
    .stat-value {
        font-size: 1.25rem;
    }
    .stat-label {
        font-size: 12px;
    }

    /* 小屏幕卡片优化 */
    .service-mobile-list {
        padding: 16px;
        gap: 12px;
    }
    .service-mobile-card {
        padding: 16px;
        border-radius: 12px;
    }
    .service-mobile-name {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    .service-mobile-row {
        padding: 8px 0;
    }
    .service-mobile-label {
        font-size: 12px;
    }
    .service-mobile-price {
        font-size: 15px;
    }
    .service-mobile-range {
        font-size: 13px;
    }
    .service-mobile-detail {
        margin-top: 12px;
        padding: 10px;
        font-size: 13px;
    }
    .category-header {
        padding: 16px;
    }
    .category-header h3 {
        font-size: 1rem;
    }
    .category-count {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* 小屏幕弹窗 */
    .popover-content {
        min-width: 260px;
        max-width: 95vw;
    }
    .popover-inner {
        padding: 16px;
    }
    .popover-title {
        font-size: 14px;
    }
    .popover-body {
        font-size: 12px;
        max-height: 280px;
    }
}
