* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部导航 */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.logo {
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo::before {
    content: "🤖";
    margin-right: 6px;
    font-size: 22px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link.contact {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-link.contact:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 650px;
    text-align: center;
}

.title {
    color: #333;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* 商品信息样式 */
.product-info {
    text-align: left;
    margin-bottom: 30px;
}

.product-image {
    width: 100%;
    max-width: 100%;
    /*height: 250px;*/
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 5px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.product-features li::before {
    content: "✓";
    color: #4caf50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 支付相关样式 */
.payment-section {
    text-align: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    border: 2px solid #ddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    font-size: 14px;
    color: #666;
}

.payment-tips {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
    font-size: 14px;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #721c24;
}

.customer-service {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #0c5460;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 0 15px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-info {
    padding-top: 5px;
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

.footer-info p {
    margin-bottom: 3px;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: none;
}

.toast.show {
    transform: translateX(0);
    display: block;
}

.toast.error {
    background: #f44336;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-link {
        padding: 5px 10px;
        font-size: 13px;
    }

    .main-content {
        padding: 30px 15px;
    }

    .container {
        padding: 30px 20px;
    }

    .title {
        font-size: 26px;
    }

    .product-name {
        font-size: 20px;
    }

    .product-price {
        font-size: 24px;
    }

    .button {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }

    .nav-container {
        padding: 0 12px;
    }

    .logo {
        font-size: 16px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-link {
        padding: 4px 8px;
        font-size: 12px;
    }

    .container {
        padding: 25px 15px;
        margin: 5px;
    }

    .title {
        font-size: 22px;
    }

    .footer-info {
        font-size: 12px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .nav-link:not(.contact) {
        display: none;
    }

    .nav-link.contact {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* a标签样式 */
.product-description a {
            text-decoration: none; /* 去除下划线 */
            color: rgb(118, 75, 162); /* 设置指定颜色 */
            transition: color 0.3s ease; /* 添加强调效果的过渡动画 */
        }
        
        .product-description a:hover {
            color: rgb(140, 95, 185); /* 悬停时稍微加深颜色 */
        }