* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
}

.app-wrapper {
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
}

/* ========= 顶部导航 ========= */
.top-nav {
    background: #0f172a;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo-area h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
}

.logo-area p {
    font-size: 0.65rem;
    color: #94a3b8;
}

.contact-badge {
    background: rgba(245, 158, 11, 0.15);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #f59e0b;
}

/* ========= Hero 区域 ========= */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 48px 24px 44px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    padding: 5px 14px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 16px;
}

.hero-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 0.9rem;
    color: #cbd5e1;
    max-width: 90%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-section h2 {
        font-size: 2.2rem;
    }
}

/* ========= 平台筛选标签栏 - 横向滑动 ========= */
.platform-tabs-wrapper {
    position: sticky;
    top: 0;
    z-index: 98;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.platform-tabs-wrapper::-webkit-scrollbar {
    height: 3px;
}

.platform-tabs-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.platform-tabs-wrapper::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 10px;
}

.tabs-wrapper {
    display: inline-flex;
    gap: 10px;
}

.tab-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tab-btn i {
    font-size: 0.8rem;
}

.tab-btn.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.tab-count {
    background: #f1f5f9;
    border-radius: 30px;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 4px;
    color: #64748b;
}

.tab-btn.active .tab-count {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* ========= 产品列表区域 ========= */
.products-section {
    padding: 28px 20px 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

.product-count-badge {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    color: #f59e0b;
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #eef2f8;
    overflow: hidden;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
    border-color: #fed7aa;
}

.product-img {
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef9e8, #fff4e6);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.3;
    color: #0f172a;
}

.product-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin: 6px 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 700;
    font-size: 0.8rem;
    color: #f59e0b;
    background: #fef9e8;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 40px;
    margin: 8px 0 6px;
}

.product-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0 12px;
}

.tag {
    background: #f1f5f9;
    font-size: 0.6rem;
    padding: 3px 10px;
    border-radius: 30px;
    color: #475569;
}

.detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0f172a;
    color: white;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    width: 100%;
    border: none;
    cursor: pointer;
}

.detail-btn:hover {
    background: #f59e0b;
}

/* ========= 弹窗模态框样式 ========= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ffffff;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 28px;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-container::-webkit-scrollbar {
    width: 4px;
}

.modal-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 18px 24px;
    border-bottom: 1px solid #eef2f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.2s;
}

.close-modal:hover {
    color: #f59e0b;
}

.modal-body {
    padding: 24px;
}

/* 媒体展示区域 */
.media-gallery {
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    background: #f1f5f9;
}

.main-media {
    width: 100%;
    position: relative;
}

.main-media img,
.main-media video {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.main-media video {
    cursor: default;
}

/* 点击查看大图提示浮层 */
.zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    z-index: 2;
    transition: 0.2s;
}

.main-media:hover .zoom-hint {
    background: rgba(245, 158, 11, 0.85);
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    padding: 12px;
    overflow-x: auto;
    background: #f8fafc;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    transition: 0.2s;
}

.thumbnail.active {
    border-color: #f59e0b;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.modal-price-tag {
    background: #fef9e8;
    color: #f59e0b;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 6px 16px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 16px;
}

.detail-section {
    margin-bottom: 28px;
}

.detail-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #f59e0b;
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    padding: 8px 0;
    color: #475569;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-list li i {
    color: #f59e0b;
    width: 20px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.highlight-card {
    background: #f8fafc;
    padding: 12px;
    border-radius: 16px;
    text-align: center;
}

.highlight-card i {
    font-size: 1.3rem;
    color: #f59e0b;
    margin-bottom: 6px;
    display: block;
}

.highlight-card span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155;
}

/* 案例展示 */
.case-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.case-item {
    width: 100%;
    background: #f8fafc;
    border-radius: 16px;
    padding: 12px;
    transition: 0.2s;
    position: relative;
}

.case-item:hover {
    background: #fef9e8;
    transform: translateY(-2px);
}

.case-item img,
.case-item video {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 12px;
    background: #e2e8f0;
    cursor: pointer;
}

.case-item video {
    cursor: default;
}

.case-item span {
    font-size: 0.8rem;
    color: #334155;
    display: block;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

.case-zoom-icon {
    position: absolute;
    bottom: 28px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.case-item:hover .case-zoom-icon {
    opacity: 1;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 20px;
    margin-top: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    font-size: 1.2rem;
    color: #f59e0b;
}

/* 图片放大查看器 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-viewer.active {
    opacity: 1;
    visibility: visible;
}

.viewer-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1201;
}

.viewer-hint {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}

/* ========= 底部 ========= */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 24px 32px;
    text-align: center;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 20px 0 16px;
}

.footer-contact span {
    font-size: 0.7rem;
}

hr {
    border-color: #334155;
    margin: 20px 0;
}

.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}