@charset "utf-8";
/* ============================================
 * çå®¤å¥¢åé£æ ¼ - ä¸»æ ·å¼è¡¨
 * è®¾è®¡é£æ ¼ï¼æ¸©é¦¨ãç®çº¦ãå¤§æ¹ãå¥¢åæãçå®¤é£
 * ä¸»è²è°ï¼æ·±ç¥ç #d97706 + çå®¶é #b45309
 * ============================================ */

/* ========== CSS Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #2C3E50;
    background: #fafafa;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
ul, ol, li { list-style: none; }
a { color: #7F8C8D; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #d97706; }
img { border: 0; max-width: 100%; vertical-align: middle; }
input, button, select, textarea { font-family: inherit; font-size: inherit; outline: none; border: none; }
button { cursor: pointer; background: none; }
.clearfix::after, .cf::after { content: ""; display: block; clear: both; }
.fl { float: left; }
.fr { float: right; }

/* ========== CSS Variables ========== */
:root {
    --color-primary: #d97706;
    --color-primary-dark: #92400e;
    --color-primary-light: #ea580c;
    --color-gold: #b45309;
    --color-gold-light: #ea580c;
    --color-gold-dark: #78350f;
    --color-primary-pale: #fef3c7;
    --color-accent: #b45309;
    --color-text: #2C3E50;
    --color-text-secondary: #7F8C8D;
    --color-text-muted: #BDC3C7;
    --color-border: #ECEEF0;
    --color-border-light: #F8F9FA;
    --color-border-gold: #FDE68A;
    --color-white: #FFFFFF;
    --color-bg: #fafafa;
    --color-surface: #FFFFFF;
    --color-footer: #2C3E50;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    --container-max: 1200px;
    --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.05);
    --shadow-md: 0 4px 20px rgba(26, 122, 109, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 122, 109, 0.12);
    --shadow-gold: 0 4px 20px rgba(22, 160, 133, 0.15);
    --transition: all 0.3s ease;
    --gradient-gold: linear-gradient(135deg, #b45309 0%, #ea580c 50%, #b45309 100%);
    --gradient-amber: linear-gradient(135deg, #92400e 0%, #d97706 50%, #ea580c 100%);
}

/* ========== Container ========== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* ========== Header - Royal Navigation ========== */
#header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
#header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
}
.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.header-logo img { height: 40px; }
.header-logo .site-name {
    font-size: 21px;
    font-weight: 700;
    background: var(--gradient-amber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}
/* Flat Navigation Menu */
.nav-flat {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
}
.nav-flat > li {
    position: relative;
}
.nav-flat > li > a {
    display: block;
    padding: 25px 22px;
    font-size: 15px;
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    position: relative;
}
.nav-flat > li > a:hover,
.nav-flat > li.active > a {
    color: var(--color-primary);
    border-bottom-color: var(--color-gold);
}
.nav-flat > li > a:hover { background: transparent; }
.nav-flat > li.active > a { background: transparent; }
/* Dropdown - Royal Style */
.nav-flat > li > .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: 2px solid var(--color-gold);
    z-index: 100;
}
.nav-flat > li:hover > .sub-menu { display: block; }
.nav-flat > li > .sub-menu > li > a {
    display: block;
    padding: 11px 22px;
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: var(--transition);
    border-left: 2px solid transparent;
}
.nav-flat > li > .sub-menu > li > a:hover {
    color: var(--color-primary);
    background: var(--color-primary-pale);
    border-left-color: var(--color-gold);
    padding-left: 27px;
}
/* Header Search & Contact */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.header-search {
    display: flex;
    align-items: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition);
}
.header-search:focus-within {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(22, 160, 133, 0.1);
}
.header-search select {
    padding: 7px 10px;
    background: transparent;
    border: none;
    font-size: 13px;
    color: var(--color-text-secondary);
    cursor: pointer;
}
.header-search input {
    padding: 7px 12px;
    width: 150px;
    background: transparent;
    border: none;
    font-size: 13px;
}
.header-search button {
    padding: 7px 16px;
    background: var(--gradient-amber);
    color: #fff;
    font-size: 13px;
    transition: var(--transition);
}
.header-search button:hover { opacity: 0.9; }
.header-tel {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 16px 20px;
    font-size: 13px;
    color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { margin: 0 8px; }

/* ========== Search Section - Royal Hero ========== */
.search-section {
    background: var(--gradient-amber);
    padding: 65px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.search-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at top, rgba(22, 160, 133, 0.15) 0%, transparent 60%);
    pointer-events: none;
}
.search-section::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: var(--gradient-gold);
}
.search-section h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 3px;
    position: relative;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.search-section p {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    margin-bottom: 30px;
    letter-spacing: 1.5px;
    position: relative;
}
.search-box {
    display: flex;
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    border: 1px solid rgba(22, 160, 133, 0.3);
}
.search-box select {
    padding: 14px 18px;
    background: var(--color-bg);
    border: none;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
}
.search-box input {
    flex: 1;
    padding: 14px 22px;
    border: none;
    font-size: 14px;
}
.search-box button {
    padding: 14px 36px;
    background: var(--gradient-amber);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 1px;
}
.search-box button:hover { opacity: 0.9; }
.search-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
}
.search-tabs a {
    padding: 7px 24px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    border: 1px solid rgba(22, 160, 133, 0.3);
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 0.5px;
}
.search-tabs a.active,
.search-tabs a:hover {
    background: rgba(22, 160, 133, 0.15);
    color: #fff;
    border-color: var(--color-gold);
}
.hot-words {
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    position: relative;
}
.hot-words a {
    color: rgba(22, 160, 133, 0.8);
    margin: 0 8px;
}
.hot-words a:hover { color: var(--color-gold-light); text-decoration: underline; }

