/* ============================================================
   圆木缘家居 - 新闻动态 / 新闻详情 共享样式
   ============================================================ */
:root {
    --text-white: #FFFFFF;
    --text-1: #1D2129;
    --text-2: #4E5969;
    --text-3: #86909C;
    --text-4: #C9CDD4;
    --fill-1: #F7F8FA;
    --fill-2: #F2F3F5;
    --fill-3: #E5E6EB;
    --brand-brown: #5D4037;
    --brand-brown-dark: #28201E;
    --footer-bg: #050F19;
    --footer-text: #748EA6;
    --border-footer: #293A49;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: #FFFFFF;
    color: var(--text-1);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 120px; }
.main-container { max-width: 1200px; margin: 0 auto; }

/* ==================== Header ==================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header .container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-logo .logo-text { font-size: 22px; font-weight: 700; font-family: 'Alibaba PuHuiTi', 'PingFang SC', sans-serif; }

.header-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 48px;
    white-space: nowrap;
}

.header-nav a {
    font-size: 15px;
    color: #333333;
    padding-bottom: 6px;
    position: relative;
    transition: color 0.3s;
}

.header-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 3px;
    background: var(--brand-brown);
    opacity: 0;
    transition: opacity 0.3s;
}

.header-nav a:hover { color: var(--brand-brown); }
.header-nav a.active { color: var(--brand-brown); font-weight: 600; }
.header-nav a.active::after { opacity: 1; }

/* ==================== Page Banner ==================== */
.page-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 750;
    overflow: hidden;
    background: var(--fill-3);
    margin-top: 80px;
}

.page-banner img.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner .banner-bg-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #3E2B1F 0%, #5D4037 55%, #8B6F5E 100%);
}

.page-banner .banner-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.banner-shade.shade-left {
    left: 0; right: 28%;
    top: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 100%);
    opacity: 0.6;
}

.banner-shade.shade-right {
    left: 72%; right: 0;
    top: 0; bottom: 0;
    background: linear-gradient(270deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 100%);
    opacity: 0.6;
}

/* ==================== Section header ==================== */
.sec-header { text-align: center; margin-bottom: 56px; }
.sec-header h2 { font-size: 36px; font-weight: 500; color: #1D2129; letter-spacing: 1px; }
.sec-header p { font-size: 14px; color: var(--text-2); margin-top: 24px; font-family: 'Nunito Sans', sans-serif; }

/* ==================== News List ==================== */
.news-body { background: rgba(229, 230, 235, 0.3); padding: 96px 0 80px; }

.news-card {
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.news-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 48px;
    height: 64px;
    border-bottom: 1px solid #F0F1F3;
    transition: background 0.25s, padding-left 0.25s;
}

.news-row:last-of-type { border-bottom: none; }
.news-row:hover { background: rgba(93, 64, 55, 0.04); padding-left: 56px; }

.news-row .row-mark {
    flex-shrink: 0;
    width: 6px;
    height: 20px;
    border-radius: 3px;
    background: var(--brand-brown);
    opacity: 0.35;
    transition: opacity 0.25s;
}

.news-row:hover .row-mark { opacity: 1; }

.news-row .row-title {
    flex: 1;
    font-size: 16px;
    color: var(--text-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.25s;
}

.news-row:hover .row-title { color: var(--brand-brown); }

.news-row .row-date {
    flex-shrink: 0;
    font-size: 15px;
    color: var(--text-3);
    font-family: 'Nunito Sans', sans-serif;
    opacity: 0.8;
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px 48px;
    flex-wrap: wrap;
}

.pagination .page-total { font-size: 14px; color: var(--text-1); margin-right: 10px; }

.pagination .page-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 2px;
    background: transparent;
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s;
}

.pagination .page-btn:hover:not(:disabled) { background: var(--fill-2); color: var(--text-1); }
.pagination .page-btn:disabled { cursor: not-allowed; color: var(--text-4); }

.pagination .page-num {
    min-width: 32px;
    height: 32px;
    border: none;
    border-radius: 2px;
    background: transparent;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: background 0.25s, color 0.25s;
}

.pagination .page-num:hover { background: var(--fill-2); color: var(--text-1); }
.pagination .page-num.active { background: var(--brand-brown); color: #FFFFFF; }

.pagination .page-ellipsis { color: var(--text-3); padding: 0 2px; }

.pagination .page-size {
    margin-left: 12px;
    height: 32px;
    padding: 0 12px;
    background: var(--fill-2);
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-1);
    cursor: pointer;
}

/* ==================== News Detail ==================== */
.detail-body { background: rgba(229, 230, 235, 0.3); padding-bottom: 96px; }

.crumb {
    padding: 40px 0 20px;
    font-size: 14px;
    color: var(--text-2);
}

.crumb a { transition: color 0.25s; }
.crumb a:hover { color: var(--brand-brown); }
.crumb .sep { margin: 0 8px; color: var(--text-4); }
.crumb .cur { color: var(--text-1); }

.detail-card {
    background: #FFFFFF;
    border-radius: 4px;
    padding: 64px 72px 72px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.detail-card h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-1);
    text-align: center;
    line-height: 1.5;
}

