/* ===== 首页专属样式 ===== */

/* --- 轮播 --- */
.hero-section { position: relative; width: 100%; height: 620px; overflow: hidden; background-color: var(--primary); }
.hero-section .slide {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease; z-index: 1;
}
.hero-section .slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-section .slide::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,54,93,0.85), rgba(26,54,93,0.55));
}
.hero-section .content {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); text-align: center;
    color: #fff; width: 90%; max-width: 1150px; z-index: 3;
}
.hero-section .content h1 { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 25px; color: #fff; text-shadow: 0 2px 15px rgba(0,0,0,0.4); }
.hero-section .content p { font-size: 18px; line-height: 1.7; color: #D1D9E6; margin-bottom: 40px; max-width: 850px; margin-left: auto; margin-right: auto; }
.hero-section .btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero-section .btns a {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    line-height: 1.4;
}

/* 实心蓝色按钮 */
.hero-section .hero-btn-solid {
    background-color: #2B6CB0 !important;
    color: #fff !important;
    border: 2px solid #2B6CB0 !important;
}
.hero-section .hero-btn-solid:hover {
    background-color: #1E4E8C !important;
    border-color: #1E4E8C !important;
    color: #fff !important;
}

/* 透明描边按钮：默认透明，hover 变白 */
.hero-section .hero-btn-outline {
    background-color: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}
.hero-section .hero-btn-outline:hover {
    background-color: #fff !important;
    color: #1A365D !important;
    border-color: #fff !important;
}

.hero-section .dots { position: absolute; bottom: 25px; left: 0; width: 100%; text-align: center; z-index: 10; }
.hero-section .dots span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); margin: 0 5px; cursor: pointer; transition: all 0.3s; }
.hero-section .dots span.active { background: #fff; width: 32px; border-radius: 6px; }

/* --- 主要产品 --- */
.products { padding: 80px 0; background-color: var(--bg-light); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.product-card { background-color: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid var(--border); display: flex; flex-direction: column; transition: transform 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(43, 108, 176, 0.15); border-color: rgba(43, 108, 176, 0.2); }
.product-img { height: 200px; background-color: #D9E2EC; background-size: cover; background-position: center; }
.product-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; font-weight: 700; }
.product-info p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-info .view-btn { display: block; text-align: center; background-color: var(--bg-light) !important; color: var(--accent) !important; padding: 10px; border-radius: 4px; font-weight: 600; font-size: 14px; }
.product-card:hover .view-btn { background-color: var(--accent) !important; color: var(--white) !important; }
.more-btn-box { text-align: center; margin-top: 40px; }
.more-btn { display: inline-block; padding: 12px 40px !important; background-color: var(--white) !important; color: var(--primary) !important; border: 2px solid var(--primary) !important; border-radius: 4px; font-weight: 700; font-size: 15px; }
.more-btn:hover { background-color: var(--primary) !important; color: var(--white) !important; }

/* --- 关于我们 --- */
.about-stats { padding: 80px 0; }
.about-content { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-text h2 { font-size: 32px; color: var(--primary); margin-bottom: 20px; font-weight: 800; }
.about-text p { color: var(--text-light); margin-bottom: 20px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.stat-item { border-left: 3px solid var(--accent); padding-left: 15px; }
.stat-item h4 { font-size: 28px; color: var(--primary); font-weight: 800; }
.stat-item p { font-size: 14px; color: var(--text-light); }
.about-img { flex: 1; height: 400px; background-color: #D9E2EC; background-size: cover; background-position: center; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.about-btn { display: inline-block; margin-top: 25px; padding: 12px 35px !important; background-color: var(--accent) !important; color: var(--white) !important; border-radius: 4px; font-weight: 700; }
.about-btn:hover { background-color: var(--accent-hover) !important; color: var(--white) !important; }

/* --- 新闻 --- */
.news-section { padding: 80px 0; background-color: var(--bg-light); }
.news-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}
.news-col {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.news-col-header { padding: 20px 25px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.news-col-header h3 { font-size: 18px; color: var(--primary); font-weight: 700; }
.news-col-header a { font-size: 13px; color: var(--accent) !important; font-weight: 600; }
.ind-container .news-list { padding: 15px 25px; flex-grow: 1; }
.news-list li { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.news-list li:last-child { border-bottom: none; }
.news-list li a { display: block; font-size: 14px; color: var(--text-main) !important; margin-bottom: 5px; }
.news-list li a:hover { color: var(--accent) !important; }
.news-list li span { font-size: 12px; color: var(--text-light); }

/* --- FAQ --- */
.faq-section { padding: 80px 0; background-color: var(--white); }
.faq-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
details { background-color: var(--bg-light); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 15px; }
details[open] { border-color: var(--accent); }
summary { padding: 18px 25px; font-size: 16px; font-weight: 700; color: var(--primary); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 22px; color: var(--accent); }
details[open] summary::after { content: '−'; }
.faq-answer { padding: 20px 25px; font-size: 14px; color: var(--text-light); border-top: 1px solid var(--border); }

/* --- 询盘 --- */
.inquiry-section { padding: 80px 0; background-color: var(--primary); color: var(--white); }
.inquiry-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.inquiry-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 20px; }
.inquiry-text p { color: #D1D9E6; margin-bottom: 20px; font-size: 16px; }
.inquiry-features li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: #E2E8F0; }
.inquiry-features li::before { content: '✓'; color: var(--accent); font-weight: bold; font-size: 18px; }
.inquiry-form { background-color: var(--white); padding: 40px; border-radius: 8px; }
.inquiry-form h3 { color: var(--primary); font-size: 22px; margin-bottom: 25px; font-weight: 800; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; color: var(--primary); margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 14px; color: var(--text-main); background-color: var(--bg-light); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); background-color: var(--white); }
.form-group textarea { height: 100px; resize: vertical; }
.submit-btn { background-color: var(--accent) !important; color: var(--white) !important; border: none; padding: 14px 30px !important; border-radius: 4px; font-weight: 700; font-size: 16px; cursor: pointer; width: 100%; }
.submit-btn:hover { background-color: var(--accent-hover) !important; }

/* --- 友情链接 --- */
.links-section-wrapper { padding: 30px 0; background-color: var(--bg-light); border-top: 1px solid var(--border); }
.links-section-wrapper .ind-container { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.links-section-wrapper span { font-weight: 700; color: var(--primary); font-size: 14px; margin-right: 10px; }
.links-section-wrapper a { font-size: 13px !important; color: var(--text-light) !important; padding: 5px 12px !important; background-color: var(--white) !important; border: 1px solid var(--border) !important; border-radius: 4px !important; }
.links-section-wrapper a:hover { color: var(--accent) !important; border-color: var(--accent) !important; }

/* --- 首页响应式 --- */
@media (max-width: 992px) {
    .about-content { flex-direction: column; gap: 30px; }
    .about-img { width: 100%; height: 300px; }
    .news-layout { grid-template-columns: 1fr; gap: 20px; }
    .faq-layout { grid-template-columns: 1fr; gap: 20px; }
    .inquiry-layout { grid-template-columns: 1fr; gap: 30px; }
    .products, .about-stats, .news-section, .faq-section, .inquiry-section { padding: 60px 0; }
}

@media (max-width: 768px) {
    /* 轮播 */
    .hero-section { height: 460px; }
    .hero-section .content { width: 92%; }
    .hero-section .content h1 { font-size: 26px; margin-bottom: 15px; }
    .hero-section .content p { font-size: 14px; margin-bottom: 25px; }
    .hero-section .btns { flex-direction: column; gap: 10px; align-items: stretch; max-width: 260px; margin: 0 auto; }
    .hero-section .btns a { padding: 13px 20px; font-size: 14px; text-align: center; }
    .hero-section .dots { bottom: 15px; }

    /* 标题 */
    .section-title { margin-bottom: 30px; }
    .section-title h2 { font-size: 22px; }
    .section-title p { font-size: 14px; margin-top: 10px; }

    /* 产品网格：单列 */
    .product-grid { grid-template-columns: 1fr; gap: 18px; }
    .product-img { height: 220px; }
    .product-info { padding: 16px; }
    .product-info h3 { font-size: 17px; }
    .product-info p { font-size: 13.5px; }

    /* 关于我们 */
    .about-text h2 { font-size: 22px; }
    .about-text p { font-size: 14px; }
    .stats-grid { gap: 15px; }
    .stat-item h4 { font-size: 22px; }
    .stat-item p { font-size: 13px; }
    .about-img { height: 240px; }
    .about-btn { width: 100%; text-align: center; padding: 13px 25px !important; }

    /* 新闻三列：单列 */
    .news-col-header { padding: 15px 20px; }
    .news-col-header h3 { font-size: 16px; }
    .ind-container .news-list { padding: 10px 20px; }
    .news-list li { padding: 10px 0; }
    .news-list li a { font-size: 13.5px; }
    .news-list li span { font-size: 11.5px; }

    /* FAQ */
    .faq-layout { gap: 15px; }
    .faq-section summary { padding: 14px 18px; font-size: 14.5px; }
    .faq-answer { padding: 15px 18px; font-size: 13.5px; }

    /* 询盘 */
    .inquiry-section { padding: 50px 0; }
    .inquiry-text h2 { font-size: 22px; }
    .inquiry-text p { font-size: 14px; }
    .inquiry-features li { font-size: 14px; margin-bottom: 10px; }
    .inquiry-form { padding: 22px; }
    .inquiry-form h3 { font-size: 18px; margin-bottom: 18px; }
    .form-group { margin-bottom: 15px; }
    .form-group label { font-size: 13px; }
    .form-group input,
    .form-group textarea { padding: 11px 13px; font-size: 14px; }
    .submit-btn { padding: 14px 20px !important; font-size: 15px; }

    /* 友情链接 */
    .links-section-wrapper .ind-container { gap: 8px; }
    .links-section-wrapper a { font-size: 12px !important; padding: 4px 10px !important; }
}

@media (max-width: 480px) {
    .hero-section { height: 400px; }
    .hero-section .content h1 { font-size: 22px; }
    .hero-section .content p { font-size: 13px; }
    .stat-item h4 { font-size: 20px; }
}
/* 询盘表单必填星号 */
.required-mark {
    color: #E53E3E;
    font-weight: 700;
    margin-left: 2px;
}