/* templet7 home */
.t7-home { padding-bottom: 0; }

/* Full-bleed hero */
.t7-hero {
    position: relative;
    width: 100%;
}
.t7-hero-swiper {
    width: 100%;
    overflow: hidden;
    background: #1b1f24;
}
.t7-hero-slide {
    min-height: clamp(280px, 42vw, 520px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.t7-hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.t7-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(27, 31, 36, .72) 0%, rgba(27, 31, 36, .25) 55%, transparent 100%);
}
.t7-hero-slide.has-image:not(:has(.t7-hero-copy))::before {
    background: transparent;
}
.t7-hero-copy {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 560px;
    padding: 40px 0;
}
.t7-hero-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--t7-accent);
    font-weight: 600;
}
.t7-hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}
.t7-hero-copy span {
    display: block;
    margin-bottom: 24px;
    opacity: .88;
    font-size: 16px;
    line-height: 1.6;
}
.t7-btn-hero {
    background: var(--t7-accent);
    padding: 12px 32px;
    font-size: 15px;
}
.t7-btn-hero:hover { background: var(--t7-accent-dark); }

.t7-hero-a {
    background: linear-gradient(135deg, #1b1f24 0%, #1e6fd9 100%);
}
.t7-hero-b {
    background: linear-gradient(145deg, #1b1f24 0%, #1558b0 50%, #1e6fd9 100%);
}
.t7-hero-c {
    background: linear-gradient(160deg, #1b1f24 0%, #2d3748 50%, #1e6fd9 100%);
}

.t7-hero-swiper .swiper-button-prev,
.t7-hero-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    background: rgba(255, 255, 255, .15);
    border-radius: var(--t7-radius);
    color: #fff;
    backdrop-filter: blur(4px);
}
.t7-hero-swiper .swiper-button-prev::after,
.t7-hero-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}
.t7-hero-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, .5);
    opacity: 1;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    transition: width .2s;
}
.t7-hero-swiper .swiper-pagination-bullet-active {
    background: var(--t7-accent);
    width: 24px;
}

/* Section headings */
.t7-section-head {
    margin-bottom: 24px;
}
.t7-section-head h2 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 800;
    color: var(--t7-text);
    line-height: 1.2;
}
.t7-section-head em {
    display: block;
    font-style: normal;
    font-size: 12px;
    letter-spacing: .18em;
    color: var(--t7-primary);
    font-weight: 600;
}
.t7-section-head-center { text-align: center; }
.t7-section-head-light h2 { color: #fff; }
.t7-section-head-light em { color: rgba(255, 255, 255, .7); }

/* About */
.t7-about {
    padding: 56px 0;
    background: var(--t7-white);
}
.t7-about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.t7-about-body {
    color: var(--t7-muted);
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 24px;
}
.t7-about-media {
    border-radius: var(--t7-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #eef1f5;
}
.t7-about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.t7-about-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e6fd9 0%, #1b1f24 100%);
    color: rgba(255, 255, 255, .3);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .2em;
}

/* Product floors */
.t7-floor {
    padding: 48px 0 24px;
    background: var(--t7-bg);
}
.t7-floor-tabbed {
    background: var(--t7-white);
    padding: 48px 0;
}
.t7-floor-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.t7-floor-link {
    color: var(--t7-muted);
    font-size: 14px;
    white-space: nowrap;
    transition: color .2s;
}
.t7-floor-link:hover { color: var(--t7-primary); }

.t7-floor-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.t7-floor-tab {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 20px;
    border: 1px solid var(--t7-line);
    border-radius: var(--t7-radius);
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}
.t7-floor-tab:hover {
    border-color: var(--t7-primary);
    color: var(--t7-primary);
}
.t7-floor-tab.is-active {
    background: var(--t7-primary);
    border-color: var(--t7-primary);
    color: #fff;
}
.t7-floor-panel { display: none !important; }
.t7-floor-panel.is-active { display: block !important; }
.t7-floor-more {
    text-align: center;
    margin-top: 28px;
}

/* Advantages */
.t7-advantages {
    padding: 56px 0;
    background: var(--t7-primary);
    color: #fff;
}
.t7-adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.t7-adv-item {
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, .08);
    border-radius: var(--t7-radius);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: background .2s;
}
.t7-adv-item:hover { background: rgba(255, 255, 255, .14); }
.t7-adv-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--t7-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}
.t7-adv-item h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}
.t7-adv-item p {
    margin: 0;
    font-size: 13px;
    opacity: .85;
    line-height: 1.6;
}

/* 协议中心 */
.t7-agree {
    padding: 52px 0 56px;
    background: #fff;
}
.t7-agree-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--t7-primary);
}
.t7-agree-head h2 {
    margin: 0 0 6px;
    font-size: 26px;
    color: #1a1a1a;
}
.t7-agree-head p {
    margin: 0;
    color: var(--t7-muted);
    font-size: 13px;
}
.t7-agree-head > span {
    color: var(--t7-primary);
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 700;
    opacity: .85;
}
.t7-agree-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.t7-agree-card {
    display: flex;
    gap: 16px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--t7-line);
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s;
}
.t7-agree-card:hover {
    border-color: var(--t7-primary);
    box-shadow: 0 8px 20px rgba(30, 111, 217, .08);
}
.t7-agree-date {
    width: 72px;
    flex-shrink: 0;
    background: var(--t7-primary);
    color: #fff;
    text-align: center;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.t7-agree-date strong {
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
}
.t7-agree-date em {
    font-style: normal;
    font-size: 11px;
    opacity: .85;
}
.t7-agree-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.t7-agree-body h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.45;
}
.t7-agree-body span {
    color: var(--t7-primary);
    font-size: 13px;
}

/* Dynamic home sections */
.template-templet7 .home-section {
    padding: 24px 0;
}
.template-templet7 .home-section .container {
    width: min(100% - 32px, var(--t7-max));
    margin-inline: auto;
}

@media (max-width: 1024px) {
    .t7-adv-grid { grid-template-columns: repeat(2, 1fr); }
    .t7-about-inner { gap: 32px; }
}

@media (max-width: 768px) {
    .t7-about-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .t7-about-media { order: -1; }
    .t7-adv-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .t7-agree-grid { grid-template-columns: 1fr; }
    .t7-agree-head { flex-direction: column; align-items: flex-start; }
    .t7-hero-copy { padding: 32px 0; }
}

@media (max-width: 480px) {
    .t7-adv-grid { grid-template-columns: 1fr; }
    .t7-floor-tabs { gap: 6px; }
    .t7-floor-tab { padding: 6px 14px; font-size: 13px; }
}
