:root{
  --bg:#faf6f0;
  --fg:#2b1d14;
  --muted:#7a6555;
  --line:#d9c9b8;
  --accent:#a0522d;
  --accent-2:#5a2e18;
  --gold:#b8860b;
  --gap:32px;
  --radius:22px;
  --shadow:0 2px 6px rgba(90,46,24,.12);
  --font:"Segoe UI","Microsoft YaHei",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font);font-size:17px;line-height:1.7}
a{color:var(--accent-2);text-decoration:none}
a:hover{color:var(--accent);text-decoration:underline}
a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
img{display:block;max-width:100%;height:auto}
p{margin:0 0 12px}
h1{font-size:44px;line-height:1.25;margin:0 0 18px;font-weight:700;color:var(--accent-2)}
h2{font-size:28px;line-height:1.32;margin:0 0 12px;font-weight:700;color:var(--accent-2)}
h3{font-size:21px;line-height:1.4;margin:0 0 8px;color:var(--accent)}
.lotteryoffic-shell{display:flex;flex-wrap:wrap;max-width:1120px;margin:0 auto;padding:0 20px}
.lotteryoffic-block{flex:0 0 100%;width:100%;padding:var(--gap) 0;border-bottom:1px solid var(--line)}
.lotteryoffic-block:last-child{border-bottom:none}
.lotteryoffic-block:first-child{padding-top:12px}
.lotteryoffic-nav{background:#f3e9dd;border-bottom:2px solid var(--accent)}
.lotteryoffic-nav-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;max-width:1120px;margin:0 auto;padding:12px 20px}
.lotteryoffic-logo{font-size:21px;font-weight:700;color:var(--accent-2);letter-spacing:1px}
.nav-links{display:flex;flex-wrap:wrap;gap:14px}
.nav-links a{color:#3a2618;font-size:15px;padding:4px 0;border-bottom:2px solid transparent}
.nav-links a:hover{color:var(--accent);border-bottom-color:var(--accent);text-decoration:none}
.lotteryoffic-hero{display:flex;flex-wrap:wrap;gap:var(--gap);align-items:flex-end;padding:var(--gap) 0;border-bottom:1px solid var(--line)}
.lotteryoffic-hero-text{flex:1 1 460px;column-count:2;column-gap:34px;font-size:17px;line-height:1.7;color:#3a2618;margin:0}
.lotteryoffic-hero-figure{flex:0 0 140px;max-width:140px;margin:0;border:1px solid var(--line);border-radius:var(--radius);padding:6px;background:#fffdf9;box-shadow:var(--shadow)}
.lotteryoffic-hero-figure img{width:128px;height:128px;border-radius:18px}
.lotteryoffic-figure{float:right;margin:0 0 10px 16px;border:1px solid var(--line);border-radius:var(--radius);padding:5px;background:#fffdf9;box-shadow:var(--shadow)}
.lotteryoffic-figure img{width:110px;height:110px;border-radius:16px}
.lotteryoffic-text{color:#3a2618}
.lotteryoffic-table{width:100%;border-collapse:collapse;margin:14px 0 0;font-size:15px;background:#fffdf9;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.lotteryoffic-table th,.lotteryoffic-table td{border:1px solid var(--line);padding:8px 10px;text-align:left}
.lotteryoffic-table th{background:#f0e2d2;color:var(--accent-2);font-weight:700}
.lotteryoffic-table tbody tr:nth-child(even){background:#f8f1e8}
.lotteryoffic-table tbody tr:hover{background:#f2e5d6}
.lotteryoffic-news{display:flex;flex-wrap:wrap;gap:12px;margin:0;padding:0;list-style:none}
.lotteryoffic-news-row{flex:0 0 calc(33.333% - 8px);max-width:calc(33.333% - 8px);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;background:#fffdf9;box-shadow:var(--shadow);transition:transform .15s ease}
.lotteryoffic-news-row:hover{transform:translateY(-2px);border-color:var(--accent)}
.lotteryoffic-news-date{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
.lotteryoffic-news-detail{display:block}
.lotteryoffic-news-title{display:block;font-size:15px;font-weight:600;line-height:1.55;color:var(--accent-2);cursor:pointer}
.lotteryoffic-news-title:hover{color:var(--accent)}
.lotteryoffic-news-body{font-size:14px;line-height:1.65;color:#4a3527;margin:8px 0 0}
.lotteryoffic-faq{display:flex;flex-wrap:wrap}
.lotteryoffic-faq details{flex:0 0 100%;width:100%;border-bottom:1px solid var(--line);padding:12px 0}
.lotteryoffic-faq details:first-child{border-top:1px solid var(--line)}
.lotteryoffic-faq summary{font-size:17px;font-weight:600;color:var(--accent-2);cursor:pointer;line-height:1.6}
.lotteryoffic-faq summary:hover{color:var(--accent)}
.lotteryoffic-faq p{margin:8px 0 0;color:#4a3527;font-size:15px}
.lotteryoffic-btn{display:inline-block;padding:9px 22px;border-radius:999px;background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff8ef;font-size:16px;font-weight:600;box-shadow:var(--shadow);border:none;cursor:pointer}
.lotteryoffic-btn:hover{background:linear-gradient(90deg,var(--accent-2),var(--accent));color:#fff;text-decoration:none}
.lotteryoffic-btn:active{transform:translateY(1px);box-shadow:none}
.lotteryoffic-footer{background:#f3e9dd;border-top:2px solid var(--accent);padding:24px 20px;color:#3a2618;font-size:14px}
.lotteryoffic-footer-inner{display:flex;flex-wrap:wrap;flex-direction:column;gap:4px;max-width:1120px;margin:0 auto}
.lotteryoffic-footer a{color:var(--accent-2)}
.lotteryoffic-footer a:hover{color:var(--accent)}
@media (max-width:1024px){
  h1{font-size:34px}
  h2{font-size:24px}
  .lotteryoffic-hero-text{column-count:1;flex:1 1 100%}
  .lotteryoffic-news-row{flex:0 0 calc(50% - 6px);max-width:calc(50% - 6px)}
}
@media (max-width:720px){
  body{font-size:16px}
  h1{font-size:28px}
  h2{font-size:22px}
  .lotteryoffic-hero-figure{flex:0 0 100%;max-width:140px;margin-left:auto}
  .lotteryoffic-figure{float:none;margin:0 0 10px}
  .lotteryoffic-news-row{flex:0 0 100%;max-width:100%}
  .lotteryoffic-nav-inner{flex-direction:column;align-items:flex-start}
  .nav-links{gap:10px}
  .lotteryoffic-table{font-size:14px}
}
/* 图片按原尺寸显示，不放大 */
img[src^="/img/"]{max-width:256px;max-height:256px;width:auto;height:auto;object-fit:contain;display:inline-block;}
