/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-button {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-button:hover {
    color: #2563eb;
    background: #f3f4f6;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    padding: 0.5rem;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 2rem 1rem;
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
}

.sidebar-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav-button {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: left;
    background: none;
    border: none;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.sidebar-nav-button:hover {
    background: #f3f4f6;
    color: #2563eb;
}

/* 遮罩层 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* 主要内容区域 */
.main-content {
    margin-top: 80px;
}

.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    padding: 3rem 1rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
    animation: slideInFromBottom 0.7s ease-out;
}

.hero-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto 2rem;
    animation: slideInFromBottom 0.7s ease-out 0.2s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1.125rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    animation: slideInFromBottom 0.7s ease-out 0.3s both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* 内容区域 */
.content-section {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: bold;
    text-align: center;
    color: #1f2937;
}

/* 卡片样式 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.card-image {
    width: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.card:hover .card-image {
    opacity: 0.9;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.card-description {
    color: #6b7280;
    line-height: 1.6;
}

/* 平台链接样式 */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
}

.platform-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.platform-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.platform-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.platform-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.platform-link {
    display: block;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: white;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.platform-link.web {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.platform-link.web:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.platform-link.h5 {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.platform-link.h5:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

/* 待遇卡片样式 */
.benefits-grid {
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* 代理须知模块特殊布局 */
#agent-guide .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* 代理须知模块中等屏幕布局 */
@media (max-width: 1200px) {
    #agent-guide .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.benefit-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.benefit-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1f2937;
}

.benefit-list {
    list-style: disc;
    padding-left: 1.25rem;
    color: #6b7280;
}

.benefit-list li {
    margin-bottom: 0.5rem;
}

/* 特殊卡片样式 */
.special-card {
    background: white;
    border: 1px solid #dbeafe;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.special-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.special-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2563eb;
    display: flex;
    align-items: center;
}

.special-title::before {
    content: attr(data-icon);
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.highlight {
    font-weight: bold;
    color: #2563eb;
}

.info-box {
    background: #eff6ff;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
}

/* 联系方式样式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 48rem;
    margin: 0 auto;
    padding-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-weight: 600;
    color: #1f2937;
}

.contact-value {
    color: #6b7280;
}

.contact-buttons {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.contact-button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
    text-decoration: none;
    color: white;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.contact-button.primary {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
}

.contact-button.secondary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.contact-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 2rem 1rem;
}

.footer-text {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* 背景样式 */
.bg-white {
    background: white;
}

.bg-gray-50 {
    background: #f9fafb;
}

.border-t {
    border-top: 1px solid #e5e7eb;
}

.border-b {
    border-bottom: 1px solid #e5e7eb;
}

/* 平台待遇通栏样式 */
.benefits-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* 动画 */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    /* 移动端侧边栏样式调整 */
    .sidebar {
        width: 280px;
        right: -280px;
    }

    .sidebar.open {
        right: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* 平台待遇模块移动端布局 */
    #benefits .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* 代理须知模块移动端布局 */
    #agent-guide .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    padding-top: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}