.detail-meta {
    margin: 28px auto 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    color: var(--text-3);
    font-size: 15px;
    font-family: 'Nunito Sans', sans-serif;
}

.detail-content { font-size: 16px; color: var(--text-1); line-height: 2.1; }
.detail-content p { margin-bottom: 18px; text-indent: 2em; }
.detail-content .lead { color: var(--text-2); }
.detail-content ul { margin: 18px 0; padding: 0; list-style: none; }
.detail-content ul li { position: relative; padding-left: 28px; margin-bottom: 12px; text-indent: 0; }
.detail-content ul li::before { content: '✅'; position: absolute; left: 0; top: 2px; }

.detail-nav {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.detail-nav a {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #F7F8FA;
    border-radius: 4px;
    padding: 20px 24px;
    transition: background 0.25s;
    overflow: hidden;
}

.detail-nav a:hover { background: rgba(93, 64, 55, 0.08); }

.detail-nav .nav-label { flex-shrink: 0; font-size: 14px; color: var(--text-1); }
.detail-nav .nav-body { flex: 1; min-width: 0; }
.detail-nav .nav-body .t { font-size: 14px; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-nav .nav-body .d { font-size: 14px; color: var(--text-3); margin-top: 2px; font-family: 'Nunito Sans', sans-serif; }
.detail-nav .nav-arrow { flex-shrink: 0; color: var(--brand-brown); }

/* ==================== Footer ==================== */
.footer { background: var(--footer-bg); padding: 40px 0 30px; overflow: hidden; }

.footer-grid { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h3 { font-size: 18px; font-weight: 400; color: var(--text-white); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 12px; color: var(--footer-text); transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--text-white); }

.footer-contact .phone { font-size: 24px; font-weight: 500; color: var(--text-white); line-height: 1.4; margin-bottom: 4px; }
.footer-contact .postcode { font-size: 14px; color: var(--footer-text); }

.footer-qr { display: flex; gap: 20px; margin-top: 24px; }
.footer-qr-item { text-align: center; }
.footer-qr-item img { width: 108px; height: 108px; border-radius: 8px; background: #2A3A4A; object-fit: cover; }
.footer-qr-placeholder { width: 108px; height: 108px; border-radius: 8px; background: #2A3A4A; display: none; align-items: center; justify-content: center; font-size: 40px; }
.footer-qr-item span { display: block; font-size: 14px; color: var(--footer-text); margin-top: 8px; }

.footer-divider { width: 100%; height: 1px; background: var(--border-footer); margin: 24px 0 16px; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--footer-text); }

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
    .container { padding: 0 48px; }
}

@media (max-width: 1024px) {
    .header .container { padding: 0 32px; }
    .header-nav { position: static; transform: none; margin-left: auto; gap: 24px; }
    .header-logo .logo-text { font-size: 18px; }
    .detail-card { padding: 40px 28px; }
    .detail-nav { grid-template-columns: 1fr; }
    .news-row { padding: 0 24px; }
    .pagination { padding: 16px 24px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .header { height: 64px; }
    .page-banner { margin-top: 64px; }
    .header-logo .logo-text { font-size: 16px; }
    .header-nav { gap: 14px; }
    .header-nav a { font-size: 13px; }
    .sec-header h2 { font-size: 26px; }
    .sec-header p { font-size: 13px; margin-top: 12px; }
    .news-body { padding: 56px 0 48px; }
    .news-row { height: auto; padding: 16px 16px; flex-wrap: wrap; gap: 8px 12px; }
    .news-row .row-title { flex-basis: 100%; white-space: normal; }
    .detail-card h1 { font-size: 22px; }
    .detail-meta { gap: 12px; font-size: 13px; flex-wrap: wrap; }
    .pagination { justify-content: center; padding: 16px; }
    .footer-grid { flex-direction: column; gap: 32px; }
}
