:root {
    --primary: #1a73e8;
    --primary-light: #e8f0fe;
    --primary-dark: #1557b0;
    --accent: #00bcd4;
    --bg-light: #f8f9fc;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --card-hover-shadow: 0 4px 16px rgba(26,115,232,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    background: #fff;
}

/* Navbar */
.navbar-brand { font-size: 1.3rem; }
.nav-link { font-size: 0.95rem; color: #333 !important; }
.nav-link:hover { color: var(--primary) !important; }

/* Banner / Carousel */
.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 2rem 0;
    margin-bottom: 0;
}
.hero-banner .carousel-item img {
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
}
.carousel-caption {
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 12px 20px !important;
    bottom: 20px !important;
}

/* Section */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin-bottom: 1.2rem;
}
.section-title a {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 400;
}

/* Product Card */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
    border-color: var(--primary);
}
.product-card .card-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-light);
}
.product-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}
.product-card .card-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.5em;
}
.product-card .card-brand {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.product-card .card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #e53935;
    margin-top: auto;
}
.product-card .card-price .inquiry {
    color: var(--primary);
    font-size: 0.85rem;
}
.product-card .card-specs {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}
.category-tag i {
    margin-right: 8px;
    color: var(--primary);
    font-size: 1.1rem;
}
.category-tag:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Brand Tags */
.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.brand-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.brand-tag:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}
.brand-tag img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
}

/* Filter Bar */
.filter-bar {
    background: var(--bg-light);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.filter-bar .filter-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.filter-bar select, .filter-bar input {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Product Detail */
.product-detail .product-gallery {
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-light);
}
.product-detail .product-gallery img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
}
.product-detail .product-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
}
.product-detail .product-info .info-row {
    display: flex;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.product-detail .product-info .info-label {
    width: 80px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.product-detail .product-info .info-value {
    flex: 1;
}
.product-detail .price-display {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e53935;
}

/* Contact Form */
.contact-form {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    font-size: 0.85rem;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    padding: 8px 0;
    margin-bottom: 1rem;
}

/* Latest badge */
.badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}
.badge-recommend {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff9800;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* Video container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.video-container video, .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    .hero-banner .carousel-item img { height: 200px; }
    .product-card .card-img-wrapper { height: 140px; }
    .section-title { font-size: 1.15rem; }
}

/* Disclaimer Box */
.disclaimer-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: #6d4c00;
    line-height: 1.6;
}
.disclaimer-box i { color: #f9a825; }

/* Footer Legal */
.footer-legal p {
    line-height: 1.6;
}

/* Privacy Hint */
.privacy-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}
.privacy-hint a {
    color: var(--primary);
    text-decoration: underline;
}

/* Legal Page Content */
.legal-page h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.legal-page h2:first-child {
    margin-top: 0;
}
.legal-page p, .legal-page li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
}
.legal-page ul {
    padding-left: 1.5rem;
}
.legal-page ul li {
    margin-bottom: 0.5rem;
}
.legal-page .highlight-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}
