*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}
ul,ol{
    list-style:none;
}
body{
    font-family: "Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;
    background-color: #f5f5f5;
}
.hidden{
    display:none;
}

/* 头部样式 */
.am-header {
    display: flex;
    width: 100%;
    position: relative;
    padding: 7px 0;
    background: #1D222D;
    height: 50px;
    text-align: center;
    align-items: center;
    justify-content: center;
}
.am-header h1 {
    line-height: 18px;
    text-align: center;
    font-size: 18px;
    font-weight: 300;
    color: #fff;
}

/* 主容器 */
#main{
    width:100%;
    max-width: 800px;
    margin:0 auto;
    font-size:14px;
    background: white;
    min-height: calc(100vh - 50px);
    position: relative;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px;
    gap: 5px;
}
.nav-btn {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}
.nav-btn:hover {
    background: #e8e8e8;
}
.nav-btn.active {
    background: #02aaf1;
    color: white;
    border-color: #02aaf1;
}

/* 页面样式 */
.page {
    display: none;
    padding: 20px;
}
.page.active {
    display: block;
}
.page-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding: 10px;
    background: #f0f8ff;
    border-left: 4px solid #02aaf1;
    border-radius: 4px;
}

/* 表单样式 */
.content{
    margin-top:5px;
}
.content dt{
    width:120px;
    display:inline-block;
    float: left;
    margin-left: 20px;
    color: #666;
    font-size: 13px;
    margin-top: 8px;
}
.content dd{
    margin-left:140px;
    margin-bottom:5px;
    position: relative;
}
.content dd input, .content dd select {
    width: 85%;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
}
.content dd input:focus, .content dd select:focus {
    border-color: #02aaf1;
    outline: none;
}

