/* ============================================
   龙亨环保 - 全局样式
   设计风格：现代科技 + 生态环保
   配色：蓝绿渐变（#0a8e7e → #1eb8a3）
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a8e7e;
    --primary-dark: #066b5e;
    --primary-light: #1eb8a3;
    --accent: #4ecdc4;
    --text: #1a2a32;
    --text-soft: #4a5b66;
    --text-mute: #7d8a93;
    --bg: #ffffff;
    --bg-soft: #f5f9f8;
    --border: #e3ecea;
    --shadow-sm: 0 2px 8px rgba(10, 142, 126, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 142, 126, 0.10);
    --shadow-lg: 0 16px 48px rgba(10, 142, 126, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --container: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--primary); }

img {
    max-width: 100%;
    display: block;
    height: auto;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   顶部导航
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    transition: opacity var(--transition);
}

.site-header.scrolled .brand { color: var(--primary); }

/* 主logo：再次放大一倍，只剩图片 */
.brand-logo {
    width: 152px;
    height: 152px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    transition: filter var(--transition);
}

/* 滚动后保持等比，仅切换滤镜色 */
.site-header.scrolled .brand-logo {
    width: 152px;
    height: 152px;
    filter: brightness(0) saturate(100%) invert(34%) sepia(73%) saturate(495%) hue-rotate(141deg) brightness(95%) contrast(92%);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    justify-content: center;
}

/* 文字保留样式（虽然现在头部已不显示，但 footer 还在用） */
.brand-cn {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-en {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    opacity: 0.85;
    margin-top: 4px;
}

/* 仅 logo 的品牌容器：垂直居中 */
.brand-only-logo {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition);
}

.site-header.scrolled .nav-link {
    color: var(--text);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
    color: var(--primary);
    background: rgba(10, 142, 126, 0.08);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

.site-header.scrolled .menu-toggle span { background: var(--text); }

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero 区
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    transform: scale(1.05);
    animation: heroZoom 8s ease-out forwards;
}

.hero-slide.active {
    opacity: 1;
}

@keyframes heroZoom {
    from { transform: scale(1.15); }
    to   { transform: scale(1.02); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(6, 50, 45, 0.75) 0%,
        rgba(10, 142, 126, 0.55) 50%,
        rgba(30, 184, 163, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    max-width: 900px;
    animation: fadeInUp 1.2s ease 0.3s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.hero-slogan-cn {
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 4px;
    opacity: 0.96;
}

.hero-slogan-en {
    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.85;
    letter-spacing: 1px;
    font-style: italic;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(10, 142, 126, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 142, 126, 0.5);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all var(--transition);
    border: none;
    padding: 0;
}

.dot.active {
    background: #fff;
    width: 32px;
    border-radius: 5px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.7);
    font-size: 36px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-arrow:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.hero-prev { left: 30px; }
.hero-next { right: 30px; }

/* ============================================
   通用 section
   ============================================ */

.section {
    padding: 100px 0;
    position: relative;
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-title-en {
    color: var(--primary);
    font-size: 0.55em;
    font-weight: 600;
    letter-spacing: 4px;
    margin-left: 12px;
    vertical-align: middle;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-sub {
    color: var(--text-soft);
    margin-top: 20px;
    font-size: 15px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   关于我们
   ============================================ */

.about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-soft);
    margin-bottom: 18px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
}

.about-features li:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 22px;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}

.about-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 142, 126, 0.2), transparent);
    z-index: 1;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ============================================
   工程案例
   ============================================ */

.cases {
    background: var(--bg-soft);
}

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

.case-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: all var(--transition);
}

.case-card-lg {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1 / 1;
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 50, 45, 0.85));
    opacity: 0;
    transition: opacity var(--transition);
}

.case-card figcaption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition);
}

.case-card-lg figcaption {
    font-size: 20px;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.case-card:hover::after { opacity: 1; }
.case-card:hover img { transform: scale(1.08); }
.case-card:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   新闻动态
   ============================================ */

.news { background: var(--bg); }

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

.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.news-image {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image { transform: scale(1.05); }

.news-body { padding: 24px; }

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 14px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    /* 兼容 button 重置 */
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    font-family: inherit;
    cursor: pointer;

    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition);
}

.news-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* ============================================
   联系我们
   ============================================ */

