/* ========================================
   龙山永久墓园 - 样式表
   ======================================== */

/* --- CSS 变量 --- */
:root {
    --color-primary: #2D5A3D;
    --color-primary-dark: #1A3A28;
    --color-primary-light: #E8F0EA;
    --color-accent: #C4A35A;
    --color-text: #2C2C2C;
    --color-text-mid: #666666;
    --color-text-light: #999999;
    --color-white: #FFFFFF;
    --color-bg: #FFFFFF;
    --color-bg-alt: #FAFAF7;
    --font-serif: 'Noto Serif SC', Georgia, serif;
    --font-sans: 'Noto Sans SC', system-ui, sans-serif;
    --max-width: 1200px;
    --radius: 4px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --transition: 0.3s ease;
}

/* --- 重置 --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* --- 容器 --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* --- 通用区块 --- */
.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 500;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--color-text-mid);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-action {
    text-align: center;
    margin-top: 48px;
}

/* --- 按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-block {
    width: 100%;
}

/* --- 箭头链接 --- */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 15px;
    transition: gap var(--transition);
}

.link-arrow::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 1px;
    background: var(--color-primary);
    position: relative;
    transition: width var(--transition);
}

.link-arrow::after {
    content: '→';
    width: auto;
    height: auto;
    background: none;
}

.link-arrow:hover {
    gap: 10px;
}

/* ========================================
   导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 90px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-light .logo-image {
    filter: brightness(0) invert(1);
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.nav-link {
    font-size: 14px;
    color: var(--color-text-mid);
    padding: 8px 0;
    position: relative;
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 15px;
    flex-shrink: 0;
}

.header-phone svg {
    width: 18px;
    height: 18px;
}

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

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,58,40,0.65);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    padding: 120px 24px 80px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease forwards;
}

.hero-logo {
    max-height: 100px;
    width: auto;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 4px;
    opacity: 0.9;
    margin-bottom: 48px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-actions .btn-outline {
    color: var(--color-white);
    border-color: var(--color-white);
}

.hero-actions .btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--color-white);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.hero-scroll svg {
    width: 28px;
    height: 28px;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   关于龙山
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text .section-eyebrow {
    text-align: left;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-desc {
    font-size: 16px;
    line-height: 2;
    color: var(--color-text-mid);
    margin-bottom: 32px;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

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

/* ========================================
   园区环境
   ======================================== */
.park-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.park-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.park-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.park-item:hover .park-img img {
    transform: scale(1.05);
}

/* ========================================
   福位展示
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    overflow: hidden;
    background: #ffffff;
    height: 220px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 12px 20px 16px;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.product-desc {
    font-size: 13px;
    color: var(--color-text-mid);
    line-height: 1.6;
    margin-bottom: 12px;
}
.desc-first-line {
    display: block;
    font-weight: 500;
    color: var(--color-text);
}

.desc-rest {
    display: block;
    margin-top: 4px;
}

/* ========================================
   业务流程
   ======================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 32px 20px;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -16px;
    width: 32px;
    height: 1px;
    background: var(--color-accent);
    transform: translateY(-50%);
}

.process-step:nth-child(3n)::after {
    display: none;
}

.step-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--color-primary);
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.step-icon svg {
    width: 32px;
    height: 32px;
}

.process-step:hover .step-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.step-number {
    display: block;
    font-size: 12px;
    color: var(--color-accent);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.step-desc {
    font-size: 14px;
    color: var(--color-text-mid);
    line-height: 1.7;
}

/* ========================================
   新闻资讯
   ======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.news-card {
    display: flex;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: all var(--transition);
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card-link:hover .news-card {
    background: rgba(45, 90, 61, 0.03);
}

.news-card-link:hover .news-title {
    color: var(--color-primary);
}

.news-card-date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 24px;
}

.news-day {
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
}

.news-month-year {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.news-card-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.5;
}

.news-excerpt {
    font-size: 13px;
    color: var(--color-text-mid);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   联系我们
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-eyebrow,
.contact-info .section-title {
    text-align: left;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

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

.contact-item p,
.contact-item a {
    font-size: 14px;
    color: var(--color-text-mid);
    line-height: 1.6;
}

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

.contact-form-wrap {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--color-text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius);
    background: var(--color-bg);
    transition: border-color var(--transition);
    font-size: 15px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr auto;
    gap: 2px;
    align-items: start;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 4px;
}

.footer-links ul li a {
    font-size: 14px;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--color-white);
}

.footer-contact p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: 8px;
    white-space: nowrap;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.5;
}

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

.footer-qrcodes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
}

.contact-qrcodes {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.contact-qrcodes .qrcode-item {
    text-align: center;
}

.contact-qrcodes .qrcode-item img {
    width: 100px;
    height: 100px;
    background: #fff;
    padding: 4px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.contact-qrcodes .qrcode-item p {
    font-size: 13px;
    color: var(--color-text);
    margin: 0;
    white-space: nowrap;
}

.qrcode-item {
    text-align: center;
}

.qrcode-item img {
    width: 80px;
    height: 80px;
    background: #fff;
    padding: 4px;
    border-radius: 4px;
    margin-bottom: 6px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.qrcode-item p {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    white-space: nowrap;
}

/* ========================================
   滚动动画
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   响应式 - 平板
   ======================================== */
@media (max-width: 1199px) {
    .nav {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .header-phone span {
        display: none;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .about-grid {
        gap: 40px;
    }
    
    .park-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step:nth-child(2n)::after {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   响应式 - 手机
   ======================================== */
@media (max-width: 767px) {
    .section {
        padding: 64px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .nav {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        height: calc(100dvh - 90px);
        background: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 32px 24px;
        gap: 0;
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav.open {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 16px;
        padding: 16px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    .menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .header-phone {
        display: none;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: auto;
        min-width: 200px;
        padding: 14px 32px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-image {
        order: -1;
    }
    
    .park-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .process-step::after {
        display: none !important;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrap {
        padding: 28px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ========================================
   无障碍
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
span { font-size: 20px; }
