/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #9B59B6;
    --accent-color: #F59E0B;
    --danger-color: #EF4444;
    --dark-color: #1F2937;
    --gray-color: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --yidong-color: #007536;
    --liantong-color: #D70000;
    --dianxin-color: #1898D3;
    --guangdian-color: #8FCDAF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8C42 50%, #FFD93D 100%);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
}

.logo-icon {
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: var(--white);
    opacity: 0.9;
    transition: all 0.3s;
    padding: 5px 0;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    opacity: 1;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.header-phone {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Banner区域 */
.banner {
    background: linear-gradient(135deg, #9B59B6 0%, #4D96FF 50%, #6BCB77 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    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='%239C92AC' fill-opacity='0.05'%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;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(120deg, #fff 0%, #FFD93D 50%, #FF6B9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-subtitle {
    font-size: 22px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.banner-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 筛选区域 */
.filter-section {
    background: var(--white);
    padding: 30px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
}

.filter-box {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group:first-child {
    flex: 0 0 auto;
    min-width: 520px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.filter-btn {
    padding: 8px 10px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.operator-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.operator-text {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: #fff;
    background: var(--yidong-color);
    flex-shrink: 0;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    background: var(--white);
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 套餐列表 */
.packages-section {
    padding: 50px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray-color);
    font-size: 16px;
}

.package-count {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.package-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #E5E7EB;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.package-header {
    padding: 20px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-header.yidong { background: linear-gradient(135deg, #007536, #009B4C); }
.package-header.liantong { background: linear-gradient(135deg, #D70000, #FF1A1A); }
.package-header.dianxin { background: linear-gradient(135deg, #1898D3, #2AA8E8); }
.package-header.guangdian { background: linear-gradient(135deg, #8FCDAF, #A8E6CF); color: #065F46; }

.package-operator {
    font-weight: bold;
    font-size: 16px;
}

.package-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.package-body {
    padding: 20px;
}

.package-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.package-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.package-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-color);
}

.package-feature span:first-child {
    font-size: 18px;
}

.package-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 15px;
}

.price-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--danger-color);
}

.price-unit {
    color: var(--gray-color);
    font-size: 14px;
}

.package-limit {
    font-size: 12px;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.package-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #FF6B9D, #FF8C42, #FFD93D);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.package-btn:hover {
    background: linear-gradient(135deg, #FF8C42, #FF6B9D);
    transform: scale(1.02);
}

/* 办卡流程 */
.process-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.process-step::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-color);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.process-step p {
    font-size: 14px;
    color: var(--gray-color);
}

/* 常见问题 */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--white);
    transition: all 0.3s;
    font-weight: 600;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-toggle {
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: var(--gray-color);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

/* 订单查询 */
.query-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #4D96FF 0%, #9B59B6 100%);
    color: var(--white);
}

.query-section .section-header h2 {
    color: var(--white);
}

.query-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.query-box {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.query-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
}

.query-btn {
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.query-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.query-result {
    max-width: 600px;
    margin: 30px auto 0;
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    color: var(--dark-color);
}

.query-result h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.query-result p {
    margin-bottom: 10px;
}

/* 联系客服 */
.contact-section {
    padding: 80px 0;
    background: #2C1654;
    color: var(--white);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.contact-btn.phone {
    background: var(--danger-color);
    color: var(--white);
}

.contact-btn.online {
    background: var(--secondary-color);
    color: var(--white);
}

.contact-btn.wechat {
    background: #07C160;
    color: var(--white);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* 底部 */
.footer {
    background: #1A0A2E;
    color: var(--gray-color);
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--gray-color);
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 14px;
}

/* 悬浮客服 */
.floating-service {
    position: fixed;
    right: 30px;
    bottom: 100px;
    z-index: 1000;
}

.service-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B9D, #FF8C42, #FFD93D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(255, 107, 157, 0.5);
    transition: all 0.3s;
}

.service-btn:hover {
    transform: scale(1.1);
}

.service-btn span {
    font-size: 28px;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .filter-box {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group:first-child {
        flex: 1 1 100%;
    }
    
    .filter-buttons {
        justify-content: space-between;
        padding-bottom: 5px;
    }
    
    .filter-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .filter-group:first-child {
        min-width: auto;
        width: 100%;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .process-step::after {
        display: none;
    }
    
    .contact-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-buttons {
        justify-content: center;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.package-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* 微信二维码 */
.wechat-qrcode {
    text-align: center;
    margin-top: 20px;
}

.wechat-qrcode img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: var(--white);
    padding: 10px;
    transition: all 0.3s;
}

.wechat-qrcode img:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.qrcode-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 12px;
    border: 3px dashed rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}

.qrcode-placeholder p {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .wechat-qrcode {
        margin-top: 30px;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-color);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-content h3 {
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.modal-qrcode {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    padding: 10px;
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--gray-color);
    font-size: 14px;
}

.phone-number {
    font-size: 32px !important;
    font-weight: bold;
    color: var(--primary-color) !important;
    margin: 20px 0;
}

.phone-call-btn {
    display: inline-block;
    padding: 15px 50px;
    background: linear-gradient(135deg, #FF6B9D, #FF8C42, #FFD93D);
    color: var(--white);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.phone-call-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.5);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-qrcode {
        width: 180px;
        height: 180px;
    }
}
