/* ============================================
   主页样式 - Apple 风格
   ============================================ */

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    background: #ffffff;
    padding: 48px 0 40px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    color: #1d1d1f;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: #000;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #86868b;
    margin-bottom: 24px;
    line-height: 1.65;
    font-weight: 400;
}

.hero-subtitle br {
    display: block;
    margin-top: 6px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-actions .btn-primary {
    background: #0071e3;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
}

.hero-actions .btn-primary:hover {
    background: #0077ed;
}

.hero-actions .btn-outline {
    background: transparent;
    color: #0071e3;
    border: 1px solid #0071e3;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.hero-actions .btn-outline:hover {
    background: #0071e3;
    color: #fff;
}

.hero-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-badges span {
    font-size: 0.85rem;
    color: #86868b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-badges span i {
    color: #34c759;
    font-size: 0.8rem;
}

/* Hero 右侧产品图 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 760px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.carousel-slide {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d2d2d7;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #0071e3;
    width: 24px;
    border-radius: 4px;
}

/* ===== 顶部 Banner ===== */
.top-banner {
    background: #f5f5f7;
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid #d2d2d7;
}

.top-banner p {
    font-size: 0.9rem;
    color: #86868b;
}

.top-banner a {
    color: #0071e3;
    text-decoration: none;
}

.top-banner a:hover {
    text-decoration: underline;
}

/* ===== Section 通用 ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0071e3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.15rem;
    color: #86868b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== 困境区块 ===== */
.pain-section {
    background: #ffffff;
    padding: 100px 0;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pain-card {
    background: #f5f5f7;
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.3s;
}

.pain-card:hover {
    background: #fafafa;
    transform: translateY(-4px);
}

.pain-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #ff3b30;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pain-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.pain-card p {
    font-size: 0.95rem;
    color: #86868b;
    line-height: 1.65;
}

/* ===== 方案区块 ===== */
.solution-section {
    background: #f5f5f7;
    padding: 100px 0;
}

.solution-flow {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.flow-step {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.flow-num {
    background: #0071e3;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    letter-spacing: 0.05em;
}

.flow-content {
    padding: 28px;
}

.flow-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.flow-content p {
    font-size: 0.95rem;
    color: #86868b;
    line-height: 1.7;
}

.flow-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fafafa;
    border-radius: 12px;
    padding: 8px;
}

.flow-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flow-arrow {
    display: flex;
    align-items: center;
    padding-top: 80px;
    color: #d2d2d7;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ===== 计费模式 ===== */
.billing-section {
    background: #ffffff;
    padding: 100px 0;
}

.billing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.billing-card {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid #d2d2d7;
    border-radius: 20px;
    transition: all 0.3s;
}

.billing-card:hover {
    border-color: #0071e3;
    box-shadow: 0 4px 20px rgba(0,113,227,0.1);
}

.billing-icon {
    width: 56px;
    height: 56px;
    background: #f5f5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.4rem;
    color: #0071e3;
}

.billing-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.billing-card p {
    font-size: 0.9rem;
    color: #86868b;
    line-height: 1.6;
}

/* ===== 产品展示 ===== */
.products-section {
    background: #f5f5f7;
    padding: 100px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.product-card.feature {
    border: 2px solid #0071e3;
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #0071e3;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 980px;
    letter-spacing: 0.05em;
}

.product-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f7;
    padding: 12px;
    border-radius: 16px 16px 0 0;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 28px;
}

.product-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 14px;
}

.product-info ul {
    list-style: none;
    margin-bottom: 16px;
}

.product-info ul li {
    font-size: 0.9rem;
    color: #86868b;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.product-info ul li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #0071e3;
    font-weight: bold;
}

.product-price {
    font-size: 0.9rem;
    color: #86868b;
}

.product-price strong {
    color: #1d1d1f;
    font-size: 1.2rem;
}

/* ===== 改造案例 ===== */
.cases-section {
    background: #ffffff;
    padding: 100px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 20px;
}

.case-card {
    background: #f5f5f7;
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    transition: all 0.3s;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.case-card.main-case {
    background: #0071e3;
    color: #fff;
}

.case-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 3px 10px;
    border-radius: 980px;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.case-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.case-card.main-case .case-icon {
    color: #fff;
}

.case-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: inherit;
    margin-bottom: 12px;
}

.case-desc {
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.85;
    line-height: 1.65;
    margin-bottom: 20px;
}

.case-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.case-link {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.9;
}

.case-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.case-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.case-tags span {
    font-size: 0.75rem;
    color: #86868b;
    background: #fff;
    padding: 4px 10px;
    border-radius: 980px;
}

/* ===== 服务承诺 ===== */
.promise-section {
    background: #f5f5f7;
    padding: 100px 0;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.promise-item {
    text-align: center;
    padding: 32px 16px;
}

.promise-num {
    width: 40px;
    height: 40px;
    background: #0071e3;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 auto 16px;
}

.promise-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.promise-content p {
    font-size: 0.85rem;
    color: #86868b;
    line-height: 1.6;
}

/* ===== CTA ===== */
.cta-section {
    background: #000;
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
}

.cta-content h2 br {
    display: block;
    margin-top: 8px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.cta-section .btn-primary {
    background: #0071e3;
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
}

.cta-section .btn-primary:hover {
    background: #0077ed;
}

.cta-section .btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 16px 32px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-section .btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ===== 页脚 ===== */
.footer {
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 60px 0 30px;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1d1d1f;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-logo i {
    color: #0071e3;
}

.footer-desc {
    color: #86868b;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

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

.social-link {
    width: 36px;
    height: 36px;
    background: #e8e8ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.social-link:hover {
    background: #0071e3;
    color: #fff;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h4 {
    color: #1d1d1f;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

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

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #86868b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #0071e3;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #86868b;
    font-size: 0.85rem;
}

.contact-list i {
    color: #0071e3;
    width: 14px;
}

.footer-bottom {
    border-top: 1px solid #d2d2d7;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: #86868b;
    font-size: 0.8rem;
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #e8e8ed;
    color: #1d1d1f;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0071e3;
    color: #fff;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
        padding: 60px 0;
    }

    .hero-visual {
        order: -1;
    }

    .hero-product-image {
        max-width: 400px;
    }

    .hero-text h1 {
        font-size: 2.6rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .pain-grid,
    .billing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .promise-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .solution-flow {
        flex-direction: column;
    }

    .flow-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }

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

    .pain-grid,
    .billing-grid,
    .products-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .promise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
