/* 基础重置和通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* 头部导航 */
.header {
    background: #2c3e50;
    color: white;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    font-size: 2rem;
    color: #3498db;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3498db;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.header-actions i {
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-actions i:hover {
    color: #3498db;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 主横幅 */
.hero {
    background: #34495e;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.hero-image {
    margin-top: 30px;
    opacity: 0.2;
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

/* 分类导航 */
.categories {
    padding: 60px 0;
    background: white;
}

.categories h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.category-item {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.category-item i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.category-item:hover i {
    color: #2980b9;
}

.category-item span {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

/* 商品列表 */
.products {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.filter-tab {
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab.active,
.filter-tab:hover {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 40px;
    text-align: center;
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.service {
    background: #e74c3c;
    color: white;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.product-features span {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-price {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.current-price {
    color: #27ae60;
    font-size: 1.5rem;
    font-weight: 700;
}

/* 产品详情按钮 */
.detail-button {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* 特色服务 */
.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: #ecf0f1;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social i {
    font-size: 1.5rem;
    color: #bdc3c7;
    cursor: pointer;
    transition: color 0.3s ease;
}

.social i:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 购物车侧边栏 */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #999;
    margin-top: 50px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.checkout-button {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-button:hover {
    background: #2980b9;
}

/* 购买确认弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 20px;
}

.product-summary {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.payment-methods h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 2px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover,
.payment-option:has(input:checked) {
    border-color: #3498db;
    background: #ecf0f1;
}

.payment-option i {
    font-size: 1.5rem;
    color: #3498db;
}

/* 单一支付方式样式 */
.payment-option.single-payment {
    background: #e8f5e8;
    border: 2px solid #27ae60;
    color: #27ae60;
    font-weight: 600;
    cursor: default;
    position: relative;
}

.payment-option.single-payment:hover {
    background: #e8f5e8;
    border-color: #27ae60;
    transform: none;
}

.payment-option.single-payment i {
    color: #27ae60;
    font-size: 1.4rem;
}

.payment-option.single-payment::after {
    content: '✓';
    position: absolute;
    right: 15px;
    font-size: 1.2rem;
    color: #27ae60;
    font-weight: bold;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.btn-secondary {
    flex: 1;
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-primary {
    flex: 2;
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2980b9;
}

/* 购物车商品项 */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #3498db;
    font-weight: 600;
}

.remove-item {
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: #e74c3c;
}

/* 详情模态窗口 */
.detail-content {
    line-height: 1.8;
}

.detail-content h4 {
    color: #2c3e50;
    margin: 15px 0 10px 0;
    font-size: 1.1rem;
}

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

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

.detail-content .highlight {
    background: #e8f4fd;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin: 15px 0;
    border-radius: 4px;
}

/* SDS选择模态窗口 */
.choice-content h4 {
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.choice-options {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.choice-option {
    flex: 1;
    cursor: pointer;
}

.choice-option input[type="radio"] {
    display: none;
}

.choice-card {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.choice-option:hover .choice-card,
.choice-option input:checked + .choice-card {
    border-color: #3498db;
    background: #e8f4fd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.choice-card i {
    color: #3498db;
    margin-bottom: 15px;
}

.choice-card h5 {
    color: #2c3e50;
    margin: 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.choice-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        display: none;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-item {
        padding: 20px 15px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .detail-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-footer {
        padding: 30px 0 15px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .filter-tab {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* 详情页面响应式 */
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-hero {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .detail-hero-info h2 {
        font-size: 1.5rem;
    }
    
    .detail-content-section {
        padding: 20px;
    }
    
    .scale-preview-card {
        padding: 20px;
        margin-top: 15px;
    }
    
    .scale-preview-card h4 {
        font-size: 1.1rem;
    }
    
    .detail-content-section h3 {
        font-size: 1.2rem;
    }
    
    .price-card {
        padding: 20px;
    }
    
    .price-value {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .detail-page-header {
        padding: 15px 0;
        top: 60px; /* 调整移动端的头部位置 */
    }
    
    .back-button {
        font-size: 0.9rem;
    }
    
    .detail-page-content {
        margin-top: 120px; /* 移动端调整内容边距 */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-item {
        padding: 25px 20px;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .product-features {
        flex-direction: column;
        gap: 5px;
    }
    
    .product-features span {
        font-size: 0.75rem;
    }
    
    .detail-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .detail-footer {
        padding: 20px 0 10px;
    }
    
    .scale-preview-card {
        padding: 15px;
        margin-top: 15px;
    }
    
    .scale-preview-card h4 {
        font-size: 1rem;
    }
}

/* 隐藏/显示动画 */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

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

/* 加载状态 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 隐藏购物车功能（现在都是直接购买） */
.cart-count, .cart-sidebar {
    display: none !important;
}

.header-actions {
    display: none !important;
}

/* 独立详情页面 */
.detail-page {
    display: none;
    flex: 1;
    background: #f8f9fa;
    position: relative;
    z-index: 1;
}

.detail-page.active {
    display: flex;
    flex-direction: column;
}

/* 主内容区域 */
.main-content {
    flex: 1;
}

/* 隐藏主页面内容 */
.main-content.hidden {
    display: none;
}

/* 确保页脚始终在底部 */
.footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* 主页面页脚由JavaScript动态控制显示隐藏 */

/* 详情页面页脚 */
.detail-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

.detail-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.detail-footer .footer-section h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-footer .footer-section ul {
    list-style: none;
}

.detail-footer .footer-section ul li {
    margin: 8px 0;
}

.detail-footer .footer-section ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-footer .footer-section ul li a:hover {
    color: #3498db;
}

.detail-footer .footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin: 8px 0;
}

.detail-footer .social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.detail-footer .social i {
    font-size: 1.5rem;
    color: #bdc3c7;
    cursor: pointer;
    transition: color 0.3s ease;
}

.detail-footer .social i:hover {
    color: #3498db;
}

.detail-footer .footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
}

/* 详情页面头部 */
.detail-page-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.back-button {
    background: #3498db;
    border: 2px solid #3498db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.back-button:hover {
    background: #2980b9;
    border-color: #2980b9;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.3);
    transform: translateY(-1px);
}

/* 已删除详情页面标题样式 */

/* 详情页面内容 */
.detail-page-content {
    flex: 1;
    padding: 40px 0 60px 0;
    margin-top: 140px; /* 为固定头部留出空间 */
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* 详情主要内容 */
.detail-main {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.detail-hero {
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 30px;
}

.detail-hero-icon {
    background: rgba(255,255,255,0.2);
    padding: 30px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.detail-hero-icon i {
    display: block;
}

.detail-hero-info h2 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.detail-hero-info p {
    font-size: 1.1rem;
    margin: 0 0 20px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.detail-hero-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.detail-hero-features span {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

/* 量表预览卡片 */
.scale-preview-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.scale-preview-card h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.scale-preview-image {
    text-align: center;
    position: relative;
}

.scale-preview-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
}

.preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    color: #7f8c8d;
}

.preview-loading i {
    font-size: 1.5rem;
    color: #3498db;
}

.preview-loading span {
    font-size: 0.9rem;
}

/* 详情内容区 */
.detail-content-section {
    padding: 40px;
}

.detail-content-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.detail-content-section h3:first-child {
    margin-top: 0;
}

.detail-content-section p {
    line-height: 1.8;
    color: #555;
    margin: 15px 0;
}

.detail-content-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.detail-content-section li {
    margin: 8px 0;
    line-height: 1.6;
    color: #555;
}

.detail-highlight {
    background: #e8f4fd;
    padding: 20px;
    border-left: 4px solid #3498db;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.detail-highlight strong {
    color: #2c3e50;
}

/* 详情侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid #3498db;
}

.price-info {
    text-align: center;
    margin-bottom: 25px;
}

.price-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.price-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e74c3c;
}

.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.purchase-btn {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.purchase-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.purchase-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.service-card h4 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #555;
    font-size: 0.9rem;
}

.service-card li i {
    color: #27ae60;
    font-size: 0.8rem;
}

/* 下载消息样式 */
.download-message .message-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-message .message-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.download-button:hover {
    background: white;
    color: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.download-button i {
    font-size: 1rem;
}

/* 固定下载面板 */
.download-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 2px solid #27ae60;
    z-index: 3000;
    transform: translateX(100%);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.download-panel.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.download-panel-header {
    background: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-panel-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-download-panel {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-download-panel:hover {
    background: rgba(255,255,255,0.2);
}

.download-panel-content {
    padding: 20px;
    max-height: 320px;
    overflow-y: auto;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #27ae60;
}

.download-item:last-child {
    margin-bottom: 0;
}

.download-item-info {
    flex: 1;
}

.download-item-info h5 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.download-item-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.download-item-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.download-item-button:hover {
    background: #219a52;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-panel {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}