/* DroneMall 样式文件 - 完全还原原网站 */

/* 基础重置和字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Montserrat';
    src: url('https://ext.same-assets.com/1125398029/1783529701.woff2') format('woff2'),
         url('https://ext.same-assets.com/1125398029/1546720193.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'eicons';
    src: url('https://ext.same-assets.com/1125398029/1043231556.woff2') format('woff2'),
         url('https://ext.same-assets.com/1125398029/1095816285.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Font Awesome';
    src: url('https://ext.same-assets.com/1125398029/3206897458.woff2') format('woff2'),
         url('https://ext.same-assets.com/1125398029/3982532339.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #2b2b2b;
    overflow-x: hidden;
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(43, 43, 43, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: #ff8c00;
}

.nav-menu a.cart-link {
    color: #ff8c00;
}

.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.header-icons a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}


.header-icons a:hover {
    color: #ff8c00;
}

/* 主内容区 */
.main-content {
    margin-top: 70px;
    min-height: 100vh;
}

/* Hero 轮播区 */
.hero-section {
    position: relative;
    height: 360px;
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 120px;
    font-weight: 900;
    color: rgb(171 23 23 / 10%);
    letter-spacing: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
}

.hero-drone-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    height: auto;
}

.hero-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

/* 轮播导航点 */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    right: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: #fff;
}

