/* 全局重置 & 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #2c74ed;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 22px;
}

/* PC端导航 */
.desktop-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 15px;
    color: #555;
    font-weight: 500;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: #2c74ed;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2c74ed;
}

/* 头部按钮组 */
.header-btn-group {
    display: flex;
    gap: 15px;
}

.login-btn, .reg-btn, .user-btn, .logout-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-btn {
    border: 1px solid #2c74ed;
    color: #2c74ed;
}

.login-btn:hover {
    background-color: #f0f7ff;
}

.reg-btn, .user-btn {
    background-color: #2c74ed;
    color: #fff;
}

.reg-btn:hover, .user-btn:hover {
    background-color: #1a68e0;
}

.logout-btn {
    border: 1px solid #ff4d4f;
    color: #ff4d4f;
}

.logout-btn:hover {
    background-color: #fff2f2;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    font-size: 22px;
    color: #555;
    cursor: pointer;
}

/* 移动端菜单弹窗 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: flex-end;
}

.mobile-menu-content {
    width: 85%;
    max-width: 300px;
    height: 100%;
    background-color: #fff;
    padding: 20px;
    overflow-y: auto;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.menu-shortcut .grid {
    display: flex;
    gap: 10px;
}

.shortcut-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.shortcut-btn.user-center {
    background-color: #2c74ed;
    color: #fff;
}

.shortcut-btn.logout {
    border: 1px solid #ff4d4f;
    color: #ff4d4f;
}

.shortcut-btn.login {
    border: 1px solid #2c74ed;
    color: #2c74ed;
}

.shortcut-btn.register {
    background-color: #52c41a;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
}

.menu-title {
    font-size: 15px;
    color: #333;
    margin: 15px 0 10px;
    font-weight: 600;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    padding: 10px 15px;
    border-radius: 4px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item:hover {
    background-color: #f5f7fa;
    color: #2c74ed;
}

/* 首页横幅 */
.hero-section {
    background: linear-gradient(135deg, #2c74ed 0%, #1a8cff 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-desc {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #2c74ed;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    width: fit-content;
}

.hero-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

/* 通用区块样式 */
.section {
    padding: 60px 0;
}

.bg-gray {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-title i {
    color: #2c74ed;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 15px;
}

/* 套餐列表样式 */
.package-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.empty-tip {
    text-align: center;
    color: #999;
    padding: 40px 0;
    width: 100%;
}

.package-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f5f7fa;
    padding: 15px 20px;
    position: relative;
}

.recommend-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff7d00;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
}

.card-name {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.card-body {
    padding: 20px;
}

.card-price {
    font-size: 28px;
    color: #2c74ed;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.card-price span {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.card-desc {
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.card-config {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-config li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
}

.card-config li i {
    color: #2c74ed;
    font-size: 16px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.buy-btn {
    padding: 10px 20px;
    background-color: #2c74ed;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.buy-btn:hover {
    background-color: #1a68e0;
}

.card-footer .login-btn {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
}

/* 优势区块样式 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-item {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.feature-icon i {
    font-size: 24px;
    color: #2c74ed;
}

.feature-name {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 联系我们样式 */
.contact-wrap {
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #555;
}

.contact-item i {
    color: #2c74ed;
    font-size: 20px;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-desc {
    color: #b0b7c3;
    font-size: 14px;
    line-height: 1.6;
}

.footer-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link li a {
    color: #b0b7c3;
    font-size: 14px;
}

.footer-link li a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #b0b7c3;
    font-size: 13px;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .desktop-nav, .header-btn-group {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 28px;
    }
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    .hero-desc {
        font-size: 14px;
    }
    .section {
        padding: 40px 0;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    .hero-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .package-list {
        grid-template-columns: 1fr;
    }
}