/* ============================================
   SAAS翻页书平台 - 主样式
   设计风格参考：flbook.com.cn
   ============================================ */

/* 全局重置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== 导航栏 ===== */
.navbar-flbook {
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
    min-height: 64px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.navbar-flbook .navbar-brand {
    font-size: 22px;
    font-weight: 700;
    color: #1890ff !important;
    padding: 18px 0;
    letter-spacing: -0.5px;
}

.navbar-flbook .navbar-brand i {
    margin-right: 6px;
    color: #1890ff;
}

.navbar-flbook .navbar-nav .nav-link {
    color: #555 !important;
    font-size: 15px;
    padding: 22px 16px !important;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-flbook .navbar-nav .nav-link:hover {
    color: #1890ff !important;
}

.navbar-flbook .navbar-nav .nav-link.nav-btn {
    padding: 8px 20px !important;
    border-radius: 4px;
    margin: 14px 4px;
    font-size: 14px;
}

.navbar-flbook .navbar-nav .nav-link.nav-btn-login {
    color: #1890ff !important;
    border: 1px solid #1890ff;
}

.navbar-flbook .navbar-nav .nav-link.nav-btn-login:hover {
    background: rgba(24,144,255,0.06);
}

.navbar-flbook .navbar-nav .nav-link.nav-btn-register {
    background: #1890ff;
    color: #fff !important;
    border: 1px solid #1890ff;
}

.navbar-flbook .navbar-nav .nav-link.nav-btn-register:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

/* ===== Hero区域 ===== */
.hero-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 50%, #f0f0ff 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(24,144,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(24,144,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-section h1 .highlight {
    color: #1890ff;
    position: relative;
}

.hero-section h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(24,144,255,0.15);
    border-radius: 4px;
}

.hero-section .subtitle {
    font-size: 18px;
    color: #666;
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.hero-section .hero-btns .btn {
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    margin: 0 8px 12px;
    transition: all 0.3s;
}

.hero-section .hero-btns .btn-primary {
    background: #1890ff;
    border-color: #1890ff;
    box-shadow: 0 4px 14px rgba(24,144,255,0.35);
}

.hero-section .hero-btns .btn-primary:hover {
    background: #40a9ff;
    border-color: #40a9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24,144,255,0.45);
}

.hero-section .hero-btns .btn-outline-primary {
    color: #1890ff;
    border-color: #1890ff;
    background: #fff;
}

.hero-section .hero-btns .btn-outline-primary:hover {
    background: #1890ff;
    color: #fff;
    transform: translateY(-2px);
}

/* ===== Hero下方三个快速入口卡片 ===== */
.hero-features {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.hero-features .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    background: #fff;
    transition: all 0.3s;
    cursor: default;
}

.hero-features .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.hero-features .card .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.hero-features .card .feature-icon.blue {
    background: rgba(24,144,255,0.1);
    color: #1890ff;
}

.hero-features .card .feature-icon.green {
    background: rgba(82,196,26,0.1);
    color: #52c41a;
}

.hero-features .card .feature-icon.orange {
    background: rgba(255,152,0,0.1);
    color: #fa8c16;
}

.hero-features .card h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.hero-features .card p {
    font-size: 14px;
    color: #888;
    margin: 0;
    line-height: 1.6;
}

/* ===== 通用section标题 ===== */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.section-title h2 .highlight {
    color: #1890ff;
}

.section-title p {
    font-size: 16px;
    color: #888;
    max-width: 560px;
    margin: 0 auto;
}

/* ===== 产品优势 - 特性网格 ===== */
.features-grid {
    padding: 80px 0;
    background: #fafafa;
}

.feature-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.feature-item .feat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    background: rgba(24,144,255,0.1);
    color: #1890ff;
}

.feature-item h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.feature-item p {
    font-size: 13px;
    color: #999;
    line-height: 1.7;
    margin: 0;
}

/* ===== 使用流程 ===== */
.steps-section {
    padding: 80px 0;
}

