:root{color-scheme:light;--green:#1f5b3a;--yellow:#f5b800;--red:#d0312d}*{box-sizing:border-box}body{margin:0;background:#fffaf0;color:#292e29;font:18px/1.55 system-ui,-apple-system,'Noto Sans CJK TC','Microsoft JhengHei',sans-serif}header{background:var(--green);color:white}.head{max-width:1080px;margin:auto;padding:18px 20px;display:flex;justify-content:space-between;align-items:flex-start}.brand{color:white;text-decoration:none;font-weight:800;font-size:25px;display:flex;gap:8px;line-height:1.15}.brand small{display:block;font-size:12px;font-weight:400;margin-top:5px;color:#d5e7d9}.demo{background:#d83232;border-radius:20px;color:white;font-size:14px;padding:3px 10px;font-weight:700}.nav{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;text-align:center;padding:8px max(8px,calc((100% - 1080px)/2));background:#edf4ed}.nav a{padding:8px 2px!important;font-size:15px!important}.admin-nav{display:flex;flex-wrap:wrap;gap:8px;padding:10px max(16px,calc((100% - 1080px)/2));background:#edf4ed;white-space:nowrap}.nav a,.admin-nav a{color:var(--green);font-size:16px;font-weight:700;text-decoration:none;padding:8px 10px;border-radius:10px}.admin-nav{padding:8px;margin:0 0 18px;border-radius:12px}.admin-nav a{background:white}main{max-width:1080px;margin:auto;padding:20px 16px 48px}h1,h2,h3,p{margin-top:0}h1{font-size:28px;line-height:1.3;color:var(--green);margin-bottom:8px}h2{font-size:22px;color:var(--green);margin-bottom:16px}h3{font-size:19px;margin-bottom:8px}p{margin-bottom:12px}.hero{background:#e4f0e5;border-radius:18px;padding:24px;margin-bottom:24px;color:var(--green)}.hero span,.section-title small{font-size:14px;font-weight:800;letter-spacing:.05em}.hero h1{margin:8px 0}.hero p{margin:0}.section-title{display:flex;justify-content:space-between;align-items:end}.section-title h2{margin:0 0 14px}.section-title a,a{color:var(--green);font-weight:700}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.card{background:#fff;border:1px solid #eee9dc;border-radius:16px;padding:20px;box-shadow:0 2px 5px #433b1c0d;margin-bottom:14px}.grid .card{margin:0}.product{display:flex;flex-direction:column;gap:12px}.product form{margin-top:auto}.product-art{display:grid;place-items:center;background:#fff4cf;border-radius:12px;font-size:64px;height:130px}.tag{display:inline-block;background:#e4f0e5;color:var(--green);font-size:14px;font-weight:700;border-radius:20px;padding:3px 10px}.price{color:var(--red);font-weight:800;font-size:21px}.price small{font-size:14px;color:#777;font-weight:400}.muted,small{color:#737d74}.notice,.choice{background:#eef7ee;color:var(--green);border:1px solid #b7d2bd;border-radius:12px;padding:12px;margin-bottom:16px}.error{background:#fff0ef;border:1px solid #e4aaa5;color:#a32420;border-radius:12px;padding:14px;margin:14px 0;font-weight:700}button,.button{display:block;width:100%;min-height:52px;border:0;border-radius:10px;background:var(--yellow);color:#332900;font:inherit;font-weight:800;text-align:center;text-decoration:none;padding:12px;cursor:pointer;margin-top:10px}.outline{background:white;color:var(--green);border:2px solid var(--green)}label{display:block;font-weight:700;margin:12px 0}input,select{display:block;width:100%;min-height:52px;margin-top:6px;padding:10px;border:1px solid #bbc5ba;border-radius:9px;background:white;font:inherit;color:#29332b}input.qty{width:76px}.line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eee}.line label{margin:0}.total{font-size:21px;border:0}.progress{height:12px;border-radius:10px;background:#e8e8e8;overflow:hidden}.progress i{display:block;background:var(--yellow);height:100%}.center{text-align:center}.big{font-size:56px}.order-no{font-size:24px;color:var(--green);overflow-wrap:anywhere}.linkbox{background:#f5f5f3;border-radius:8px;padding:10px;font-size:15px;overflow-wrap:anywhere}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stats .card{padding:12px!important}.flag{background:#fff0ef;color:#a32420;border:1px solid #e4aaa5;border-radius:10px;padding:8px 10px;font-weight:700;font-size:16px}.formula{font-size:17px}.stats .card{margin:0 0 14px}.stats strong{display:block;color:var(--green);font-size:21px}.record{padding:14px 0;border-top:1px solid #eee}.record p{margin:6px 0}.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.actions button{font-size:16px}.filter{display:flex;align-items:end;gap:10px;margin-bottom:14px}.filter label{flex:1;margin:0}.filter button{width:auto}.empty{text-align:center;padding:35px}.narrow{max-width:500px;margin:30px auto}footer{text-align:center;background:#e8f0e9;color:#506555;padding:24px 16px;font-size:14px}@media(max-width:500px){.grid{grid-template-columns:1fr}.product{display:grid;grid-template-columns:90px 1fr}.product-art{height:100%;min-height:110px;font-size:48px}.product form{grid-column:1/-1}.head{padding:15px 16px}.card{padding:17px}}
@media(min-width:768px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lookup-page{max-width:900px;margin:auto}.lookup-page>section:first-of-type form{display:flex;align-items:end;gap:12px}.lookup-page>section:first-of-type label{flex:1}.lookup-page>section:first-of-type button{width:auto;margin-bottom:12px}.record{display:inline-block;vertical-align:top;width:49%;padding-right:18px}}
@media(min-width:1024px){body{font-size:16px}header{display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100% - 1200px)/2));gap:30px}.head{margin:0;padding:16px 0;gap:20px;align-items:center}.nav{display:flex;background:transparent;padding:0;gap:8px}.nav a{color:white!important;padding:10px!important}.nav a:hover{background:#ffffff1c}main{max-width:1200px;padding:28px 24px 60px}.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hero{min-height:175px;display:flex;flex-direction:column;justify-content:center;padding:32px 42px}.checkout-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:0 20px;align-items:start}.checkout-main{grid-column:1;grid-row:1}.checkout-form{grid-column:1;grid-row:2}.checkout-summary{grid-column:2;grid-row:1 / span 2;position:sticky;top:20px}.stats{grid-template-columns:repeat(4,1fr)}.lookup-page>section:first-of-type{max-width:900px}.center{max-width:700px;margin:30px auto}}
@media(min-width:1024px){.stats{grid-template-columns:repeat(3,1fr)}.inf-groups{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.inf-groups .card{margin:0}.inf-groups .record{grid-column:auto}}
/* EJIA 前台第二版；沿用既有購物車與獨立管理後台。 */
:root{--green:#1b6240;--yellow:#f9bc00;--red:#e43a24}body{background:#fff8e3;color:#393b30}.head{align-items:center}.demo{background:#f9bc00;color:#214a32}.brand small{color:#f7dc89;letter-spacing:2px}.hero{display:flex;flex-direction:row;align-items:center;justify-content:space-between;background:#1b6240;color:#fff;border-radius:24px;padding:38px 44px;overflow:hidden}.hero h1{font-size:44px;color:#fff;letter-spacing:2px}.hero p{color:#e9e7ce;margin-bottom:18px}.hero-pine{font-size:140px;transform:rotate(12deg);filter:drop-shadow(12px 15px 0 #0001)}.hero .tag{background:#ffffff20;color:#fff3bc}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:800}.deadline{display:flex;justify-content:space-between;gap:12px;align-items:center;background:var(--red);color:white;border-radius:16px;padding:18px 24px;margin:20px 0 30px}.deadline small{color:#fff0d8;display:block}.deadline strong{display:block}.deadline b{background:#fff;color:var(--red);padding:9px 15px;border-radius:12px;white-space:nowrap}.section-title{align-items:center;margin-bottom:14px}.section-title small{color:#918d71}.section-title h2{margin:4px 0}.chips{display:flex;gap:8px;overflow-x:auto;padding:0 0 15px;scrollbar-width:thin}.chip{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;width:auto;min-height:42px;border:1px solid #e6dcb7;border-radius:30px;background:white;color:#69634f;text-decoration:none;padding:8px 18px;font:inherit;font-size:15px;margin:0}.chip.selected{background:var(--yellow);color:#3a3219;border-color:var(--yellow);font-weight:800}.card{border:1px solid #f0e9d4;border-radius:20px;box-shadow:0 4px 10px #61521608}.product{padding:12px;gap:14px}.product-art{position:relative;font-size:72px;height:180px;text-decoration:none}.art-label{position:absolute;left:10px;top:10px;font-size:12px;background:var(--red);color:white;border-radius:20px;padding:2px 8px}.art-0{background:#ffdfd5}.art-1{background:#ffea9e}.art-2{background:#d8efdd}.art-3{background:#e8dcf8}.product h3{margin:5px 0;font-size:18px}.product h3 a{text-decoration:none;color:#393b30}.product p{font-size:13px;color:#8c8777}.product-info{min-width:0}.price{font-size:25px}.price del{font-size:13px;font-weight:400;color:#948c78}.product .progress{height:7px;margin:8px 0 2px;background:#efe7c6}.progress i{background:#248054}.product small{font-size:12px}.product .button{margin-top:10px}.end-note{margin-top:24px}.back{display:block;margin-bottom:16px;text-decoration:none}.buy-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:24px}.detail-art{height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:140px;border-radius:22px;margin-bottom:16px}.detail-art small{font-size:12px;color:#716949;letter-spacing:2px}.jumbo{font-size:40px;margin:10px 0}.variants{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.option{margin:0;cursor:pointer}.option input{position:absolute;width:1px;height:1px;min-height:0;opacity:0}.option span{display:block;padding:13px 5px;text-align:center;border:2px solid #e9dfbe;border-radius:12px}.option small{display:block;font-size:12px;font-weight:400}.option input:checked+span{background:#e6f3e9;border-color:#28845a}.option input:focus-visible+span{outline:3px solid #f5b800}.quantity-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.stepper{display:flex;align-items:center;gap:5px}.stepper button{width:44px;min-height:44px;padding:3px;margin:0;font-size:26px}.stepper input{width:48px;padding:4px;border:0;text-align:center;margin:0;font-weight:800}.radio-line{display:flex;align-items:center;gap:10px;border-bottom:1px solid #eee7d5;padding:12px 0;font-size:16px;font-weight:500}.radio-line input{min-height:20px;width:20px;margin:0;accent-color:#237b50}.radio-line small{margin-left:auto}.unavailable{font-size:14px;color:#8a8371;background:#f7f4eb;padding:12px;border-radius:10px}.purchase-summary{align-self:start;position:sticky;top:20px}.confirm{background:var(--red);color:white}.purchase-summary small{font-size:13px}.orders-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px}.lookup-form{align-self:start}.lookup-form .notice{margin-top:20px}.timeline{display:flex;align-items:center;padding:25px 10px 40px}.timeline span{position:relative;color:#ddd4ad;font-size:26px}.timeline small{position:absolute;font-size:13px;top:36px;left:-12px;width:65px}.timeline i{flex:1;height:4px;background:#e6ddbd}.timeline .complete{color:#208052}.order-card>.section-title{gap:10px}.order-card>.section-title small{overflow-wrap:anywhere}.order-card .tag{white-space:nowrap;font-size:12px}.order-tabs{flex-wrap:wrap}details summary{cursor:pointer;font-weight:700;color:var(--green)}button:disabled{cursor:default;color:#938f80;border-color:#d9d5c7;background:#f4f2e9}.leader-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:24px}.leader-hero{border:2px solid var(--yellow)}.leader-hero .stats{margin-top:16px}.leader-hero .stats>div{background:#fff8e2;border-radius:12px;padding:12px}.rate{float:left;margin:0 20px 12px 0;background:var(--yellow);border:5px solid #ffedac;border-radius:50%;width:90px;height:90px;text-align:center;padding-top:13px;font-size:30px;font-weight:800}.status-dot{display:inline-block;width:10px;height:10px;background:#248054;border-radius:50%;margin-right:8px}.qr-row{display:flex;align-items:center;gap:12px}.qr-row>div{min-width:0}.qr-row img{border:1px solid #e2dbc3;border-radius:10px}.share-material{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:15px}.share-material a{background:#ffeb9d;padding:16px;text-align:center;border-radius:12px;font-size:50px;text-decoration:none}.share-material a:nth-child(2){background:#d8efdd}.share-material small{display:block;font-size:14px}.inf-groups .record{display:block;width:100%}.notice{background:#f1f7f1;border:0}.leader-layout .card::after{content:'';display:block;clear:both}[hidden]{display:none!important}a:focus-visible,button:focus-visible{outline:3px solid #d39100;outline-offset:3px}footer{background:#f5eed6;line-height:1.9}input,select{max-width:100%}
@media(max-width:767px){body{font-size:16px}.nav{position:fixed;bottom:0;left:0;right:0;z-index:20;padding:7px 6px calc(7px + env(safe-area-inset-bottom));background:white;border-top:1px solid #e9e0c3;box-shadow:0 -4px 15px #433b1c08}.nav a{display:flex;flex-direction:column;align-items:center;font-size:22px!important;padding:0!important;line-height:1.35}.nav span{font-size:12px}.head{padding:18px 16px}.brand{font-size:23px}main{padding:16px 14px 32px}.hero{padding:24px 20px;border-radius:18px;min-height:205px}.hero h1{font-size:29px;letter-spacing:1px}.hero p{font-size:13px}.hero-pine{font-size:85px;margin-right:-10px}.hero .tag{font-size:10px;padding:5px}.hero .eyebrow{font-size:10px;letter-spacing:0}.deadline{padding:14px;margin:16px 0 24px;gap:5px}.deadline small{font-size:11px}.deadline strong{font-size:14px}.deadline b{padding:8px;font-size:13px}.section-title h1{font-size:25px}.section-title a{font-size:13px}.product{grid-template-columns:105px minmax(0,1fr);padding:12px;gap:12px}.product-art{height:130px;min-height:130px;font-size:58px}.product h3{font-size:17px;line-height:1.4}.product p{margin:4px 0;font-size:11px}.product-info>small{font-size:11px}.product .button{min-height:44px;padding:9px}.product .price{font-size:24px}.grid{gap:12px}.card{padding:17px}.buy-layout,.orders-layout,.leader-layout{display:block}.detail-art{height:225px;font-size:110px}.purchase-summary{position:static}.quantity-row{margin-bottom:6px}.variants{gap:6px}.option span{padding:12px 3px}.option small{font-size:10px}.radio-line{font-size:14px}.radio-line small{font-size:12px}.orders-layout>.card{margin-bottom:20px}.order-tabs{flex-wrap:nowrap}.qr-row img{width:112px;height:112px}.leader-hero .stats{grid-template-columns:repeat(3,1fr);gap:6px}.leader-hero .stats>div{padding:9px}.leader-hero .stats strong{font-size:21px}.leader-hero .stats small{font-size:11px}footer{padding-bottom:100px}.lookup-page>section:first-of-type form{display:block}.inf-groups{display:block}}
