        :root {
            --jp-navy: #1b2b34;
            --jp-red: #c8102e; 
            --jp-beige: #f8f4e9;
            --jp-gray: #f0efeb;
            --jp-black: #222222;
            --jp-brown: #8b5a2b;
            --jp-light-gray: #e8e6e0;
            --shadow: 0 2px 8px rgba(0,0,0,0.06);
            --shadow-light: 0 2px 10px rgba(0,0,0,0.05);
            --shadow-medium: 0 5px 15px rgba(0,0,0,0.1);
            --radius: 8px;
            --radius-md: 8px;
            --transition: all 0.4s ease-in-out;
            --primary-navy: #1b2b34;
            --primary-red: #c8102e;
            --primary-green: #4CAF50;
            --border-gray: #e8e6e0;
            --light-gray: #f0efeb;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background-color: var(--jp-beige);
            background-image: url('/images/washi-pattern.png'); /* 改为绝对路径 */
            background-repeat: repeat;
            color: var(--jp-black);
            line-height: 1.6;
            overflow-x: hidden;
            font-family: 'Noto Sans JP', "ヒラギノ角ゴ Pro W3", sans-serif;
            letter-spacing: 0.02em;
            font-size: 15px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .breadcrumb {
            padding: 15px 0;
            font-size: 14px;
            color: #666;
            border-bottom: 1px solid #eee;
            margin-bottom: 20px;
        }
        
        .breadcrumb a {
            color: #8b5a2b;
            text-decoration: none;
        }
        
        .breadcrumb span {
            margin: 0 5px;
            color: #999;
        }
        
        .product-main {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            margin-bottom: 40px;
            align-items: flex-start; 
        }
        
        .product-image {
            flex: 1;
            min-width: 300px;
            max-width: 500px;
            background: white;
            border-radius: var(--radius-md);
            padding: 20px;
            box-shadow: var(--shadow-light);
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 25px; 
        }
        
        .product-image img {
            width: 100%;
            height: auto;
            max-height: 400px;
            border-radius: var(--radius-md);
            object-fit: contain;
        }
        
  
        .image-info-card {
            background: #f8f9fa;
            border-radius: var(--radius-md);
            padding: 25px;
            text-align: left;
            border: 1px solid var(--border-gray);
        }
        
        .image-info-card h4 {
            font-size: 18px;
            color: var(--primary-navy);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--light-gray);
        }
        
        .spec-summary {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 25px;
        }
        
        .spec-summary-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px dashed #eee;
        }
        
        .spec-summary-item .spec-label {
            color: #666;
            font-size: 15px;
            width: 45%;
        }
        
        .spec-summary-item .spec-value {
            font-weight: 500;
            color: var(--primary-navy);
            font-size: 15px;
            width: 55%;
            text-align: right;
        }
        
        .quick-links {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 20px;
        }
        
        .quick-links a {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--primary-navy);
            text-decoration: none;
            font-size: 14px;
            padding: 10px 15px;
            border-radius: var(--radius-md);
            transition: var(--transition);
            background: white;
            border: 1px solid var(--border-gray);
        }
        
        .quick-links a:hover {
            background: var(--primary-navy);
            color: white;
            border-color: var(--primary-navy);
        }
        
        .product-details {
            flex: 2;
            min-width: 300px;
            display: flex;
            flex-direction: column;
            gap: 30px; 
        }
        
        .product-primary-info {
            background: white;
            border-radius: var(--radius-md);
            padding: 30px;
            box-shadow: var(--shadow-light);
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .product-secondary-info {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }
        

        .product-title {
            font-size: 28px;
            font-weight: 600;
            color: var(--primary-navy);
            margin-bottom: 10px;
            font-family: 'Noto Serif JP', serif;
            line-height: 1.3;
        }
        
        .product-full-title {
            font-size: 16px;
            color: #666;
            line-height: 1.5;
        }
        

        .product-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .product-tag {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            color: white;
        }
        

        .trust-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 15px 0;
            border-top: 1px solid var(--border-gray);
            border-bottom: 1px solid var(--border-gray);
        }
        
        .trust-tag {
            background: var(--primary-green);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 13px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .price-area {
            background: #f8f9fa;
            padding: 20px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-gray);
        }
        
        .price-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .original-price {
            font-size: 18px;
            color: #999;
            text-decoration: line-through;
        }
        
        .current-price {
            font-size: 32px;
            font-weight: bold;
            color: var(--primary-red);
        }
        
        .sale-price {
            font-size: 28px;
            font-weight: bold;
            color: var(--primary-red);
        }
        
        .tax-label {
            font-size: 16px;
            color: #666;
        }
        
        .discount-badge {
            background: var(--primary-red);
            color: white;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: bold;
        }
        
        .stock-badge {
            background: <?php echo $product_stock > 0 ? 'var(--primary-green)' : '#FF5252'; ?>;
            color: white;
            padding: 6px 15px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: bold;
        }
        
        .shipping-info {
            color: var(--primary-green);
            font-weight: 500;
            font-size: 16px;
            margin-top: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .product-base-info {
            background: #f8f9fa;
            padding: 20px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-gray);
        }
        
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }
        
        .info-item {
            display: flex;
            flex-direction: column;
        }
        
        .info-label {
            font-size: 13px;
            color: #999;
            margin-bottom: 4px;
        }
        
        .info-value {
            font-weight: 500;
            color: var(--primary-navy);
            font-size: 15px;
        }
        
        .rating-section {
            background: white;
            padding: 25px;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-light);
            margin-top: 20px; 
        }
        
        .rating-header {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }
        
        .rating-overall {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .rating-value {
            font-size: 48px;
            font-weight: bold;
            color: #FF9800;
            line-height: 1;
        }
        
        .rating-stars {
            color: #FF9800;
            font-size: 20px;
            margin: 10px 0;
        }
        
        .rating-count {
            color: #666;
            font-size: 14px;
        }
        
        .rating-breakdown {
            flex: 1;
        }
        
        .rating-bar {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .rating-label {
            width: 30px;
            font-size: 14px;
        }
        
        .rating-progress {
            flex: 1;
            height: 8px;
            background: #eee;
            border-radius: 4px;
            margin: 0 10px;
            overflow: hidden;
        }
        
        .rating-progress-bar {
            height: 100%;
            background: #FF9800;
        }
        
        .rating-percent {
            width: 40px;
            font-size: 14px;
            text-align: right;
            color: #666;
        }
        
        .specs-box {
            background: white;
            padding: 25px;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-light);
            display: none; 
        }
        
        .specs-box h3 {
            font-size: 20px;
            color: var(--primary-navy);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--light-gray);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .specs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
        }
        
        .spec-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px dashed #eee;
        }
        
        .spec-label {
            color: #666;
            font-size: 15px;
        }
        
        .spec-value {
            font-weight: 500;
            color: var(--primary-navy);
            font-size: 15px;
        }
        
        .buy-box {
            background: white;
            padding: 25px;
            border-radius: var(--radius-md);
            border: 2px solid var(--primary-red);
            box-shadow: var(--shadow-light);
        }
        
        .quantity-selector {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
        }
        
        .quantity-label {
            font-weight: 500;
            font-size: 16px;
            color: var(--primary-navy);
        }
        
        .quantity-control {
            display: flex;
            align-items: center;
        }
        
        .qty-btn {
            width: 36px;
            height: 36px;
            background: #f0f0f0;
            border: none;
            border-radius: 6px;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }
        
        .qty-btn:hover {
            background: var(--primary-navy);
            color: white;
        }
        
        .qty-input {
            width: 60px;
            height: 36px;
            text-align: center;
            border: 1px solid #ddd;
            border-radius: 6px;
            margin: 0 5px;
            font-size: 16px;
        }
        
        .action-buttons {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .btn-cart {
            padding: 16px;
            background: var(--primary-red);
            color: white;
            border: none;
            border-radius: var(--radius-md);
            font-size: 18px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: var(--transition);
        }
        
        .btn-cart:hover {
            background: #a80e27;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
        }
        
        .btn-cart:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .btn-buy {
            padding: 16px;
            background: var(--primary-navy);
            color: white;
            border: none;
            border-radius: var(--radius-md);
            font-size: 18px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: var(--transition);
        }
        
        .btn-buy:hover {
            background: #2c3e50;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(27, 43, 52, 0.3);
        }
        
        .btn-buy:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .guarantee-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .guarantee-item {
            background: white;
            padding: 25px;
            border-radius: var(--radius-md);
            text-align: center;
            box-shadow: var(--shadow-light);
            transition: var(--transition);
        }
        
        .guarantee-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-medium);
        }
        
        .guarantee-icon {
            font-size: 40px;
            color: var(--primary-green);
            margin-bottom: 15px;
        }
        
        .guarantee-title {
            font-size: 18px;
            color: var(--primary-navy);
            margin-bottom: 10px;
            font-weight: 500;
        }
        
        .guarantee-desc {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
        }
        
        .faq-section {
            background: white;
            padding: 30px;
            border-radius: var(--radius-md);
            margin-bottom: 40px;
            box-shadow: var(--shadow-light);
        }
        
        .faq-title {
            font-size: 24px;
            color: var(--primary-navy);
            margin-bottom: 25px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary-red);
            font-family: 'Noto Serif JP', serif;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .faq-item {
            border: 1px solid #eee;
            border-radius: var(--radius-md);
            margin-bottom: 15px;
            overflow: hidden;
            transition: var(--transition);
        }
        
        .faq-item:hover {
            border-color: var(--primary-green);
        }
        
        .faq-question {
            padding: 18px 20px;
            background: #f8f9fa;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition);
        }
        
        .faq-question:hover {
            background: #f0f0f0;
        }
        
        .faq-answer {
            padding: 20px;
            display: none;
            line-height: 1.7;
            background: white;
        }
        
        .faq-answer.active {
            display: block;
        }
        
        .faq-answer ul {
            margin-left: 20px;
            margin-top: 10px;
        }
        
        .faq-answer li {
            margin-bottom: 8px;
        }
        
        .tabs-section {
            margin-bottom: 50px;
        }
        
        .tab-buttons {
            display: flex;
            background: #f5f5f5;
            border-radius: var(--radius-md) var(--radius-md) 0 0;
            overflow: hidden;
        }
        
        .tab-btn {
            padding: 18px 30px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            flex: 1;
            text-align: center;
            transition: var(--transition);
        }
        
        .tab-btn:hover {
            background: #e0e0e0;
        }
        
        .tab-btn.active {
            background: white;
            color: var(--primary-red);
            border-bottom: 3px solid var(--primary-red);
        }
        
        .tab-content {
            background: white;
            padding: 30px;
            border-radius: 0 0 var(--radius-md) var(--radius-md);
            box-shadow: var(--shadow-light);
        }
        
        .tab-content.hidden {
            display: none;
        }
        
        .business-cooperation {
            background: #e8f4f8;
            border: 2px solid #006699;
            border-radius: var(--radius-md);
            padding: 35px;
            margin-bottom: 50px;
            box-shadow: var(--shadow-light);
        }
        
        .cooperation-title {
            font-size: 24px;
            color: #006699;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #b3d9e8;
            font-family: 'Noto Serif JP', serif;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .cooperation-content {
            font-size: 16px;
            line-height: 1.8;
            color: #333;
            margin-bottom: 20px;
        }
        
        .cooperation-highlight {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
            border-left: 4px solid #ff8a00;
        }
        
        .cooperation-contact {
            background: #f0f8fc;
            padding: 20px;
            border-radius: 8px;
            margin-top: 25px;
        }
        
        .cooperation-contact p {
            margin-bottom: 10px;
            font-size: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .cooperation-contact a {
            color: #006699;
            text-decoration: underline;
            font-weight: 500;
        }
        
        .cooperation-contact a:hover {
            color: #004c70;
        }
        
        /* ===== 相关产品样式 ===== */
        .related-products {
            margin-bottom: 50px;
        }
        
        .section-title {
            font-size: 28px;
            text-align: center;
            margin-bottom: 30px;
            color: var(--primary-navy);
            font-family: 'Noto Serif JP', serif;
        }
        
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
        }
        
        .product-card {
            background: white;
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-light);
            transition: var(--transition);
            border: 1px solid var(--border-gray);
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-medium);
        }
        
        .product-card img {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        
        .product-card-content {
            padding: 20px;
        }
        
        .product-card-title {
            font-size: 16px;
            margin-bottom: 10px;
            font-weight: 500;
            line-height: 1.4;
        }
        
        .product-card-title a {
            color: var(--primary-navy);
            text-decoration: none;
        }
        
        .product-card-title a:hover {
            color: var(--primary-red);
        }
        
        .product-card-price {
            font-size: 20px;
            font-weight: bold;
            color: var(--primary-red);
        }
        
        .product-card-sale-price {
            font-size: 18px;
            color: var(--primary-red);
            font-weight: bold;
        }
        
        .product-card-original-price {
            font-size: 14px;
            color: #999;
            text-decoration: line-through;
            margin-left: 8px;
        }
        
        .alert {
            padding: 15px 20px;
            border-radius: var(--radius-md);
            margin: 15px 0;
            font-size: 16px;
        }
        
        .alert-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        @media (max-width: 1200px) {
            .container {
                padding: 0 30px;
            }
        }
        
        @media (max-width: 992px) {
            .product-main {
                gap: 30px;
            }
            
            .product-image {
                max-width: 100%;
            }
            
            .specs-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .guarantee-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .business-cooperation {
                padding: 25px;
            }
        }
        
        @media (max-width: 768px) {
            .product-main {
                flex-direction: column;
                gap: 20px;
            }
            
            .product-image {
                order: 1;
            }
            
            .product-details {
                order: 2;
            }
            
            .specs-grid {
                grid-template-columns: 1fr;
            }
            
            .guarantee-grid {
                grid-template-columns: 1fr;
            }
            
            .rating-header {
                flex-direction: column;
                gap: 20px;
            }
            
            .product-primary-info,
            .specs-box,
            .rating-section,
            .guarantee-item {
                padding: 20px;
            }
            
            .product-title {
                font-size: 24px;
            }
            
            .business-cooperation {
                padding: 20px;
            }
            
            .cooperation-title {
                font-size: 20px;
            }
        }
        
        @media (max-width: 576px) {
            .container {
                padding: 0 20px;
            }
            
            .product-title {
                font-size: 22px;
            }
            
            .current-price, .sale-price {
                font-size: 24px;
            }
            
            .info-grid {
                grid-template-columns: 1fr;
            }
            
            .price-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .business-cooperation {
                padding: 15px;
            }
        }