.step-card {
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.step-card .step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1890ff;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(24,144,255,0.3);
}

.step-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* ===== 套餐价格 ===== */
.pricing-section {
    padding: 80px 0;
    background: #fafafa;
}

.pricing-card {
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 0;
    background: #fff;
    text-align: center;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border-color: #1890ff;
    box-shadow: 0 8px 30px rgba(24,144,255,0.15);
}

.pricing-card .pricing-badge {
    background: #1890ff;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    position: absolute;
    top: 16px;
    right: -28px;
    transform: rotate(45deg);
    width: 100px;
}

.pricing-card .pricing-header {
    padding: 32px 24px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.pricing-card .pricing-header h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.pricing-card .pricing-header .price {
    font-size: 40px;
    font-weight: 800;
    color: #1890ff;
}

.pricing-card .pricing-header .price .currency {
    font-size: 20px;
    font-weight: 600;
}

.pricing-card .pricing-header .price .period {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.pricing-card .pricing-body {
    padding: 24px;
}

.pricing-card .pricing-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card .pricing-body ul li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f8f8f8;
}

.pricing-card .pricing-body ul li:last-child {
    border-bottom: none;
}

.pricing-card .pricing-body ul li i {
    margin-right: 8px;
    font-size: 12px;
}

.pricing-card .pricing-body ul li .fa-check {
    color: #52c41a;
}

.pricing-card .pricing-body ul li .fa-times {
    color: #d9d9d9;
}

.pricing-card .pricing-footer {
    padding: 0 24px 32px;
}

.pricing-card .pricing-footer .btn {
    padding: 10px 32px;
    border-radius: 6px;
    font-weight: 600;
}

.pricing-card.featured .pricing-footer .btn {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

.pricing-card.featured .pricing-footer .btn:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

/* ===== 数据/品牌展示 ===== */
.stats-section {
    padding: 60px 0;
    background: #1a1a2e;
    color: #fff;
}

.stats-section .stat-item {
    text-align: center;
    padding: 20px 0;
}

.stats-section .stat-item .stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #1890ff;
}

.stats-section .stat-item .stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* ===== CTA区域 ===== */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 32px;
}

.cta-section .btn {
    padding: 14px 48px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    background: #fff;
    color: #1890ff;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    background: #f8f8f8;
}

/* ===== 页脚 ===== */
.footer-flbook {
    background: #1a1a2e;
    color: rgba(255,255,255,0.5);
    padding: 40px 0 24px;
    font-size: 13px;
}

.footer-flbook h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 14px;
}

.footer-flbook a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 8px;
}

.footer-flbook a:hover {
    color: #1890ff;
}

.footer-flbook .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    margin-top: 32px;
    text-align: center;
}

/* ===== 内部页面通用样式 ===== */
.page-section {
    padding: 40px 0;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 600;
    font-size: 15px;
}

/* 页面缩略图卡片 */
.page-card {
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.page-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #1890ff;
}

.page-card.border-success {
    border-color: #52c41a;
}

.page-card .card-body {
    padding: 6px;
}

.page-thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* 按钮 */
.btn-primary {
    background: #1890ff;
    border-color: #1890ff;
}

.btn-primary:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

.btn-outline-primary {
    color: #1890ff;
    border-color: #1890ff;
}

.btn-outline-primary:hover {
    background: #1890ff;
    border-color: #1890ff;
}

/* 进度条 */
.progress {
    border-radius: 10px;
    background: #f0f0f0;
}

.progress-bar {
    border-radius: 10px;
}

/* 动画 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.4s ease-out;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 28px;
    }
    .hero-section .subtitle {
        font-size: 15px;
    }
    .hero-section {
        padding: 48px 0 40px;
    }
    .section-title h2 {
        font-size: 24px;
    }
    .stats-section .stat-item .stat-number {
        font-size: 28px;
    }
    .navbar-flbook .navbar-nav .nav-link {
        padding: 10px 16px !important;
    }
    .pricing-card {
        margin-bottom: 20px;
    }
}