/* components.css - 组件样式 */
/* 按钮样式 */
.cta-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.cta-primary:hover {
    background: #e6b400;
    transform: translateY(-3px);
}

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

.cta-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.next-btn {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #1a1a1a;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #ffd700, #d4af37);
}

/* 分类卡片按钮 */
.category-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-name {
    background: white;
    color: #333;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    border-top: 1px solid #e0e0e0;
}

.category-img {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.buy-btn {
    color: white;
    background:  linear-gradient(135deg, #d4af37, #ffd700);
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: 20px;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #ffd700, #d4af37);
}



/* 礼品卡片 */
.gift-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gift-info {
    padding: 20px;
    background: white;
}

.gift-name {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.gift-price {
    color: #d4af37;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.gift-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.gift-desc {
    color: #666;
    font-size: 0.9rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forgot-password {
 color: var(--primary-color);
    text-decoration: none;
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.gift-card-text {
    position: relative;
    width: 100%;
}

.char-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    color: #999;
    font-size: 0.8rem;
}

.final-buy-btn {
    color: white;
    background:  linear-gradient(135deg, #d4af37, #ffd700);
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: 20px;
}

.final-buy-btn {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #ffd700, #d4af37);
}

/* 模态框样式 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.login-container { 
    position: relative;   
    background: white;
    border-radius: var(--border-radius);
    width: 400px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.login-tab {
    padding: 10px 20px;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.login-tab.active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

/* 更明显的注册链接样式 */
.register-link {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.register-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.register-link a:hover {
    color: #0056b3;
    background-color: #e3f2fd;
    text-decoration: none;
}

/* 模态框关闭按钮 */
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #f5f5f5;
    color: #333;
}


/* 表单操作按钮布局 */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.login-submit, .login-cancel {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-submit {
    background: #f5f5f5;
    color: #ffd700
    border: 1px solid #ddd;
}

.login-submit:hover {
    background: #e5e5e5;
}

.login-cancel {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.login-cancel:hover {
    background: #e5e5e5;
}

/* 支付按钮样式 */
.pay-now-btn {
    background: linear-gradient(135deg, #38a169, #48bb78);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-left: 10px;
}

.pay-now-btn:hover {
    background: linear-gradient(135deg, #48bb78, #38a169);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

/* 未支付状态样式 */
.status-unpaid {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

/* 支付模态框样式 */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.payment-container {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 450px;
    max-width: 90vw;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.payment-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.payment-title {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.payment-order-info {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.payment-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d4af37;
}

.payment-methods {
    margin-bottom: 25px;
}

.payment-methods h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.payment-method-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.payment-method.active {
    border-color: #4299e1;
    background: #ebf8ff;
}

.method-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.payment-method.active .method-radio {
    border-color: #4299e1;
    background: #4299e1;
}

.payment-method.active .method-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.method-icon {
    font-size: 1.8rem;
    margin-right: 15px;
}

.method-info {
    flex: 1;
}

.method-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.method-desc {
    font-size: 0.85rem;
    color: #718096;
}

.payment-agreement {
    margin-bottom: 25px;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
}

.agreement-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.agreement-checkbox input:checked + .checkmark {
    background: #4299e1;
    border-color: #4299e1;
}

.agreement-checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.agreement-checkbox a {
    color: #4299e1;
    text-decoration: none;
}

.agreement-checkbox a:hover {
    text-decoration: underline;
}

.payment-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.payment-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffd700, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.payment-submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.payment-security {
    text-align: center;
    padding: 15px;
    background: #f0fff4;
    border-radius: 8px;
    border: 1px solid #9ae6b4;
}

.security-info {
    font-weight: 600;
    color: #38a169;
    margin-bottom: 5px;
}

.security-desc {
    font-size: 0.85rem;
    color: #68d391;
}

/* 支付成功提示 */
.payment-success {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
}

.success-content {
    text-align: center;
    padding: 30px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.success-content h3 {
    color: #38a169;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.success-content p {
    color: #4a5568;
    margin-bottom: 25px;
}

.success-confirm-btn {
    background: #38a169;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-confirm-btn:hover {
    background: #2f855a;
    transform: translateY(-2px);
}