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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部导航 */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.header-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 70px;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 36px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text h1 a {
    color: inherit;
    text-decoration: none;
}

.logo-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

/* 导航菜单 */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-icon {
    font-size: 16px;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-list li a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
    border-radius: 2px;
}

/* 联系客服按钮 */
.header-contact {
    display: flex;
    align-items: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
    color: #1a1a2e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 30px;
    width: 100%;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
}

.card-title {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-subtitle {
    color: #8c8c8c;
    font-size: 14px;
}

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

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background-color: #fff;
}

.form-control::placeholder {
    color: #b8b8b8;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 239, 125, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 65, 108, 0.4);
}

/* 警告提示 */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert::before {
    font-size: 18px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b8dfb1;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f0b8bb;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    border: 1px solid #ffd966;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #9ee1eb;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background-color: #fafafa;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    margin-top: auto;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid !important;
    grid-template-columns: 1.5fr 2fr !important;
    gap: 60px;
    width: 100%;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    font-size: 40px;
}

.footer-logo-text h3 {
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo-text span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
    transform: translateY(-3px);
}

.footer-links {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px;
    width: 100%;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d9ff;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
}

.footer-bottom-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

.footer-warning {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 12px !important;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: pulse 15s linear infinite;
}

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

.hero h2 {
    font-size: 40px;
    margin-bottom: 15px;
    position: relative;
}

.hero p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
}

.hero-buttons .btn {
    padding: 16px 36px;
    font-size: 16px;
}

.hero-buttons .btn-primary {
    background: white;
    color: #667eea;
}

.hero-buttons .btn-primary:hover {
    background: #f0f0f0;
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 功能卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background-color: white;
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-desc {
    color: #8c8c8c;
    font-size: 14px;
    line-height: 1.7;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-content h2 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

/* 选择框样式 */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

/* 单选框组 */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 12px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

/* 居中支付方式选择 */
.radio-group-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
    flex-direction: row;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    background: #fff;
}

.payment-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

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

.payment-option img {
    max-width: 140px;
    max-height: 50px;
    width: auto;
    height: auto;
}

.payment-option input[type="radio"]:checked + img {
    transform: scale(1.05);
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f8f9ff;
}

/* 价格显示 */
.price-display {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 续费页面样式 */
.xufei-container {
    position: relative;
    z-index: 100;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.xufei-form {
    position: relative;
    z-index: 100;
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    min-height: 400px;
}

.xufei-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.xufei-form input[type="text"],
.xufei-form input[type="submit"],
.xufei-form select {
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.xufei-form .custom-input {
    width: 300px;
    max-width: 100%;
}

.xufei-form input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
    margin-top: 20px;
    display: inline-block;
}

.xufei-form input[type="submit"]:hover {
    background-color: #45a049;
}

.xufei-form select {
    width: 315px;
    max-width: 100%;
}

.xufei-form h3 {
    color: orange;
    text-align: center;
}

.xufei-form .radio {
    margin: 20px 0;
}

.xufei-form .radio label {
    display: inline-block;
    margin: 0 10px;
}

/* 使用流程样式 */
.steps-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.step-item {
    flex: 1;
}

.step-number {
    font-size: 48px;
    margin-bottom: 20px;
}

/* 复制按钮区域 */
.copy-area {
    margin: 20px 0;
}

.copy-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    word-break: break-all;
}

.copy-btn {
    margin-left: 10px;
    padding: 5px 15px;
}

/* 居中按钮组 */
.center-buttons {
    text-align: center;
    margin-top: 20px;
}

.center-buttons .btn-secondary {
    margin-left: 10px;
}

/* 支付页面样式 */
.xh-title {
    height: 75px;
    line-height: 75px;
    text-align: center;
    font-size: 30px;
    font-weight: 300;
    border-bottom: 2px solid #eee;
    background: #fff;
}

.qrbox {
    max-width: 900px;
    margin: 0 auto;
    padding: 85px 20px 20px 50px;
}

.qrbox .left {
    width: 40%;
    float: left;
    display: block;
    margin: 0px auto;
}

.qrbox .left .qrcon {
    border-radius: 10px;
    background: #fff;
    overflow: visible;
    text-align: center;
    padding-top: 25px;
    color: #555;
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, .05);
    vertical-align: top;
    -webkit-transition: all .2s linear;
    transition: all .2s linear;
}

.qrbox .left .qrcon .logo {
    width: 100%;
}

.qrbox .left .qrcon .title {
    font-size: 16px;
    margin: 10px auto;
    width: 100%;
}

.qrbox .left .qrcon .price {
    font-size: 22px;
    margin: 0px auto;
    width: 100%;
}

.qrbox .left .qrcon .bottom {
    border-radius: 0 0 10px 10px;
    width: 100%;
    background: #32343d;
    color: #f2f2f2;
    padding: 15px 0px;
    text-align: center;
    font-size: 14px;
}

.qrbox .sys {
    width: 60%;
    float: right;
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
    color: #ccc;
}

.qrbox img {
    max-width: 100%;
}

.qrcode {
    padding: 20px;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {
    display: inline-block;
}

* html .clearfix {
    height: 1%;
}

.clearfix {
    display: block;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-text {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* 支付页面额外样式 */
.qr-logo {
    max-width: 100px;
}

.qr-image {
    width: 250px;
    height: 250px;
}

.loading-text {
    margin-top: 20px;
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .qrbox {
        padding: 20px;
    }
    
    .qrbox .left {
        width: 90%;
        float: none;
    }
    
    .qrbox .sys {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }
    
    .logo {
        flex: 1;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        display: none;
        width: 100%;
        order: 3;
        padding-top: 15px;
    }
    
    .nav.mobile-open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-list li a {
        padding: 12px 15px;
    }
    
    .header-contact {
        display: none;
    }
    
    .header-contact.mobile-open {
        display: flex;
        width: 100%;
        order: 4;
        padding: 15px 0;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
    
    .main-content {
        padding: 0 20px;
        margin: 25px auto;
    }
    
    .hero {
        padding: 50px 25px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .table th,
    .table td {
        padding: 12px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr !important;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}