/* 侧边文字 */
.hero-side-text {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 商品展示区 */
.products-section {
    padding: 80px 0;
    background: #2b2b2b;
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 60px;
    letter-spacing: 3px;
    white-space: nowrap;
}

.section-title span {
    color: #fff;
    font-weight: 600;
}

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

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

/* 商品卡片 */
.product-card {
    background: #333;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.product-image-container {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    overflow: hidden;
}

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

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

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff8c00;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.product-title:hover {
    color: #ff8c00;
}

.product-prices {
    margin-bottom: 20px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-right: 10px;
}

.sale-price {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

/* 按钮容器 */
.product-buttons {
    display: flex;
    gap: 10px;
}

.add-to-cart-btn {
    flex: 1;
    padding: 12px 20px;
    background: #ff8c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* 移除点击高亮 */
    touch-action: manipulation; /* 优化触摸响应 */
}

/* 仅在非触摸设备上应用hover效果 */
@media (hover: hover) and (pointer: fine) {
    .add-to-cart-btn:hover {
        background: #ff6b00;
    }
}

/* 移动设备使用active状态 */
.add-to-cart-btn:active {
    background: #ff6b00;
    transform: scale(0.98);
}

.buy-now-btn {
    flex: 1;
    padding: 12px 20px;
    background: #4CAF50;
    color: #fff;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* 移除点击高亮 */
    touch-action: manipulation; /* 优化触摸响应 */
}

/* 仅在非触摸设备上应用hover效果 */
@media (hover: hover) and (pointer: fine) {
    .buy-now-btn:hover {
        background: #053106;
        color: #fff;
    }
}

/* 移动设备使用active状态代替hover */
.buy-now-btn:active {
    background: #053106;
    color: #fff;
    transform: scale(0.98);
}

.quick-view {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 50px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 12px;
}

.product-card:hover .quick-view {
    opacity: 1;
}


/* 主要内容区域的联系方式 */
.main-contact-center {
    text-align: center;
    padding: 40px 0;
    width: 100%;
    grid-column: 1 / -1; /* 在grid布局中占满整行 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-contact-title {
    color: #ff4444;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.main-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 2px solid transparent;
    min-width: 130px;
}

.main-contact-btn img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.main-contact-btn span {
    color: white;
    font-size: 14px;
}

.main-contact-btn.telegram {
    background: #0088cc;
    color: white;
}

.main-contact-btn.telegram:hover {
    background: #006699;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.main-contact-btn.whatsapp {
    background: #25d366;
    color: white;
}

.main-contact-btn.whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .main-contact-center {
        padding: 30px 15px;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        grid-column: 1 / -1; /* 在grid布局中占满整行 */
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .main-contact-title {
        font-size: 16px;
        margin-bottom: 15px;
        letter-spacing: 0.5px;
        text-align: center;
        width: 100%;
    }
    
    .main-contact-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .main-contact-btn {
        padding: 9px 15px;
        font-size: 12px;
        min-width: 110px;
        flex: 0 0 auto;
    }
    
    .main-contact-btn img {
        width: 14px;
        height: 14px;
        margin-right: 5px;
    }
    
    .main-contact-btn span {
        font-size: 12px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .main-contact-center {
        padding: 25px 10px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        grid-column: 1 / -1; /* 在grid布局中占满整行 */
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .main-contact-title {
        font-size: 14px;
        margin-bottom: 12px;
        width: 100%;
        text-align: center;
    }
    
    .main-contact-buttons {
        gap: 8px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .main-contact-btn {
        padding: 8px 12px;
        font-size: 11px;
        min-width: 100px;
        flex: 0 0 auto;
    }
    
    .main-contact-btn img {
        width: 12px;
        height: 12px;
        margin-right: 4px;
    }
    
    .main-contact-btn span {
        font-size: 11px;
    }
}


/* 主页脚样式 */
.main-footer {
    background: #1a1a1a;
    color: #999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

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

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

.footer-column {
    min-width: 200px;
}

.footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 2px 0;
}

.footer-links a:hover {
    color: #ff8c00;
}

/* 联系信息样式 */
.contact-info {
    margin-bottom: 25px;
}

.contact-item {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-label {
    display: block;
    color: #ccc;
    margin-bottom: 4px;
}

.contact-item a {
    color: #ff8c00;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* 社交媒体样式 */
.social-media {
    margin-top: 25px;
}

.social-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    color: #999;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-icon {
    font-size: 18px;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.social-link:hover {
    background: #ff8c00;
    color: #fff;
    transform: translateY(-2px);
}

.social-link:hover .social-icon {
    filter: grayscale(0);
}

.social-link.facebook:hover { background: #3b5998; }
.social-link.twitter:hover { background: #1da1f2; }
.social-link.instagram:hover { background: #e1306c; }
.social-link.youtube:hover { background: #ff0000; }
.social-link.telegram:hover { background: #0088cc; }

/* 页脚底部样式 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.footer-bottom-content {
    text-align: center;
}

.copyright {
    color: #999;
    font-size: 14px;
}

.payment-security {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-label {
    color: #ccc;
    font-size: 14px;
    white-space: nowrap;
}

.payment-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.payment-icon {
    height: 24px;
    width: auto;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.payment-icon:hover {
    filter: brightness(1);
}

.security-badges {
    display: flex;
    gap: 15px;
    align-items: center;
}

.security-text,
.verified-text {
    color: #28a745;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        padding: 30px 0 20px;
    }
    
    .footer-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .payment-security {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* 手机端布局选择 - 您可以选择以下其中一种布局 */

/* 选项1: 两列布局 (推荐) */
@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 25px 0 15px;
    }
}

/* 选项2: 三列布局 (如果您想尝试三列，请删除上面的两列CSS，并启用下面的CSS) */
/*
@media (max-width: 480px) {
    .footer-container {
        padding: 0 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
        padding: 25px 0 15px;
    }
    
    .footer-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .footer-links a {
        font-size: 11px;
    }
    
    .footer-links li {
        margin-bottom: 6px;
    }
    
    .contact-item {
        font-size: 11px;
    }
    
    .social-title {
        font-size: 11px;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .social-icon {
        font-size: 12px;
    }
}
*/

/* 两列布局的继续样式 */
@media (max-width: 480px) {
    .footer-column {
        min-width: unset;
    }
    
    .footer-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .footer-links a {
        font-size: 12px;
        padding: 1px 0;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .contact-info {
        margin-bottom: 20px;
    }
    
    .contact-item {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .social-media {
        margin-top: 15px;
    }
    
    .social-title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .social-links {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .social-icon {
        font-size: 14px;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .payment-icons {
        justify-content: center;
    }
}

/* 超小屏幕布局 - 如果觉得两列太挤可以用这个 */
@media (max-width: 360px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* 消息提示样式 */
.message {
    position: fixed;
    z-index: 10000;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    pointer-events: none;
}

.message-success {
    background: #28a745;
    color: white;
}

.message-error {
    background: #dc3545;
    color: white;
}

.message-warning {
    background: #ffc107;
    color: #212529;
}

.message-info {
    background: #17a2b8;
    color: white;
}

/* 桌面端消息样式 */
@media (min-width: 769px) {
    .message {
        top: 100px;
        right: 20px;
        padding: 15px 20px;
        border-radius: 4px;
        white-space: nowrap;
    }
}

/* 移动端消息样式 */
@media (max-width: 768px) {
    .message {
        bottom: 80px;
        left: 15px;
        right: 15px;
        padding: 12px 16px;
        font-size: 14px;
        text-align: center;
        border-radius: 8px;
        margin: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
        min-width: 0;
    }
    .logo {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nav-accessories {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin: 0 6px;
    }
    .header-icons {
        gap: 8px;
        font-size: 16px;
        max-width: 90px;
    }
    .header-icons a {
        font-size: 16px;
    }

    .nav-menu {
        gap: 20px;
    }

    .hero-title {
        font-size: 60px;
        letter-spacing: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-side-text {
        display: none;
    }

    .carousel-dots {
        right: 20px;
    }

    .hero-section {
        height: 220px;
    }
}

/* 购物车和结算页面样式 */
.page-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
}

/* 不同页面的背景图 - 使用日落海景和无人机背景 */
.cart-header {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.checkout-header {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.account-header {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.header-drone {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: auto;
    opacity: 0.8;
}

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

.page-header h1 {
    font-size: 72px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.breadcrumb {
    color: #fff;
    font-size: 16px;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ff8c00;
}

/* 表单样式 */
.form-section {
    background: #fff;
    padding: 60px 0;
    color: #333;
}

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

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

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

.error {
    border-color: #e74c3c !important;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

/* 订单摘要 */
.order-summary {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
}

.order-summary h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.order-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
}

.order-total {
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* 按钮样式 */
.btn {
    padding: 12px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ff8c00;
    color: #fff;
}

.btn-primary:hover {
    background: #e67e00;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-full {
    width: 100%;
}

/* 购物车表格 */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cart-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-cell img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remove-btn {
    color: #e74c3c;
    text-decoration: none;
    font-size: 12px;
}

.remove-btn:hover {
    text-decoration: underline;
}

/* 购物车布局 */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 20px;
}

.cart-products {
    /* 左侧商品列表容器 */
}

/* 桌面端样式 */
@media (min-width: 769px) {
    .cart-layout {
        grid-template-columns: 1fr 400px;
    }

    .cart-products {
        width: auto;
    }

    .cart-totals {
        width: 400px;
        position: sticky;
        top: 20px;
    }
}

.cart-totals-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 40px;
}

.cart-totals-spacer {
    /* 空白区域 */
}

.cart-totals {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
    box-sizing: border-box;
}

.cart-totals h3 {
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
}

/* Checkout页面"Add a note"样式 */
.add-note-section {
    margin-top: 30px;
}

.add-note-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.add-note-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.note-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-top: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-products {
        width: 100%;
    }

    .cart-totals-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cart-totals {
        margin: 0;
        max-width: none;
        width: 100%;
        position: static;
        padding: 20px;
    }

    .page-header h1 {
        font-size: 48px;
    }

    .cart-table {
        font-size: 14px;
        width: 100%;
    }

    .cart-table th,
    .cart-table td {
        padding: 10px 5px;
    }

    .header-drone {
        width: 150px;
        left: 20px;
    }

    /* 确保手机端购物车表格和总计等宽 */
    .container {
        padding: 0 15px;
    }

    .cart-layout {
        width: 100%;
    }

    .cart-layout > * {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 移动端专用：确保卡片样式一致 */
    .cart-products {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .cart-totals {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin-top: 20px;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .cart-layout {
        gap: 15px;
    }

    .cart-totals {
        padding: 20px 15px;
        margin-top: 15px;
    }

    .cart-table th,
    .cart-table td {
        padding: 8px 4px;
        font-size: 13px;
    }

    .product-cell img {
        width: 50px;
        height: 50px;
    }

    .product-cell h4 {
        font-size: 14px;
    }
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 10px;
}
.burger-menu span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-accessories {
    display: none;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin: 0 20px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    .nav-menu {
        display: none !important;
    }
    .nav-hide-mobile {
        display: none !important;
    }
    .nav-accessories {
        display: block;
    }
    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }
    .logo {
        margin: 0 10px;
        font-size: 20px;
    }
    .header-icons {
        margin-left: 0;
    }
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: #232323;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-sidebar.show {
    transform: translateX(0);
}
.mobile-sidebar ul {
    list-style: none;
    padding: 0 20px;
}
.mobile-sidebar ul li {
    margin-bottom: 18px;
}
.mobile-sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 6px 0;
    border-radius: 4px;
    transition: background 0.2s;
}
.mobile-sidebar ul li a:hover {
    background: #333;
}
.close-sidebar {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}
.sidebar-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.sidebar-mask.show {
    opacity: 1;
    pointer-events: auto;
}
@media (min-width: 769px) {
    .mobile-sidebar, .sidebar-mask {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
}
@media (max-width: 350px) {
    .section-title {
        font-size: 18px;
    }
}
