/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页横幅样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-icons i {
    font-size: 4rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.tech-icons i:nth-child(2) {
    animation-delay: 0.5s;
}

.tech-icons i:nth-child(3) {
    animation-delay: 1s;
}

.tech-icons i:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 通用区块样式 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* 关于我们样式 */
.about {
    padding: 5rem 0;
    background: #f8fafc;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
    line-height: 1.8;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-item i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.advantage-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.advantage-item p {
    color: #6b7280;
}

/* 服务项目样式 */
.services {
    padding: 5rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.service-card li {
    padding: 0.5rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* 技术栈样式 */
.tech-stack {
    padding: 5rem 0;
    background: #f8fafc;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.tech-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tech-item {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: #2563eb;
    font-weight: 500;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* 联系我们样式 */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    font-size: 2rem;
    color: #2563eb;
    margin-right: 1.5rem;
    width: 50px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.contact-item p {
    color: #6b7280;
}

.contact-form {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚样式 */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #f9fafb;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: #2563eb;
}

.footer-section li i {
    margin-right: 0.5rem;
    color: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 产品展示样式 */
.products {
    padding: 5rem 0;
    background: #f8fafc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.product-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

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

.original-price {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 产品详情页面样式 */
.product-detail {
    padding: 1rem 0 2rem;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.product-breadcrumb {
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

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

.product-breadcrumb a:hover {
    text-decoration: underline;
}

.product-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-main-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.product-description {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-price-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.original-price {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-features h3,
.product-specifications h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.product-features ul {
    list-style: none;
    margin-bottom: 1rem;
}

.product-features li {
    padding: 0.25rem 0;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.product-features li i {
    color: #10b981;
    font-size: 0.8rem;
}

.product-specifications table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-specifications td {
    padding: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.product-specifications td:first-child {
    font-weight: 600;
    color: #374151;
    width: 30%;
}

.purchase-section {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-selector label {
    font-weight: 600;
    color: #374151;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: #f3f4f6;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #e5e7eb;
}

#quantity {
    border: none;
    padding: 0.5rem;
    text-align: center;
    width: 60px;
    font-weight: 600;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 1% auto;
    padding: 0;
    border-radius: 15px;
    width: 95%;
    max-width: 700px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* 天猫风格样式 */
.modal-content.tmall-style {
    max-width: 600px;
    border-radius: 8px;
}

.modal-content.tmall-style .modal-body {
    padding: 0.75rem;
}

/* 店铺信息 */
.store-info {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    border-left: 3px solid #ff6900;
}

.store-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #333;
}

.store-name i {
    color: #ff6900;
}

/* 商品订单信息 */
.product-order-info {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fafafa;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.product-image-small {
    flex-shrink: 0;
}

.product-image-small img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.product-details {
    flex: 1;
    min-width: 0;
}

.product-title-small {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.product-specs {
    margin-bottom: 0.25rem;
}

.spec-item {
    font-size: 0.8rem;
    color: #666;
    margin-right: 0.5rem;
}

.quantity-info {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

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

.current-price-small {
    font-size: 1rem;
    font-weight: 600;
    color: #e74c3c;
}

.discount-info {
    font-size: 0.75rem;
    color: #e74c3c;
    background: #ffeaea;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
}

.shipping-info {
    font-size: 0.75rem;
    color: #27ae60;
}

/* 优惠信息 */
.discount-section {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.discount-item,
.shipping-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.discount-amount {
    color: #e74c3c;
    font-weight: 600;
}

.cost {
    color: #27ae60;
    font-weight: 600;
}

.delivery-time {
    font-size: 0.75rem;
    color: #27ae60;
    text-align: center;
    margin-top: 0.25rem;
}

/* 订单总计 */
.order-summary-compact {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 买家信息紧凑版 */
.buyer-info-compact h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.25rem;
}

.compact-form {
    margin-top: 0.5rem;
}

.form-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-group-half {
    flex: 1;
}

.form-group-full {
    width: 100%;
    margin-bottom: 0.5rem;
}

.compact-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
}

.compact-form input,
.compact-form textarea {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: border-color 0.3s ease;
}

.compact-form input:focus,
.compact-form textarea:focus {
    outline: none;
    border-color: #ff6900;
}

/* 最终付款 */
.final-payment {
    background: #fff5f5;
    border: 1px solid #ff6900;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.payment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.payment-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.payment-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
}

.payment-address,
.recipient-info {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

/* 提交按钮 */
.btn-submit {
    background: #e74c3c;
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #c0392b;
}

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

.modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.3rem;
}

.close {
    color: #9ca3af;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #374151;
}

.modal-body {
    padding: 1rem 1.5rem;
}

.order-summary {
    margin-bottom: 1rem;
}

.order-summary h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.item-info img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.item-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #1f2937;
}

.item-info p {
    margin: 0.1rem 0 0 0;
    color: #6b7280;
    font-size: 0.8rem;
}

.item-price {
    font-size: 1rem;
    font-weight: 600;
    color: #ef4444;
}

.order-total {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.total-row.final-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ef4444;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.discount-amount {
    color: #10b981;
}

.buyer-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.buyer-info .form-group {
    margin-bottom: 0.75rem;
}

.buyer-info label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.buyer-info input,
.buyer-info textarea {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.buyer-info input:focus,
.buyer-info textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 0 0 15px 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-main-image img {
        height: 150px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 98vh;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .item-info {
        width: 100%;
    }
    
    .modal-footer {
        flex-direction: column;
        padding: 0.75rem;
    }
    
    .buyer-info .form-group {
        margin-bottom: 0.5rem;
    }
    
    .buyer-info input,
    .buyer-info textarea {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
    
    /* 天猫风格移动端优化 */
    .modal-content.tmall-style {
        max-width: 95%;
        margin: 1% auto;
    }
    
    .product-order-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-image-small {
        align-self: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .form-group-half {
        width: 100%;
    }
    
    .price-info {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .discount-info {
        font-size: 0.7rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