/* ========== Section Common ========== */
.section {
    max-width: var(--container-max);
    margin: 40px auto;
    padding: 0 20px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}
.section-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-gold);
}
.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    position: relative;
    padding-left: 18px;
    letter-spacing: 1px;
}
.section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 26px;
    background: var(--gradient-amber);
    border-radius: 2px;
}
.section-header .more {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: var(--transition);
    padding: 4px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}
.section-header .more:hover {
    color: var(--color-primary);
    border-color: var(--color-gold);
    background: var(--color-primary-pale);
}

/* ========== Category Navigation Cards ========== */
.category-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 30px auto;
    max-width: var(--container-max);
    padding: 0 20px;
}
.cat-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--color-border-light);
    position: relative;
}
.cat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: var(--transition);
}
.cat-card:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
    border-color: var(--color-border-gold);
}
.cat-card:hover::before { opacity: 1; }
.cat-card a { display: block; padding: 26px 20px; }
.cat-card img { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; margin-bottom: 12px; }
.cat-card h3 { font-size: 16px; font-weight: 600; color: var(--color-text); margin-bottom: 6px; }
.cat-card p { font-size: 12px; color: var(--color-text-muted); }

/* ========== Cemetery Grid ========== */
.cemetery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cemetery-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border-light);
    position: relative;
}
.cemetery-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}
.cemetery-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
}
.cemetery-card:hover::before { opacity: 1; }
.cemetery-card .img-wrap {
    overflow: hidden;
    height: 180px;
}
.cemetery-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cemetery-card:hover .img-wrap img { transform: scale(1.08); }
.cemetery-card .info { padding: 16px; }
.cemetery-card .info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cemetery-card .info .area {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}
.cemetery-card .info .area span {
    display: inline-block;
    padding: 2px 10px;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    border: 1px solid rgba(22, 160, 133, 0.2);
}
.cemetery-card .info .price {
    font-size: 15px;
    color: var(--color-primary);
    font-weight: 700;
}
.cemetery-card .info .price em { font-size: 18px; }