/* 生成按钮 */
.generate-btn {
    position: absolute;
    right: 15%;
    top: 0;
    height: 32px;
    padding: 0 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.generate-btn:hover {
    background: #218838;
}

/* 按钮样式 */
.new-btn-login-sp{
    padding: 1px;
    display: inline-block;
    width: 75%;
}
.new-btn-login {
    background-color: #02aaf1;
    color: #FFFFFF;
    font-weight: bold;
    border: none;
    width: 100%;
    height: 36px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.new-btn-login:hover {
    background-color: #0299d8;
}

/* 注意事项样式 */
.note-help {
    color: #999999;
    font-size: 12px;
    line-height: 130%;
    margin-top: 5px;
    width: 100%;
    display: block;
}
.note-warning {
    color: #ff4444;
    font-size: 12px;
    line-height: 150%;
    display: block;
    background: #fff5f5;
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #ff4444;
}

#btn-dd{
    margin: 20px 0;
    text-align: center;
}

.one_line{
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #eeeeee;
    width: 100%;
    margin: 10px 0 10px 20px;
}

/* 结果显示区域 */
.result-area {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow: hidden;
}
.result-area h3 {
    background: #02aaf1;
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
}
#result-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.close-result {
    display: block;
    width: 100px;
    margin: 15px auto;
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.close-result:hover {
    background: #5a6268;
}

/* 覆盖层 */
.result-area:not(.hidden)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

/* 底部样式 */
#foot{
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px 0;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}
.foot-ul{
    width: 100%;
}
.foot-ul li {
    width: 100%;
    text-align:center;
    color: #666;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }
    .nav-btn {
        min-width: auto;
        margin-bottom: 5px;
    }
    .content dt {
        width: 100px;
        font-size: 12px;
    }
    .content dd {
        margin-left: 110px;
    }
    .content dd input, .content dd select {
        width: 80%;
    }
    .generate-btn {
        right: 20%;
    }
    .page {
        padding: 15px;
    }
    .result-area {
        width: 95%;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #02aaf1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 成功/错误状态 */
.success {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* 支付页面样式 */
.payment-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.payment-header {
    text-align: center;
    margin-bottom: 30px;
}

.payment-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

.payment-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 支付方式选择 */
.payment-methods {
    margin-bottom: 30px;
}

.payment-method-item {
    margin-bottom: 12px;
}

.payment-method-item input[type="radio"] {
    display: none;
}

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

.payment-method-label:hover {
    border-color: #02aaf1;
    box-shadow: 0 2px 8px rgba(2, 170, 241, 0.1);
}

.payment-method-item input[type="radio"]:checked + .payment-method-label {
    border-color: #02aaf1;
    background: #f8fcff;
    box-shadow: 0 2px 12px rgba(2, 170, 241, 0.15);
}

.payment-method-icon {
    margin-right: 12px;
}

.payment-method-icon img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.payment-method-desc {
    font-size: 13px;
    color: #666;
}

/* 订单信息 */
.order-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.order-info h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #02aaf1;
    box-shadow: 0 0 0 2px rgba(2, 170, 241, 0.1);
}

.input-with-btn {
    display: flex;
    gap: 8px;
}

.input-with-btn input {
    flex: 1;
}

.generate-btn {
    padding: 12px 16px;
    background: #02aaf1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.generate-btn:hover {
    background: #0299d9;
}

/* 支付按钮 */
.payment-actions {
    text-align: center;
}

.pay-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #02aaf1, #00d4aa);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pay-btn:hover {
    background: linear-gradient(135deg, #0299d9, #00c299);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 170, 241, 0.3);
}

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

.pay-btn-text {
    flex: 1;
    text-align: center;
}

.pay-btn-amount {
    font-size: 18px;
    font-weight: 700;
}

.payment-notice {
    color: #666;
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.security-icon {
    font-size: 14px;
}

/* 微信支付二维码样式 */
.wechat-pay-container {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.wechat-pay-container h3 {
    color: #07c160;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.qr-code-container {
    margin: 25px 0;
    padding: 25px;
    border: 2px dashed #07c160;
    border-radius: 12px;
    display: inline-block;
    background: white;
}

.qr-code-container img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.qr-code-text {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #e8e8e8;
}

.qr-code-text input {
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.qr-code-text input:focus {
    outline: none;
    border-color: #07c160;
}

.payment-actions {
    margin-top: 25px;
}

.payment-actions button {
    margin: 0 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.check-btn {
    background: #07c160;
    color: white;
}

.check-btn:hover {
    background: #06ad56;
    transform: translateY(-1px);
}

.close-btn {
    background: #f56c6c;
    color: white;
}

.close-btn:hover {
    background: #f45454;
    transform: translateY(-1px);
}

/* 支付宝跳转提示样式 */
.payment-redirect {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin: 20px 0;
}

.redirect-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.payment-redirect h3 {
    color: #009fe8;
    font-size: 20px;
    margin-bottom: 10px;
}

.payment-redirect p {
    color: #666;
    margin-bottom: 20px;
}

.redirect-progress {
    width: 200px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #009fe8, #00d4aa);
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.redirect-note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* 微信支付界面优化 */
.wechat-header {
    text-align: center;
    margin-bottom: 25px;
}

.wechat-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.qr-code-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.payment-info {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e8e8e8;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-size: 14px;
    color: #666;
}

.info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.status-waiting {
    color: #f39c12;
}

.status-success {
    color: #07c160;
}

.qr-link-details {
    margin-top: 20px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 15px;
}

.qr-link-details summary {
    cursor: pointer;
    color: #007bff;
    font-weight: 500;
}

.qr-link-details input {
    margin-top: 10px;
    width: 100%;
}

/* 支付成功样式 */
.payment-success {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f9ff, #e6f7ff);
    border-radius: 12px;
    margin: 20px 0;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out;
}

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

.payment-success h3 {
    color: #07c160;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.success-info {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e8e8e8;
}

.success-info p {
    margin: 8px 0;
    color: #333;
}

.success-btn {
    background: #07c160;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-btn:hover {
    background: #06ad56;
    transform: translateY(-1px);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .qr-code-section {
        flex-direction: column;
    }
    
    .payment-methods {
        margin-bottom: 20px;
    }
    
    .payment-method-label {
        padding: 12px;
    }
    
    .payment-container {
        padding: 15px;
    }
    
    .order-info {
        padding: 15px;
    }
}