* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    color: #1d4ed8;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #2563eb;
    gap: 10px;
}

.logo img {
    max-height: 36px;
    max-width: 120px;
}

.search-form {
    display: none;
}

.search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.search-form input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-form button {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #64748b;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.search-form button:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Banner */
.banner {
    position: relative;
    margin-bottom: 20px;
    background: #fff;
    min-height: 120px;
}

.banner-slider {
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.banner-item {
    display: none;
}

.banner-item.active {
    display: block;
}

.banner-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.banner-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
}

.banner-dots span.active {
    background: #fff;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 160px);
    padding: 20px 0 40px;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.category-filter::-webkit-scrollbar {
    display: none;
}

.category-filter a {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-filter a:hover,
.category-filter a.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card .cover {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f1f5f9;
}

.product-card .cover-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 32px;
}

.product-card .info {
    padding: 12px;
}

.product-card .category-tag {
    display: inline-block;
    padding: 2px 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.product-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card .intro {
    display: none;
}

.product-card .price {
    font-size: 18px;
    color: #ef4444;
    font-weight: bold;
}

.product-card .price::before {
    content: '¥';
    font-size: 12px;
}

/* Detail Page */
.product-detail {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

.product-detail .header {
    margin-bottom: 16px;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #f1f5f9;
    color: #2563eb;
    border-color: #2563eb;
}

/* Notice Bar */
.notice-bar {
    background: linear-gradient(90deg, #fef3c7 0%, #fef9c3 100%);
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.notice-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.notice-content span {
    display: inline-block;
    color: #92400e;
    font-size: 14px;
    animation: notice-scroll 20s linear infinite;
    padding-left: 100%;
}

@keyframes notice-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.product-detail h1 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 8px;
}

.product-detail .intro {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.product-detail .meta {
    display: flex;
    gap: 16px;
    color: #94a3b8;
    font-size: 12px;
}

.product-detail .price {
    font-size: 26px;
    color: #ef4444;
    font-weight: bold;
    margin-bottom: 16px;
}

.price-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.price-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.price-option:hover {
    border-color: #2563eb;
}

.price-option .price-name {
    font-size: 14px;
    color: #64748b;
}

.price-option .price-value {
    font-size: 18px;
    color: #ef4444;
    font-weight: bold;
}

.video-box {
    margin-bottom: 16px;
}

.video-box video {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    background: #000;
}

/* Section Title */
.section-title {
    font-size: 18px;
    color: #1e293b;
    margin: 24px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #2563eb;
}

/* Detail Iframe */
.detail-iframe {
    width: 100%;
    min-height: 600px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.detail-iframe iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* Float Contact Button */
.float-contact {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 200;
}

.float-btn {
    width: 50px;
    height: 50px;
    background: #07c160;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.float-qr {
    position: absolute;
    right: 60px;
    bottom: 0;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    width: 180px;
}

.float-qr.show {
    opacity: 1;
    visibility: visible;
}

.float-qr p {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.float-qr img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.float-wechat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.float-wechat span {
    font-size: 14px;
    color: #666;
}

.float-wechat button {
    padding: 4px 10px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.float-wechat button:hover {
    background: #1d4ed8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #64748b;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1.3;
    cursor: pointer;
    z-index: 200;
    transition: transform 0.2s;
    text-align: center;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* Cases List */
.cases-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

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

.case-header h3 {
    font-size: 18px;
    color: #1e293b;
    margin: 0;
}

.case-link-btn {
    padding: 6px 16px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
}

.case-link-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.case-desc {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.case-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.case-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-info-item .label {
    color: #64748b;
    font-size: 14px;
    min-width: 80px;
    flex-shrink: 0;
}

.case-info-item .value-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.case-info-item .value {
    flex: 1;
    color: #1e293b;
    font-size: 14px;
    font-family: monospace;
    padding: 4px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.case-info-item .copy-btn {
    flex-shrink: 0;
    border-radius: 0 4px 4px 0;
}

/* Case Popup */
.case-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
}

.case-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-popup-content {
    width: 90%;
    height: 90%;
    background: #fff;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.case-popup-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.case-popup-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

@media (max-width: 768px) {
    .product-card .intro {
        display: none;
    }
    
    .float-contact {
        right: 16px;
        bottom: 80px;
    }
    
    .header-content {
        flex-wrap: nowrap;
        height: auto;
        padding: 12px 0;
        gap: 10px;
    }
    
    .logo {
        font-size: 16px;
        white-space: nowrap;
    }
    
    .logo img {
        max-height: 28px;
    }
    
    .search-form {
        width: 100%;
        max-width: none;
        margin-left: 0;
        order: 3;
        flex-wrap: nowrap;
    }
    
    .search-form input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-form button {
        padding: 8px 12px;
    }
    
    .back-to-top {
        right: 16px;
        bottom: 150px;
        width: 40px;
        height: 40px;
    }
    
    .float-btn {
        width: 44px;
        height: 44px;
    }
    
    .float-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .float-qr {
        right: 54px;
        width: 160px;
    }
    
    .float-qr img {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 769px) {
    .detail-iframe {
        min-height: 700px;
    }
    .detail-iframe iframe {
        height: 700px;
    }
}

/* Image Viewer */
.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.viewer-prev, .viewer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.viewer-prev { left: 20px; }
.viewer-next { right: 20px; }

.viewer-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
}

@media (max-width: 768px) {
    .viewer-close { top: 10px; right: 15px; font-size: 30px; }
    .viewer-prev, .viewer-next { font-size: 28px; padding: 10px; }
}

.product-detail .price::before {
    content: '¥';
    font-size: 16px;
}

.product-detail .images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.product-detail .images img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.product-detail .content {
    line-height: 1.7;
    color: #475569;
    font-size: 14px;
    overflow: hidden;
}

.product-detail .content * {
    max-width: 100%;
}

.product-detail .content img {
    max-width: 100%;
    height: auto;
}

.product-detail .content img {
    max-width: 100%;
    height: auto;
}

.product-detail .content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.product-detail .content li {
    margin: 4px 0;
}

.contact-box {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.contact-box h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #1e293b;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-size: 15px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.copy-btn {
    margin-left: auto;
    padding: 5px 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #1d4ed8;
}

.contact-box p {
    margin: 4px 0;
    color: #64748b;
    font-size: 13px;
}

.contact-box span {
    color: #334155;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* Search Results */
.search-results {
    margin-bottom: 16px;
    color: #64748b;
    font-size: 14px;
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 24px 0 16px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact h3 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-contact p {
    margin: 6px 0;
    font-size: 13px;
}

.footer-contact span {
    color: #fff;
    margin-right: 6px;
}

.footer-copyright {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #334155;
    font-size: 12px;
}

/* Responsive */
@media (min-width: 769px) {
    .banner-item img {
        height: 300px;
    }

    .header-content {
        height: 70px;
    }

    .logo {
        font-size: 20px;
    }

    .search-form {
        max-width: 500px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .product-card .cover,
    .product-card .cover-placeholder {
        height: 160px;
    }

    .product-card .info {
        padding: 16px;
    }

    .product-card h3 {
        font-size: 15px;
    }

    .product-card .intro {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 42px;
        font-size: 13px;
        margin-bottom: 10px;
    }

    .product-card .price {
        font-size: 20px;
    }

    .product-detail {
        padding: 30px;
    }

    .product-detail h1 {
        font-size: 26px;
    }

    .product-detail .price {
        font-size: 32px;
    }

    .product-detail .images img {
        height: 180px;
    }

    .product-detail .content {
        font-size: 15px;
    }
}

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