.contact {
    background: linear-gradient(135deg, #f5f9f8 0%, #e6f3f0 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

/* 4 张卡片改成 2x2 紧凑网格，去掉大 padding */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* icon 缩小，不再大块占空间 */
.contact-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.contact-item p {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.contact-item a {
    color: var(--primary);
    font-weight: 600;
}

.contact-qr {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.qr-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    flex: 1;
    max-width: 220px;
}

.qr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.qr-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
}

.qr-card p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* ============================================
   页脚
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, #0a3a34 0%, #0a8e7e 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 24px;
}

.brand-footer {
    color: #fff;
    margin-bottom: 16px;
}

.brand-footer .brand-logo {
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.7;
    max-width: 280px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    transition: all var(--transition);
}

.footer-col a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-col li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.footer-bottom p { margin: 4px 0; }

/* ============================================
   浮动客服
   ============================================ */

.fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.fab-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); }

.fab-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all var(--transition);
}

.fab-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    transition: background var(--transition);
}

.fab-item:hover { background: var(--bg-soft); color: var(--primary); }

.fab-icon { font-size: 18px; }

/* ============================================
   响应式
   ============================================ */

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image { aspect-ratio: 16 / 9; }
    .case-grid { grid-template-columns: repeat(3, 1fr); }
    .case-card-lg { grid-column: span 2; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 600px) {
    /* 手机端联系方式保持 2 列紧凑布局 */
    .contact-info { grid-template-columns: 1fr 1fr; gap: 10px; }
    .contact-item { padding: 12px; gap: 10px; }
    .contact-icon { width: 32px; height: 32px; font-size: 16px; }
    .contact-item h4 { font-size: 13px; }
    .contact-item p { font-size: 12px; }
    /* LOGO在手机上略缩，但仍醒目 */
    .brand-logo, .site-header.scrolled .brand-logo { width: 96px; height: 96px; }
    .brand-cn { font-size: 20px; }
    .brand-en { font-size: 12px; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .section-head { margin-bottom: 40px; }

    .menu-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 70px;
        right: 16px;
        left: 16px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        gap: 4px;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .main-nav .nav-link {
        color: var(--text) !important;
        padding: 12px 16px;
        text-align: center;
    }
    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        color: var(--primary) !important;
        background: var(--bg-soft);
    }

    .hero { min-height: 500px; }
    .hero-arrow { display: none; }

    .about-features { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: repeat(2, 1fr); }
    .case-card-lg { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
    .news-grid { grid-template-columns: 1fr; }
    .contact-qr { gap: 12px; }
    .qr-card { padding: 14px; }
    .footer-grid { grid-template-columns: 1fr; }

    .brand-en { display: none; }
    .container { padding: 0 16px; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .case-grid { grid-template-columns: 1fr; }
    .case-card-lg { grid-column: span 1; }
    .contact-qr { flex-direction: column; }
    .qr-card { max-width: 100%; }
}

/* ============================================
   滚动动画
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--primary-light));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* 选中文本 */
::selection {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   案例小提示 & 新闻日期
   ============================================ */

.case-tip {
    text-align: center;
    margin-top: 24px;
    color: var(--text-mute);
    font-size: 14px;
}

.news-date {
    color: var(--text-mute);
    font-size: 12px;
    margin-bottom: 10px;
}

.news-card { cursor: pointer; }
.case-card { user-select: none; }

/* ============================================
   详情弹窗（案例 + 新闻共用）
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    animation: modalFade 0.25s ease;
}

.modal.open { display: block; }

@keyframes modalFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(6, 30, 28, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: calc(100% - 32px);
    margin: 5vh auto;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    animation: modalSlide 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

.modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-body {
    padding: 32px 40px 40px;
}

.modal-body-news { padding: 36px 40px 40px; }

.modal-tag {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.modal-body h2 {
    font-size: 24px;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 700;
}

.modal-body-news h2 { font-size: 26px; }

.modal-date {
    color: var(--text-mute);
    font-size: 13px;
    margin-bottom: 20px;
}

.modal-body p {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.modal-text {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.95;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 12px;
    margin-bottom: 24px;
}

.modal-text::-webkit-scrollbar { width: 6px; }
.modal-text::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

.modal-body .btn {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .modal-dialog { margin: 2vh auto; max-height: 96vh; }
    .modal-body, .modal-body-news { padding: 24px 20px 28px; }
    .modal-body h2, .modal-body-news h2 { font-size: 19px; }
    .modal-close { width: 34px; height: 34px; font-size: 20px; top: 10px; right: 10px; }
}
