/* ============================================================
 * by 诗航软件-凯哥 2026.6.16
 * ============================================================ */

/* ============================================================
 * index.css - 首页专用样式
 * ============================================================ */

.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-slides {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease;
}

.banner-slide {
    flex: 0 0 100%;
    max-width: 100%;
    position: relative;
    line-height: 0;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 86, 219, 0.15);
    z-index: 1;
    pointer-events: none;
}

.banner-content {
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 0 20px;
}

.banner-title {
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.banner-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-btn {
    padding: 14px 40px;
    background: #fff;
    color: #1a56db;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.4);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .banner-slide {
        line-height: 0;
    }

    .banner-img {
        width: 100%;
        height: auto;
        display: block;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 1.15rem;
    }

    .banner-btn {
        padding: 10px 26px;
        font-size: 1rem;
    }
}

.services {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1a56db;
    margin-bottom: 20px;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 55px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.service-card {
    background: #fff;
    border-radius: 18px;
    padding: 35px 25px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(26, 86, 219, 0.1);
    border-color: #1a56db;
}

.service-card h3 {
    font-size: 1.35rem;
    color: #1a56db;
    margin-bottom: 8px;
    font-weight: 600;
}

.service-card .service-desc {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    text-align: center;
}

.service-card li {
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    color: #555;
    font-size: 1rem;
}

.service-card li:last-child {
    border-bottom: none;
}

.service-card .price {
    font-size: 1.8rem;
    color: #dc2626;
    font-weight: bold;
    margin-top: 18px;
    display: block;
}

.service-card .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #1a56db 0%, #1d4ed8 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-card .btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1a365d 100%);
    transform: translateY(-2px);
}

.mt-5 {
    margin-top: 35px;
}

.problems {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a56db 0%, #1d4ed8 100%);
}

.problems .section-title {
    color: #fff;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.problem-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.problem-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a56db 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    color: #fff;
}

.problem-card h4 {
    color: #1a56db;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.problem-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.advantages {
    padding: 50px 0;
    background: linear-gradient(135deg, #1a56db 0%, #1d4ed8 100%);
}

.advantages-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    max-width: 260px;
    word-break: break-word;
}

.stat-divider {
    width: 1px;
    height: 70px;
    background: rgba(255, 255, 255, 0.3);
}

.advantages-bottom {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.advantage-item {
    flex: 1;
    background: #fff;
    padding: 28px;
    border-radius: 15px;
    text-align: center;
    color: #333;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    min-width: 240px;
}

.advantage-item h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a56db;
}

.advantage-item p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    color: #666;
}

.cases {
    padding: 60px 0;
    background: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.case-card {
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(26, 86, 219, 0.12);
}

.case-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: contain;
    background: #f1f5f9;
}

.case-info {
    padding: 15px;
}

.case-info h4 {
    color: #1a56db;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.case-info p {
    color: #666;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

.news {
    padding: 60px 0;
    background: #fff;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.news-featured {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.news-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.news-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.news-featured-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.news-featured-content h3 a {
    color: #fff;
    text-decoration: none;
}

.news-featured-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-featured-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a56db;
    padding: 8px 15px;
    border-radius: 8px;
}

.date-day {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.date-month {
    font-size: 0.95rem;
    opacity: 0.9;
}

.news-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.news-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: #e0ebff;
}

.news-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding: 10px 5px;
    background: #1a56db;
    color: #fff;
    border-radius: 6px;
    flex-shrink: 0;
}

.date-num {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
}

.date-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-content h4 {
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.news-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h4 a:hover {
    color: #1a56db;
}

.news-content p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cta {
    padding: 70px 0;
    background: linear-gradient(135deg, #1a56db 0%, #1d4ed8 100%);
    text-align: center;
    color: #fff;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.cta p {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta .btn {
    padding: 14px 40px;
    background: #fff;
    color: #1a56db;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.contact-form {
    margin-top: 45px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.form-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact-form textarea {
    flex: 1;
    min-height: 55px;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #333;
    font-size: 1rem;
    resize: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form textarea:focus {
    outline: none;
    border-color: #1a56db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.contact-form input {
    width: 90px;
    padding: 14px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #333;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    font-family: monospace;
    letter-spacing: 2px;
}

.contact-form input:focus {
    outline: none;
    border-color: #1a56db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.captcha-code {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 55px;
    padding: 0 15px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    color: #1a56db;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.captcha-code:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.form-btn {
    min-width: 90px;
    height: 55px;
    padding: 0 15px;
    background: linear-gradient(135deg, #1a56db 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.3);
    text-align: center;
    flex-shrink: 0;
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.4);
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .news-featured img {
        min-height: 250px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 18px;
    }

    .advantages-top {
        gap: 30px;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .stat-item {
        flex: 1 1 40%;
    }

    .stat-divider {
        display: none;
    }

    .stat-number {
        font-size: 3rem;
    }

    .advantages-bottom {
        flex-direction: column;
    }

    .advantage-item {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.9rem;
        margin-bottom: 16px;
    }

    .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }

    .services,
    .problems,
    .cases,
    .news {
        padding: 50px 0;
    }

    .advantages {
        padding: 40px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    .service-card .service-desc {
        font-size: 1rem;
    }

    .service-card li {
        font-size: 1rem;
    }

    .problems-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .problem-card h3 {
        font-size: 1.3rem;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .case-card img {
        aspect-ratio: 16/10;
    }

    .news-columns {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-item {
        padding: 12px;
    }

    .news-date-badge {
        min-width: 44px;
        padding: 8px 4px;
    }

    .news-content h4 {
        font-size: 1.05rem;
    }

    .news-content p {
        font-size: 0.95rem;
    }

    .cta {
        padding: 50px 0;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1.05rem;
    }

    .contact-form {
        padding: 18px;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .contact-form textarea {
        width: 100%;
    }

    .captcha-code,
    .form-btn {
        height: 48px;
    }

    .stat-item {
        flex: 1 1 100%;
    }

    .stat-text {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 14px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .banner-slide {
        line-height: 0;
    }

    .banner-img {
        width: 100%;
        height: auto;
        display: block;
    }

    .banner-title {
        font-size: 1.7rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .service-card .price {
        font-size: 1.5rem;
    }

    .problem-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
}