/* ========== News Section ========== */
.news-layout {
    display: flex;
    gap: 30px;
}
.news-left { flex: 1; }
.news-right { width: 350px; flex-shrink: 0; }
.news-list li {
    padding: 13px 0;
    border-bottom: 1px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.news-list li a {
    font-size: 14px;
    color: var(--color-text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 15px;
}
.news-list li a:hover { color: var(--color-primary); }
.news-list li .date { font-size: 12px; color: var(--color-text-muted); flex-shrink: 0; }
.news-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}
.news-thumb-item {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--color-border);
}
.news-thumb-item img { width: 100px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.news-thumb-item .info h4 { font-size: 14px; font-weight: 600; margin-bottom: 5px; color: var(--color-text); }
.news-thumb-item .info p { font-size: 12px; color: var(--color-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ========== Footer ========== */
#footer {
    background: var(--color-footer);
    color: #BDC3C7;
    padding: 40px 0;
    margin-top: 50px;
    position: relative;
}
#footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-gold);
}
.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.footer-inner p { font-size: 13px; margin-bottom: 8px; }
.footer-inner a { color: #BDC3C7; margin: 0 5px; }
.footer-inner a:hover { color: var(--color-gold-light); }
.footer-links { margin-top: 10px; font-size: 12px; }

/* ========== Widget (Side Tools) ========== */
.widget {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.widget a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-amber);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 11px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(22, 160, 133, 0.3);
}
.widget a:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.widget a img { width: 20px; height: 20px; margin-bottom: 2px; filter: brightness(0) invert(1); }

/* ========== List Page ========== */
.list-page { max-width: var(--container-max); margin: 20px auto; padding: 0 20px; }
.filter-bar {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}
.filter-row {
    display: flex;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px dashed var(--color-border);
}
.filter-row:last-child { border-bottom: none; }
.filter-label {
    width: 80px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 30px;
    flex-shrink: 0;
}
.filter-options { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.filter-options a {
    padding: 4px 15px;
    font-size: 13px;
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: var(--transition);
}
.filter-options a:hover,
.filter-options a.active {
    color: #fff;
    background: var(--gradient-amber);
    border-color: var(--color-gold);
}

/* ========== Article/Detail Page ========== */
.article-page { max-width: var(--container-max); margin: 20px auto; padding: 0 20px; }
.article-header {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 30px 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--color-border-light);
    position: relative;
}
.article-header::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gradient-gold);
}
.article-header h1 { font-size: 24px; font-weight: 700; color: var(--color-text); margin-bottom: 14px; }
.article-meta { font-size: 13px; color: var(--color-text-muted); }
.article-meta span { margin: 0 10px; }
.article-content {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 34px;
    box-shadow: var(--shadow-sm);
    line-height: 1.85;
    font-size: 15px;
    border: 1px solid var(--color-border-light);
}
.article-content p { margin-bottom: 16px; }
.article-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 10px 0; }
.article-content h2, .article-content h3 { margin: 22px 0 12px; color: var(--color-text); }

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: var(--transition);
}
.pagination a:hover {
    border-color: var(--color-gold);
    color: var(--color-primary);
}
.pagination .active {
    background: var(--gradient-amber);
    color: #fff;
    border-color: var(--color-gold);
}

/* ========== Responsive ========== */
@media screen and (max-width: 992px) {
    .category-nav { grid-template-columns: repeat(2, 1fr); }
    .cemetery-grid { grid-template-columns: repeat(2, 1fr); }
    .news-layout { flex-direction: column; }
    .news-right { width: 100%; }
    .nav-flat { display: none; }
}
@media screen and (max-width: 768px) {
    .header-inner { height: auto; padding: 10px 15px; flex-wrap: wrap; }
    .header-right { width: 100%; margin-top: 10px; }
    .header-search input { width: 100px; }
    .cemetery-grid { grid-template-columns: 1fr; }
    .category-nav { grid-template-columns: 1fr; }
    .search-section h1 { font-size: 24px; }
    .section { padding: 0 15px; }
}
