/* ====================
   全局样式
   ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 科技蓝白色调 */
    --primary-color: #00D4FF;
    --primary-light: #4DE1FF;
    --primary-dark: #0099CC;
    --secondary-color: #0066CC;
    --accent-color: #00FFCC;
    --bg-dark: #0A1628;
    --bg-darker: #040D1A;
    --bg-tech: #081420;
    --text-primary: #FFFFFF;
    --text-secondary: #8BA4B8;
    --text-blue: #4DA8FF;
    --card-bg: rgba(0, 150, 255, 0.08);
    --card-border: rgba(0, 180, 255, 0.2);
    --card-glow: rgba(0, 200, 255, 0.15);
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 100px;
}

/* 支付页面背景 */
body.pay-page {
    
	background-color: rgba(243, 247, 251, 1);
}

/* ====================
   顶部导航
   ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}
.pay-header{
	background-color: rgb(126 180 230);
}
.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.back-btn:active {
    background: #f5f7fa;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.header-placeholder {
    width: 40px;
}

/* ====================
   主容器
   ==================== */
.main-container {
    padding-bottom: 24px;
	background-color: rgba(243, 247, 251, 1);
}
.pay-container{
	background: url('../assets/mobile_icon/pay_bg.png') no-repeat center top;
	background-size: contain;
}
/* ====================
   通用区块样式
   ==================== */
.package-section{
	margin-top: -80px;
}
.package-section,
.form-section,
.summary-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

/* 订购信息模块渐变背景 */
.form-section {
    background: linear-gradient(180deg, rgba(223, 237, 250, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
	border: 1px solid #fff;
	border-bottom: 0;
    padding: 16px;
    border-top-right-radius: 16px;
	border-top-left-radius: 16px;
    margin: 0 16px 24px;
}

/* ====================
   Banner
   ==================== */
.banner-section {
    margin-bottom: 20px;
}

.banner-image {
    width: 100%;
    object-fit: cover;
}

/* ====================
   套餐选择 (参考index.html OPC套餐样式)
   ==================== */
.opc-packages {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.opc-package {
    position: relative;
    background: linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(223, 237, 250, 1) 100% );
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 19, 54, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.opc-package.selected {
    border-color: rgba(0, 19, 54, 1);
}

.opc-package:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 19, 54, 0.12);
}

.opc-package.featured {
    background: linear-gradient(135deg, #fff 0%, rgba(0, 123, 255, 0.03) 100%);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.15);
}

.opc-package.featured:hover {
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.2);
}

.opc-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.opc-info {
    text-align: left;
}

/* 标题和价格一行布局 */
.opc-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.opc-title-box {
    font-size: 20px;
    font-weight: 700;
    color: #001336;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.opc-name {
    font-size: 16px;
    font-weight: 700;
}

.opc-title-dot {
    width: 8px;
    height: 8px;
    background: #001336;
    border-radius: 4px;
    margin: 0 12px;
}

.opc-tag {
    font-weight: 600;
    font-size: 16px;
    color: #001336;
}

.opc-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 0;
}

.price-symbol {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 19, 54, 1);
    margin-right: 4px;
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    color: rgba(0, 19, 54, 1);
}

.price-unit {
    font-size: 14px;
    color: #666;
}

.opc-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2D83EC 0%, #4DA8FF 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.opc-btn:hover {
    background: linear-gradient(135deg, #1a6fd8 0%, #3a8ae8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 131, 236, 0.3);
}

.opc-btn:active {
    transform: translateY(0);
}

/* 订购按钮默认隐藏，套餐展开时显示 */
.opc-btn {
    display: none;
}

/* ====================
   套餐内容展开收起
   ==================== */
.opc-content-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.opc-content-wrapper.expanded {
    max-height: 500px;
}

.opc-content-list {
    margin-top: 12px;
}

/* 算力说明文字 */
.sl-box {
    font-size: 14px;
    color: rgba(0, 19, 54, 0.85);
}
.selected .sl-box{
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(0, 19, 54, 0.06);
}
.opc-content-item {
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

.opc-content-item:has(h3) {
    border-bottom: 1px solid rgba(0, 19, 54, 0.06);
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.opc-content-item:has(h3):last-of-type {
    border-bottom: none;
}

.content-label {
    color: #001336;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.sub-title-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.content-value {
    font-size: 14px;
    color: rgba(0, 19, 54, 0.70);
    margin: 4px 0 0 0;
    display: flex;
    align-items: center;
}

.content-value .check-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 6px;
    flex-shrink: 0;
}


/* ====================
   已选套餐卡片
   ==================== */
.selected-package-section {
    padding: 0 16px;
    margin-bottom: 12px;
}

.selected-package-card {
    position: relative;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%,rgba(223, 237, 250, 1) 100%);
    border: 1px solid #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 19, 54, 0.08);
}
.section-title{
	font-size: 18px;
	color: rgba(0, 19, 54, 1);
	text-align: center;
	margin-bottom: 20px;
}

