   :root {
      --theme-red: #ef483f;
      --theme-red-hover: #d63b33;
      --bg-body: #f4f6f8;
      --bg-card: #ffffff;
      --text-main: #1f2937;
      --text-muted: #6b7280;
      --border-color: #f0f0f0;
      --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0; font-family: var(--font-family); background-color: var(--bg-body);
      color: var(--text-main); line-height: 1.5; -webkit-font-smoothing: antialiased;
    }
    a{-webkit-text-decoration: none;text-decoration: none;color: var(--text-main);transition: color .2s ease, background .2s ease, border-color .2s ease;}
    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    blockquote, dd, div, dl, dt, form, h1, h2, h3, h4, h5, h6, li, ol, p, pre, td, th, ul {
    margin: 0;
    padding: 0;
    }
    ul, ol {
    list-style: none;
  }
    /* 导航栏 */
    header { background: var(--bg-card); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
    .nav-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
    .logo {font-size: 24px; font-weight: 800; color: var(--theme-red); text-decoration: none; display: flex;align-items: center;}
    .logo img{max-height: 40px; }
    .nav-links { display: flex; gap: 24px; }
    .nav-links a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 15px; transition: color 0.2s; }
    .nav-links a:hover { color: var(--theme-red); }
    .search-box { display: flex; background: #f3f4f6; border-radius: 20px; padding: 6px 16px; align-items: center; border: 1px solid transparent; transition: 0.2s; }
    .search-box:focus-within { background: #fff; border-color: var(--theme-red); }
    .search-box input { border: none; background: transparent; outline: none; width: 200px; font-size: 14px; }

    /* 两栏布局 */
    .layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; margin: 30px auto 60px; align-items: start; }
    .layout > main {min-width: 0;}
    
    /* 左侧横向卡片 */
    .section-title { font-size: 20px; margin-top: 0; margin-bottom: 20px; }
    .deal-list { display: flex; flex-direction: column; gap: 16px; }
    .deal-card { 
      display: flex; background: var(--bg-card); border: 1px solid var(--border-color); 
      border-radius: 8px; padding: 20px; transition: box-shadow 0.2s; align-items: center;
    }
    .deal-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-color: #d1d5db; }
    .deal-img { width: 200px; height: auto; border: 1px solid #f3f4f6; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 20px; flex-shrink: 0;padding:8px; }
    .deal-img img { max-width: 100%; max-height: auto; object-fit: contain;border-radius:8px; }
    .deal-link{text-decoration: none;line-height: 0;}
    .deal-info { flex-grow: 1; padding-right: 20px; }
    .deal-info h3 { margin: 0 0 8px 0; font-size: 18px; }
    .deal-info h3 a { color: var(--text-main); text-decoration: none; transition: 0.2s; }
    .deal-info h3 a:hover { color: var(--theme-red); }
    .deal-info p { margin: 0 0 10px 0; color: var(--text-muted); font-size: 14px; }
    .deal-fot{font-size: 12px; font-weight: bold; color: #10b981;}
    .deal-action{ width: 140px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
    
    .deal-action a { 
      background-color: var(--theme-red); color: #fff; text-align: center; 
      padding: 10px 0; border-radius: 4px; font-weight: 700; text-decoration: none; 
      font-size: 14px; transition: background 0.2s; 
    }
    .deal-action a:hover { background-color: var(--theme-red-hover); }
    .stats { font-size: 12px; color: var(--text-muted); text-align: center; }

    /* right */
    .goodbuy-block { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
    .goodbuy-block h3 { margin: 0 0 16px 0; font-size: 16px; border-bottom: 2px solid var(--bg-body); padding-bottom: 10px; }
    .category-list { list-style: none; padding: 0; margin: 0; }
    .category-list li { margin-bottom: 12px; }
    .category-list a { color: var(--text-main); text-decoration: none; font-size: 14px; display: flex; justify-content: space-between; }
    .category-list a:hover { color: var(--theme-red); }
    .category-list span { color: var(--text-muted); background: var(--bg-body); padding: 2px 8px; border-radius: 10px; font-size: 12px; }

    .tag-list ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tag-list a { min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 7px 8px; border: 1px solid var(--bg-body); border-radius: 6px; background: #f8faf9;color:var(--text-muted ); text-align: center; font-size: 12px; font-weight: 600; line-height: 1.35; }
    .tag-list a:hover { border-color: #3b535a; background: #3b535a; color: #fff; }

.brands ul{display: flex;flex-wrap: wrap;border-radius: 10px;justify-content: space-between;}
.brands img{width: 100%;height: 60px;object-fit: contain;}
.brands ul li{width: 48%;margin-bottom: 10px;}
.brands ul li div{margin: 0;border-radius: 10px;}
.brands ul li div a{display: block;border: 1px solid var(--bg-body);border-radius: 8px;color: var(--text-main);}
.brands ul li span{text-align: center;display: block;padding: 10px;border-top: 1px #f0f0f0 solid;}
.goodbuy-late { list-style: none; padding: 0; margin: 0; }
    .goodbuy-late li { margin-bottom: 16px; }
    .goodbuy-late li:last-child { margin-bottom: 0; }
    
    .goodbuy-late a {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      padding: 6px;
      margin: -6px;
      border-radius: 6px;
      transition: background 0.2s;
    }
    .goodbuy-late a:hover {
      background: var(--bg-body);
    }
    .store-icon {
      width: 44px;
      height: 44px;
      border-radius: 8px;
      border: 1px solid var(--border-color);
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0; 
      overflow: hidden;
    }
    
    .store-details {
      display: flex;
      flex-direction: column;
      flex-grow: 1;
      overflow: hidden; 
    }
    .store-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-main);
      line-height: 1.3;
      margin-bottom: 2px;
      transition: color 0.2s;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .goodbuy-late a:hover .store-name { color: var(--theme-red); }
    
.store-icon figure {
    width: 100%;
    height: 100%;
    margin: 0;
}

.store-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
    /* 简单响应式 */
/* Mobile deal cards */
@media (max-width: 768px) {
    .layout { grid-template-columns: minmax(0, 1fr);max-width: 100%;}
    .deal-card {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
        padding: 14px;
    }

    .deal-img {
        width: 120px;
        aspect-ratio: 4 / 3;
        height: auto;
        margin: 0;
        padding: 5px;
        border-radius: 6px;
    }

    .deal-img .deal-link {
        display: block;
        width: 100%;
        height: 100%;
    }

    .deal-img img {
        display: block;
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 4px;
        object-fit: cover;
    }

    .deal-info {
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .deal-info h3 {
        margin: 1px 0 6px;
        font-size: 17px;
        line-height: 1.3;
    }

    .deal-info p {
        display: -webkit-box;
        margin: 0 0 8px;
        overflow: hidden;
        color: var(--text-muted);
        font-size: 13px;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .deal-fot {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 5px;
        font-size: 11px;
        line-height: 1.4;
    }

    .deal-fot a {
        color: var(--text-main);
    }

    .deal-action {
        grid-column: 1 / -1;
        width: 100%;
        margin: 0;
    }

    .deal-action a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 8px 16px;
        border-radius: 4px;
    }
}
@media (max-width: 420px) {
    .deal-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .deal-img {
        width: 96px;
    }

    .deal-info h3 {
        font-size: 16px;
    }

    .deal-info p {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

/* 桌面端隐藏菜单按钮 */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 1px;
    background: var(--text-main, #17232b);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 打开时变成关闭符号 */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
    header {
        position: relative;
        z-index: 100;
    }

    .nav-inner {
        position: relative;
        min-height: 64px;
    }

    .nav-toggle {
        display: block;
        flex: 0 0 40px;
        margin-left: auto;
    }

    /* 手机端下拉菜单 */
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
        display: none;
        width: 100%;
        background: #1d1d1d;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav .nav-links,
    .primary-nav ul {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .primary-nav .nav-item,
    .primary-nav li {
        display: block;
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .primary-nav li:last-child {
        border-bottom: 0;
    }

    .primary-nav a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        color: #fff;
        font-size: 14px;
        line-height: 1.4;
        font-weight: 500;
        text-decoration: none;
        box-sizing: border-box;
    }

    .primary-nav a:hover,
    .primary-nav .current > a,
    .primary-nav .active > a {
        color: #fff;
        background: var(--theme-red, #ef483f);
    }

    /* 手机端隐藏顶部搜索框，需要保留时删除这段 */
    .search-box {
        display: none;
    }
}
/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
    width: 100%;
    margin-top: 50px;
    border-top: 1px solid var(--border-color, #dfe3e6);
    background: #fff;
    color: var(--text-muted, #66737c);
}

.site-footer .site-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 20px 24px;
    box-sizing: border-box;
}

.footer-copy {
    width: 100%;
}

.footer-copy p {
    margin: 0;
    letter-spacing: 0;
}

.foot-desc-1 {
    max-width: 900px;
    color: var(--text-muted, #66737c);
    font-size: 14px;
    line-height: 1.7;
}

.foot-desc-2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 18px !important;
    color: var(--text-main, #17232b);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

.foot-desc-2 a {
    position: relative;
    margin-right: 0 !important;
    color: var(--text-muted, #66737c);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.foot-desc-2 a:hover {
    color: var(--theme-red, #ef483f);
}

.foot-desc-2 a:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    width: 1px;
    height: 12px;
    background: var(--border-color, #dfe3e6);
    transform: translateY(-50%);
}

.foot-desc-3 {
    margin-top: 22px !important;
    padding-top: 18px;
    border-top: 1px solid var(--border-color, #dfe3e6);
    color: var(--text-muted, #66737c);
    font-size: 12px;
    line-height: 1.5;
}
/* Mobile Footer */
@media (max-width: 767px) {
    .site-footer {
        margin-top: 36px;
    }

    .site-footer .site-shell {
        padding: 26px 16px 20px;
    }

    .foot-desc-1 {
        font-size: 13px;
        line-height: 1.65;
    }

    .foot-desc-2 {
        gap: 10px 16px;
        margin-top: 16px !important;
        font-size: 12px;
    }

    .foot-desc-2 a:not(:last-child)::after {
        right: -8px;
    }

    .foot-desc-3 {
        margin-top: 18px !important;
        padding-top: 15px;
        font-size: 11px;
    }
}