/* 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 .cart-link-count {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    font-size: 14px;
    white-space: nowrap;
}

.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;
}

.add-to-cart-btn:hover {
    background: #ff6b00;
}

.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;
}

.buy-now-btn:hover {
    background: #053106;
    color: #fff;
}

.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;
}

/* 悬浮联系按钮容器 */
.float-contact-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 通用悬浮按钮样式 */
.float-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.float-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.float-button img {
    width: 30px;
    height: 30px;
}

/* Telegram 悬浮按钮 */
.telegram-float {
    background: #0088cc;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.3);
}

.telegram-float:hover {
    box-shadow: 0 6px 25px rgba(0, 136, 204, 0.4);
}

/* WhatsApp 悬浮按钮 */
.whatsapp-float {
    background: #25d366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-float:hover {
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .float-contact-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .float-button {
        width: 50px;
        height: 50px;
    }
    
    .float-button img {
        width: 25px;
        height: 25px;
    }
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: #999;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 消息提示样式 */
.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;
    }
    .header-icons .cart-link-count {
        font-size: 12px;
    }

    .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;
    }
}