/* 算力和体验期一行 */
.sl-box-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trial-tag {
    background: rgba(0, 0, 0, 1);
    color: rgba(255, 255, 255, 1);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
}

/* ====================
   提交按钮区域
   ==================== */
.submit-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.submit-section .submit-pay-btn {
    width: 100%;
    height: 48px;
    background: rgba(17, 25, 39, 1);
    color: rgba(255, 255, 255, 1);
    font-size: 18px;
    border: none;
    outline: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-section .submit-pay-btn:not(:disabled):active {
    transform: scale(0.98);
}

.submit-section .submit-pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====================
   联系我们样式
   ==================== */
.contact-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 19, 54, 0.08);
    text-align: center;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.qrcode-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.contact-tip {
    font-size: 14px;
    color: rgba(0, 19, 54, 0.7);
    margin: 0;
}

/* ====================
   表单样式
   ==================== */
.form-group {
	margin-top: 24px;
}

.form-group:first-child {
	margin-top: 0;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.label-text {
    color: rgba(0, 19, 54, 1);
    font-size: 14px;
}

.required {
    color: var(--danger);
    font-size: 14px;
}

.form-input,
.form-textarea {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 19, 54, 0.16);
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #333;
    opacity: 0.6;
}

.form-textarea {
    resize: none;
    font-family: inherit;
}

.form-error {
    margin-top: 6px;
    font-size: 12px;
    color: var(--danger);
   /* min-height: 16px; */
}

/* ====================
   验证码输入框
   ==================== */
.code-input-group {
    display: flex;
    gap: 12px;
}

.code-input {
    flex: 1;
}

.code-btn {
    flex-shrink: 0;
    padding: 0 16px;
    height: 40px;
    background: #fff;
    border: 1px solid rgba(0, 19, 54, 1);
    border-radius: 4px;
    font-size: 14px;
    color: rgba(0, 19, 54, 1);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.code-btn:not(:disabled):hover {
    border-color: #0d81ef;
    background: rgb(227 235 243);
}

.code-btn:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ====================
   订单摘要
   ==================== */
.summary-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.summary-item:not(:last-child) {
    border-bottom: 1px solid var(--card-border);
}

.summary-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.summary-total {
    padding-bottom: 8px;
}

.summary-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.summary-price .price-symbol {
    font-size: 16px;
    color: var(--primary-color);
}

.summary-price .price-value {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
}

.summary-price .price-unit {
    font-size: 12px;
	font-weight: bold;
    color: var(--text-secondary);
}

/* 免费体验文字 */
.free-trial-text {
    color: var(--success);
    font-weight: 600;
}

/* ====================
   底部提交栏
   ==================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
}

.footer-info {
    flex: 1;
}

/* 只显示提交按钮的footer */
.submit-only {
    background-color: rgba(17, 25, 39, 1);
	width: 90%;
	margin: 0 auto;
	text-align: center;
	border-radius: 8px;
	padding: 10px 0;
}
.submit-pay-btn{
	width: 100%;
	height: 100%;
	background: transparent;
	color: #fff;
	font-size: 18px;
	border: none;
	outline: none;
}
.footer-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.footer-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.footer-price .price-symbol {
    font-size: 12px;
	font-weight: bold;
    color: rgba(0, 19, 54, 1);
}

.footer-price .price-value {
    font-size: 20px;
    color: rgba(0, 19, 54, 1);
    font-weight: 700;
}

.footer-price .price-unit {
    font-size: 12px;
    color: rgba(0, 19, 54, 1);
	font-weight: bold;
}

.submit-btn {
    background: rgba(17, 25, 39, 1);
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-weight: 600;
    padding: 8px 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    border: none;
}

.submit-btn:not(:disabled):active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    background: var(--card-border);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* ====================
   成功弹窗
   ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-tech);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px 24px;
    margin: 16px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-width: 320px;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--success);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-darker);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 48px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
}

.modal-btn:active {
    transform: scale(0.98);
}

/* ====================
   输入框自动填充样式
   ==================== */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
   
    -webkit-box-shadow: 0 0 0 1000px var(--card-bg) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ====================
   滚动条样式
   ==================== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ====================
   响应式调整
   ==================== */
@media (min-width: 480px) {
    .main-container {
        max-width: 480px;
        margin: 0 auto;
    }

    .header,
    .footer {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }

    .footer {
        transform: translateX(-50%);
    }

    .header {
        transform: translateX(-50%);
    }

    .opc-packages {
        max-width: 420px;
        margin: 0 auto;
    }

    .opc-icon {
        width: 80px;
        height: 80px;
    }
}

/* 手机端优化 */
@media (max-width: 479px) {
    .opc-icon {
        width: 50px;
        height: 50px;
    }

    .opc-title-box {
        font-size: 18px;
    }

    .opc-name {
        font-size: 16px;
    }

    .price-value {
        font-size: 20px;
    }

    .content-value {
        font-size: 13px;
    }
}
