/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 添加主题色和全局变量 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --muted-text: #666;
}

/* 头部导航样式 */
header {
    background: #fff;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 20px;
    color: var(--secondary-color);
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    padding: 15px;
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* 英雄区域样式 */
.hero {
    background: var(--light-bg);
    text-align: center;
    padding: 100px 20px;
}

.hero-content {
    max-width: 600px;
    margin-right: 40px;
}

.hero-content h2 {
    font-size: 42px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 18px;
    color: var(--muted-text);
    margin-bottom: 0;
}

/* 按钮统一风格 */
.btn {
    background: var(--primary-color);
    padding: 12px 28px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

/* 英雄区域居中显示 */
.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* 产品功能区 */
.features {
    background: #fff;
    padding: 80px 20px;
}

.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

/* 单个特性区块样式 */
.features-grid .single-feature {
    grid-column: 1 / -1;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

.feature h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature p {
    color: var(--muted-text);
}

/* 产品详细图片展示样式 */
.product-details {
    margin-top: 60px;
    padding: 40px 0;
}

.product-details h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.detail-item {
    text-align: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: none;
    width: 100%;
    max-width: 900px;
    margin: 0;
}

.detail-item:hover {
    transform: none;
    box-shadow: none;
}

.detail-item img {
    width: 900px;
    height: auto;
    border-radius: 0;
    max-width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

/* 新增购买区域样式 */
.purchase-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding: 0;
    background: none;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
}

.product-column {
    flex: 0 0 350px;
    text-align: center;
    background: none;
    padding: 25px;
    border-radius: 0;
    box-shadow: none;
}

.product-column img {
    width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 15px;
}

.product-column h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.price {
    font-size: 18px;
    color: #e74c3c;
    margin-bottom: 15px;
    font-weight: bold;
}

.price span {
    font-weight: bold;
    font-size: 24px;
}

.quantity {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity label {
    font-size: 14px;
}

.quantity input {
    width: 60px;
    padding: 6px;
    text-align: center;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-column .btn {
    width: 220px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-column .btn:hover {
    background: linear-gradient(135deg, #4096ff 0%, #1677ff 100%);
    box-shadow: 0 6px 16px rgba(22, 119, 255, 0.4);
    transform: translateY(-2px);
}

.product-column .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.3);
}

.form-column {
    flex: 1;
    min-width: 450px;
    background: none;
    padding: 25px;
    border-radius: 0;
    box-shadow: none;
}

.form-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* 视频演示区域样式 */
.video-demo {
    background: #fff;
    padding: 60px 20px;
}

.video-demo h2 {
    text-align: center;
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-container video {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 700px;
    border-radius: 10px;
    object-fit: contain;
}

/* 联系表单样式 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    height: 70px;
    resize: vertical;
}

/* 电话输入容器样式 */
.phone-input-container {
    display: flex;
    gap: 8px;
}

.phone-input-container select {
    flex: 0 0 140px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.phone-input-container input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 邮箱验证码容器样式 */
.email-verification-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.email-verification-container input[type="email"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.email-verification-container input[type="text"] {
    flex: 0 0 100px !important;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    letter-spacing: 2px;
    height: 34px;
}

/* 验证码容器样式 */
.verification-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.verification-container input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    letter-spacing: 2px;
}

.send-code-btn {
    flex: 0 0 auto;
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.send-code-btn:hover {
    background-color: #2980b9;
}

.send-code-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.verification-status {
    margin-top: 4px;
    font-size: 12px;
    min-height: 16px;
}

.verification-status.success {
    color: #27ae60;
}

.verification-status.error {
    color: #e74c3c;
}

.verification-status.info {
    color: #3498db;
}

/* 支付技术支持信息样式 */
.payment-support-info {
    margin-top: 8px;
    text-align: center;
}

.payment-support-info p {
    font-size: 12px;
    color: #666;
    margin: 0;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* 阿里巴巴logo样式已移除，改用纯文字 */

.required {
    color: #c62828;
    margin-left: 2px;
}

/* 页脚样式 */
footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 40px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 订单页面样式 */
.order-section {
    padding: 120px 0 60px;
}

.order-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.product-summary {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-summary img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
}

.product-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.price {
    font-size: 32px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.features-list li:last-child {
    border-bottom: none;
}

.order-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.payment-methods {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.payment-option {
    cursor: pointer;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-option:hover {
    border-color: #1976d2;
}

.payment-option input[type="radio"] {
    margin: 0;
}

.payment-option img {
    height: 30px;
    width: auto;
}

.payment-option input[type="radio"]:checked + img {
    opacity: 1;
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: #1976d2;
    background-color: #e3f2fd;
}

.order-summary {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-item.total {
    font-size: 20px;
    font-weight: bold;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

/* 通用标题样式 */
h2, h3 {
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .order-content {
        grid-template-columns: 1fr;
    }

    .product-summary {
        order: -1;
    }

    .payment-methods {
        flex-direction: column;
    }
    
    /* 移动端视频和图片调整 */
    .video-container {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .video-container video {
        min-height: 200px;
        max-height: 300px;
    }
    
    .features-grid .single-feature {
        max-width: 95%;
    }
    
    .feature img {
        max-width: 100%;
    }
    
    /* 移动端产品详细图片调整 */
    .details-grid {
        gap: 0;
        padding: 0;
        max-width: 100%;
    }
    
    .detail-item {
        padding: 0;
        max-width: 100%;
        margin: 0;
    }
    
    .detail-item img {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .product-details h3 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    /* 移动端购买区域调整 */
    .purchase-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-column {
        flex: none;
        width: 100%;
    }
    
    .form-column {
        min-width: auto;
        width: 100%;
    }
}

/* 表单消息样式 */
.form-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    display: none;
}

.form-message.info {
    display: block;
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.form-message.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-message.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* 验证码弹窗样式 */
.verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.verification-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    min-width: 400px;
    max-width: 90vw;
}

.verification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
}

.verification-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

.verification-body {
    padding: 20px 25px 25px;
}

.verification-body p {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
}

.verification-body p span {
    color: #333;
    font-weight: 500;
}

.verification-form .form-group {
    margin-bottom: 20px;
}

.verification-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.code-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

#verification-code {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
}

#verification-code:focus {
    outline: none;
    border-color: #007bff;
}

.resend-btn {
    padding: 12px 15px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.resend-btn:hover:not(:disabled) {
    background: #5a6268;
}

.resend-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.countdown {
    margin-top: 8px;
    font-size: 12px;
    color: #dc3545;
    text-align: center;
}

.verification-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.verification-actions .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.verify-btn {
    background: #28a745;
    color: white;
}

.verify-btn:hover {
    background: #218838;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background: #5a6268;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .verification-modal {
        min-width: 90vw;
        margin: 20px;
    }
    
    .code-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .verification-actions {
        flex-direction: column;
    }
}

/* PayPal支付集成样式 */
.payment-methods {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.payment-method-btn {
    flex: 1;
    padding: 15px 10px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-height: 80px;
}

.payment-method-btn:hover {
    border-color: #0070ba;
    background: #f0f8ff;
    transform: translateY(-2px);
}

.payment-method-btn.active {
    border-color: #0070ba;
    background: #e6f3ff;
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.2);
}

.payment-icon {
    font-size: 24px;
    line-height: 1;
}

.payment-text {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.payment-currency {
    font-weight: bold;
    font-size: 16px;
    color: #0070ba;
}

.alipay-btn {
    width: 100%;
    margin-top: 15px;
    background: #1677ff;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alipay-btn:hover {
    background: #4096ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.paypal-container {
    margin-top: 15px;
    display: none;
}

.paypal-container.active {
    display: block;
}

/* 支付方式切换时的动画效果 */
.payment-method-btn {
    position: relative;
    overflow: hidden;
}

.payment-method-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.payment-method-btn:hover::before {
    left: 100%;
}

/* 响应式设计 - 支付方式 */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: column;
        gap: 8px;
    }
    
    .payment-method-btn {
        min-height: 60px;
        padding: 12px 8px;
    }
    
    .payment-icon {
        font-size: 20px;
    }
    
    .payment-text {
        font-size: 13px;
    }
    
    .payment-currency {
        font-size: 14px;
    }
}

