@charset "utf-8";
/* ============================================
 * 橙色简约高端模板 - 主样式表
 * 设计风格：简约、高端、大气、扁平化
 * 主色调：橙色 #E67E22
 * ============================================ */

/* ========== CSS Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #333; background: #fafafa; line-height: 1.6; }
ul, ol, li { list-style: none; }
a { color: #555; text-decoration: none; transition: color 0.3s; }
a:hover { color: #E67E22; }
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: #E67E22;
    --color-primary-dark: #D35400;
    --color-primary-light: #F39C12;
    --color-primary-pale: #FDF2E9;
    --color-accent: #E74C3C;
    --color-text: #2C3E50;
    --color-text-secondary: #7F8C8D;
    --color-text-muted: #BDC3C7;
    --color-border: #ECEEF0;
    --color-border-light: #F5F6F8;
    --color-white: #FFFFFF;
    --color-bg: #FAFBFC;
    --color-surface: #FFFFFF;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    --container-max: 1200px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

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

/* ========== Header - Flat Navigation ========== */
#header {
    background: var(--color-white);
    border-bottom: 2px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    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: 20px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}
/* 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: 22px 20px;
    font-size: 16px;
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.nav-flat > li > a:hover,
.nav-flat > li.active > a {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: var(--color-primary-pale);
}
.nav-flat > li > a:hover { background: transparent; }
.nav-flat > li.active > a { background: transparent; }
/* Dropdown - Flat Style */
.nav-flat > li > .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: 3px solid var(--color-primary);
    z-index: 100;
}
.nav-flat > li:hover > .sub-menu { display: block; }
.nav-flat > li > .sub-menu > li > a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: var(--transition);
}
.nav-flat > li > .sub-menu > li > a:hover {
    color: var(--color-primary);
    background: var(--color-primary-pale);
    padding-left: 25px;
}
/* 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-primary); }
.header-search select {
    padding: 6px 8px;
    background: transparent;
    border: none;
    font-size: 13px;
    color: var(--color-text-secondary);
    cursor: pointer;
}
.header-search input {
    padding: 6px 10px;
    width: 140px;
    background: transparent;
    border: none;
    font-size: 13px;
}
.header-search button {
    padding: 6px 14px;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    transition: var(--transition);
}
.header-search button:hover { background: var(--color-primary-dark); }
.header-tel {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 15px 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 ========== */
.search-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: 50px 0;
    text-align: center;
}
.search-section h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}
.search-section p {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    margin-bottom: 25px;
}
.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.search-box select {
    padding: 12px 15px;
    background: var(--color-bg);
    border: none;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
}
.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 14px;
}
.search-box button {
    padding: 12px 30px;
    background: var(--color-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}
.search-box button:hover { background: var(--color-primary-dark); }
.search-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.search-tabs a {
    padding: 6px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
}
.search-tabs a.active,
.search-tabs a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-color: #fff;
}
.hot-words {
    margin-top: 15px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}
.hot-words a {
    color: rgba(255,255,255,0.9);
    margin: 0 8px;
}
.hot-words a:hover { color: #fff; text-decoration: underline; }

/* ========== Section Common ========== */
.section {
    max-width: var(--container-max);
    margin: 30px auto;
    padding: 0 20px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}
.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    position: relative;
    padding-left: 14px;
}
.section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 22px;
    background: var(--color-primary);
    border-radius: 3px;
}
.section-header .more {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: var(--transition);
}
.section-header .more:hover { color: var(--color-primary); }

/* ========== Category Navigation Cards ========== */
.category-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    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;
}
.cat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.cat-card a { display: block; padding: 20px; }
.cat-card img { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; margin-bottom: 10px; }
.cat-card h3 { font-size: 16px; font-weight: 600; color: var(--color-text); margin-bottom: 5px; }
.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);
}
.cemetery-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.cemetery-card .img-wrap {
    overflow: hidden;
    height: 180px;
}
.cemetery-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.cemetery-card:hover .img-wrap img { transform: scale(1.08); }
.cemetery-card .info { padding: 15px; }
.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: 6px;
}
.cemetery-card .info .area span {
    display: inline-block;
    padding: 2px 8px;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
}
.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: 12px 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-primary);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}
.news-thumb-item {
    display: flex;
    gap: 12px;
    padding: 12px 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: #2C3E50;
    color: #BDC3C7;
    padding: 30px 0;
    margin-top: 40px;
}
.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-primary-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(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 11px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.widget a:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.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: 15px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.filter-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 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: 5px; }
.filter-options a {
    padding: 4px 14px;
    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(--color-primary);
    border-color: var(--color-primary);
}

/* ========== 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: 25px 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.article-header h1 { font-size: 24px; font-weight: 700; color: var(--color-text); margin-bottom: 12px; }
.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: 30px;
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
    font-size: 15px;
}
.article-content p { margin-bottom: 15px; }
.article-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 10px 0; }
.article-content h2, .article-content h3 { margin: 20px 0 10px; color: var(--color-text); }

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    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, .pagination .active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ========== 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; }
}
