/* ============================================================
   index.css —— 首页（index.html）独有样式
   HERO 轮播 / 服务分类卡片 / 联系卡片
   瀑布流 .masonry 为多页共用组件，已移至公共 css/style.css
   依赖公共 css/style.css（变量、布局、按钮、section 头等）
   ============================================================ */

/* ============ HERO 轮播 ============ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
}
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.72) saturate(1.02);
    animation: kenburns 12s ease-out forwards;
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14); } }

.hero-veil {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(10,31,71,0.82) 0%, rgba(16,51,109,0.45) 45%, rgba(16,51,109,0.15) 100%);
}

.hero-inner {
    position: relative; z-index: 3;
    height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 1240px; margin: 0 auto; padding: 0 3.2rem;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    align-self: flex-start;
    background: rgba(255,255,255,0.14); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff; padding: 0.5rem 1.3rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
    margin-bottom: 1.6rem;
}
.hero-eyebrow i { color: var(--sky-blue); }
.hero-title {
    font-size: clamp(2.6rem, 6vw, 5rem);
    color: #fff; font-weight: 700; margin-bottom: 1.4rem;
    text-shadow: 0 6px 40px rgba(0,0,0,0.35);
    max-width: 15ch;
}
.hero-title em { font-style: italic; color: var(--sky-blue); font-weight: 500; }
.hero-sub {
    color: rgba(255,255,255,0.88); font-size: 1.12rem; font-weight: 300;
    max-width: 540px; margin-bottom: 2.4rem; line-height: 1.85;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 2.4rem; left: 3.2rem; z-index: 4; display: flex; gap: 0.6rem; }
.hero-dots button {
    width: 34px; height: 4px; border-radius: 4px; border: none; cursor: pointer;
    background: rgba(255,255,255,0.35); transition: all 0.4s var(--ease);
}
.hero-dots button.active { background: var(--sky-blue); width: 56px; }

.hero-scroll {
    position: absolute; bottom: 2.2rem; right: 3.2rem; z-index: 4;
    color: rgba(255,255,255,0.7); font-size: 0.75rem; letter-spacing: 0.2em;
    text-transform: uppercase; display: flex; align-items: center; gap: 0.7rem;
    writing-mode: vertical-rl;
}
.hero-scroll::after { content: ''; width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,0.7), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ============ 服务分类卡片 ============ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.svc-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(28,79,161,0.06);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
    display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.svc-media { position: relative; height: 230px; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.09); }
.svc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,31,71,0.55), transparent 60%); }
.svc-icon {
    position: absolute; top: -27px; left: 1.8rem; z-index: 3;
    width: 54px; height: 54px; border-radius: 16px;
    background: linear-gradient(135deg, var(--sky-blue), var(--color-primary));
    display: grid; place-items: center; color: #fff; font-size: 1.3rem;
    box-shadow: 0 10px 24px rgba(28,79,161,0.4);
}
.svc-body { position: relative; padding: 2.6rem 1.8rem 1.9rem; flex: 1; display: flex; flex-direction: column; }
.svc-body h3 { font-size: 1.4rem; color: var(--color-text-main); margin-bottom: 0.7rem; }
.svc-body p { color: var(--color-text-secondary); font-size: 0.94rem; font-weight: 300; margin-bottom: 1.3rem; flex: 1; }
.svc-link { color: var(--color-primary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.45rem; transition: gap 0.3s var(--ease); }
.svc-link:hover { gap: 0.85rem; color: var(--color-primary-dark); }

/* ============ 联系 / 内容卡片（首页专用） ============ */
.contact-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1fr 1fr;
}
.contact-media { position: relative; min-height: 380px; }
.contact-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-body { padding: 3.2rem; }
.contact-body h3 { font-size: 2rem; margin-bottom: 1rem; }
.contact-body > p { color: var(--color-text-secondary); font-weight: 300; margin-bottom: 2rem; }

/* ============================================================
   RESPONSIVE —— 首页独有组件
============================================================ */
@media (max-width: 1200px) {
    .hero-inner { padding: 0 2.4rem; }
    .hero-dots { left: 2.4rem; }
    .hero-scroll { right: 2.4rem; }
}

@media (max-width: 992px) {
    .svc-grid { grid-template-columns: 1fr 1fr; }
    .contact-card { grid-template-columns: 1fr; }
    .contact-media { min-height: 260px; }
}

@media (max-width: 768px) {
    .hero-inner { padding: 0 1.5rem; }
    .hero { min-height: 560px; }
    .hero-dots { left: 1.5rem; bottom: 1.8rem; }
    .hero-scroll { display: none; }
    .hero-sub { font-size: 1rem; }
    .svc-grid { grid-template-columns: 1fr; }
    .contact-body { padding: 2.2rem 1.6rem; }
}
