/* ============================================================
   永峰資訊有限公司 - 主要樣式表
   科技藍主題設計
   ============================================================ */

:root {
  --primary: #0047AB;
  --primary-dark: #003380;
  --primary-light: #1a6fd4;
  --accent: #00A8E8;
  --accent-light: #e8f4fd;
  --text-dark: #1a1a2e;
  --text-gray: #555;
  --text-light: #888;
  --bg-white: #fff;
  --bg-gray: #f4f6f9;
  --bg-dark: #0d1b2a;
  --border: #e0e6ef;
  --shadow: 0 2px 12px rgba(0,71,171,0.10);
  --shadow-md: 0 4px 24px rgba(0,71,171,0.14);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.25s ease;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', 'Microsoft JhengHei', '微軟正黑體', Arial, sans-serif; color: var(--text-dark); background: var(--bg-white); line-height: 1.6; font-size: 15px; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; }
ul { list-style: none; }

/* ============================================================ Navbar */
.navbar { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid var(--primary); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 65px; }
.nav-brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; }
.brand-text { font-size: 1.2rem; color: var(--primary); }
.brand-sub { font-size: .75rem; color: var(--text-gray); font-weight: 400; margin-left: 2px; }
.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-link { padding: .5rem .9rem; border-radius: 6px; color: var(--text-dark); font-weight: 500; transition: var(--transition); font-size: .93rem; }
.nav-link:hover { background: var(--accent-light); color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); padding: .25rem; }

/* ============================================================ Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .65rem 1.5rem; border-radius: 6px; font-weight: 600; font-size: .92rem; cursor: pointer; border: 2px solid transparent; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }
.btn-full { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }

/* ============================================================ Hero */
.hero { background: linear-gradient(135deg, #0d1b2a 0%, #0047AB 60%, #00A8E8 100%); color: #fff; padding: 5rem 1.5rem; display: flex; align-items: center; justify-content: center; gap: 4rem; min-height: 520px; overflow: hidden; }
.hero-content { max-width: 560px; }
.hero-title { font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.2rem; color: var(--accent); margin-bottom: .75rem; font-weight: 600; }
.hero-desc { font-size: 1rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-btns .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero-btns .btn-outline:hover { background: rgba(255,255,255,.15); }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.hcard { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 1.2rem; text-align: center; backdrop-filter: blur(8px); transition: var(--transition); }
.hcard:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }
.hcard-icon { display: block; font-size: 1.8rem; margin-bottom: .4rem; }
.hcard span:last-child { font-size: .8rem; color: rgba(255,255,255,.85); }

/* ============================================================ Stats */
.stats { background: var(--primary); padding: 2rem 1.5rem; }
.stats-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem; }
.stat-item { text-align: center; color: #fff; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .9rem; color: rgba(255,255,255,.85); }

/* ============================================================ Sections */
.section { padding: 4rem 1.5rem; }
.section-gray { background: var(--bg-gray); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; color: var(--primary); margin-bottom: .5rem; }
.section-header p { color: var(--text-gray); font-size: 1.05rem; }

/* ============================================================ Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); text-align: center; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--accent); }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: .75rem; }
.service-card p { color: var(--text-gray); font-size: .92rem; line-height: 1.7; }

/* ============================================================ Service Detail */
.service-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.service-detail-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); border-top: 4px solid var(--primary); }
.sd-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.service-detail-card h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 1rem; }
.service-detail-card ul { margin: 0 0 1.5rem 1rem; }
.service-detail-card ul li { color: var(--text-gray); margin-bottom: .4rem; font-size: .92rem; }
.service-detail-card ul li::before { content: '✓ '; color: var(--primary); font-weight: 700; }

/* ============================================================ Products */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.product-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--accent); }
.product-img { width: 100%; height: 180px; object-fit: contain; background: var(--bg-gray); padding: 1rem; }
.product-img-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, var(--bg-gray), var(--accent-light)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: .75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; margin-bottom: .25rem; }
.product-name { font-size: .95rem; font-weight: 600; color: var(--text-dark); margin-bottom: .4rem; line-height: 1.4; }
.product-model { font-size: .8rem; color: var(--text-light); margin-bottom: .75rem; }
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-top: auto; margin-bottom: .75rem; }
.product-actions { display: flex; gap: .5rem; }
.product-actions .btn { flex: 1; font-size: .82rem; padding: .45rem .75rem; }

/* ============================================================ Shop Layout */
.shop-layout { display: flex; gap: 2rem; align-items: flex-start; }
.shop-sidebar { width: 240px; flex-shrink: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.25rem; box-shadow: var(--shadow); }
.shop-main { flex: 1; min-width: 0; }
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-section h4 { font-size: .9rem; font-weight: 700; color: var(--primary); text-transform: uppercase; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
.category-list { display: flex; flex-direction: column; gap: .25rem; }
.cat-link { display: block; padding: .4rem .75rem; border-radius: 5px; color: var(--text-gray); font-size: .88rem; transition: var(--transition); }
.cat-link:hover, .cat-link.active { background: var(--accent-light); color: var(--primary); font-weight: 600; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.search-box { display: flex; flex-direction: column; gap: .5rem; }

/* ============================================================ Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.checkout-left, .checkout-right { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; box-shadow: var(--shadow); }
.checkout-left h3, .checkout-right h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--border); }
.cart-item { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--bg-gray); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: .92rem; }
.cart-item-model { font-size: .8rem; color: var(--text-light); }
.cart-item-qty { display: flex; align-items: center; gap: .5rem; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--border); background: #fff; border-radius: 4px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { background: var(--primary); color: #fff; }
.cart-item-price { font-weight: 700; color: var(--primary); white-space: nowrap; }
.remove-btn { color: var(--danger); cursor: pointer; font-size: 1.2rem; padding: .25rem; }
.cart-summary { margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; padding: .35rem 0; color: var(--text-gray); font-size: .92rem; }
.summary-total { font-weight: 700; font-size: 1.1rem; color: var(--primary); border-top: 1px solid var(--border); padding-top: .5rem; margin-top: .25rem; }
.payment-note { background: var(--accent-light); border: 1px solid var(--accent); border-radius: 6px; padding: 1rem; margin-bottom: 1rem; font-size: .88rem; }
.payment-note p { margin-bottom: .25rem; }

/* ============================================================ Tender */
.tender-search-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.tender-search-panel h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1rem; }
.tender-search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; align-items: end; }
.tender-table-wrap { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; background: var(--bg-gray); border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--text-gray); }
.sort-hint { font-size: .8rem; color: var(--text-light); }
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { background: var(--primary); color: #fff; padding: .75rem 1rem; text-align: left; font-weight: 600; white-space: nowrap; font-size: .85rem; }
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { background: var(--primary-dark); }
.data-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--bg-gray); vertical-align: middle; }
.data-table tr:hover td { background: var(--accent-light); }
.data-table tr:last-child td { border-bottom: none; }
.sort-icon { opacity: .6; }
.tender-notice { margin-top: 1rem; padding: .75rem 1rem; background: #fff8dc; border: 1px solid #f0c040; border-radius: 6px; font-size: .88rem; color: #856404; }

/* ============================================================ Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
.contact-info h3, .contact-form h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--border); }
.contact-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { font-size: 1.4rem; width: 44px; height: 44px; background: var(--accent-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--primary); font-size: .88rem; margin-bottom: .2rem; }
.contact-item p { color: var(--text-gray); font-size: .92rem; }
.contact-item a { color: var(--text-dark); }
.contact-item a:hover { color: var(--primary); }
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.info-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.info-icon { font-size: 2rem; margin-bottom: .5rem; }
.info-card h4 { color: var(--primary); margin-bottom: .5rem; font-size: .95rem; }
.info-card p { color: var(--text-gray); font-size: .9rem; }

/* ============================================================ Forms */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-weight: 600; font-size: .88rem; color: var(--text-dark); margin-bottom: .4rem; }
.form-input { width: 100%; padding: .6rem .9rem; border: 1.5px solid var(--border); border-radius: 6px; font-size: .92rem; color: var(--text-dark); background: #fff; transition: var(--transition); font-family: inherit; }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,71,171,.1); outline: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1rem; font-size: .9rem; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ============================================================ About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.about-text h2 { color: var(--primary); margin-bottom: 1rem; }
.about-text p { color: var(--text-gray); margin-bottom: 1rem; line-height: 1.8; }
.about-highlights { display: flex; gap: 1.5rem; margin-top: 1.5rem; }
.highlight-item { text-align: center; }
.highlight-num { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); }
.about-features { display: flex; flex-direction: column; gap: 1rem; }
.feature-box { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.feature-box h3 { font-size: .95rem; color: var(--primary); margin-bottom: .5rem; }
.feature-box p { font-size: .88rem; color: var(--text-gray); }

/* ============================================================ Why Us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.why-item { text-align: center; padding: 1.5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.why-icon { font-size: 2rem; margin-bottom: .75rem; }
.why-item h4 { color: var(--primary); margin-bottom: .5rem; }
.why-item p { font-size: .88rem; color: var(--text-gray); }

/* ============================================================ CTA Section */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); color: #fff; text-align: center; padding: 4rem 1.5rem; }
.cta-section h2 { font-size: 1.8rem; margin-bottom: .75rem; }
.cta-section p { font-size: 1.05rem; margin-bottom: 2rem; color: rgba(255,255,255,.9); }
.cta-section .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }

/* ============================================================ Page Header */
.page-header { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%); color: #fff; padding: 3rem 1.5rem; text-align: center; }
.page-header h1 { font-size: 2.2rem; margin-bottom: .5rem; }
.page-header p { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* ============================================================ Footer */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.8); padding: 3rem 1.5rem 1rem; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary); }
.footer-col p { font-size: .88rem; line-height: 1.8; color: rgba(255,255,255,.7); }
.footer-contact p { margin-bottom: .35rem; font-size: .88rem; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul a { color: rgba(255,255,255,.7); font-size: .88rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; text-align: center; font-size: .83rem; color: rgba(255,255,255,.5); }

/* ============================================================ Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; padding: 1.5rem; flex-wrap: wrap; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: 6px; cursor: pointer; font-size: .88rem; color: var(--text-dark); background: #fff; transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================ Cart FAB */
.cart-fab { position: fixed; bottom: 2rem; right: 2rem; background: var(--primary); color: #fff; border-radius: 50px; padding: .75rem 1.25rem; cursor: pointer; font-size: 1rem; font-weight: 700; box-shadow: var(--shadow-md); transition: var(--transition); z-index: 999; }
.cart-fab:hover { background: var(--primary-dark); transform: scale(1.05); }

/* ============================================================ Modal */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(3px); }
.modal-content { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; position: relative; z-index: 1; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-lg { max-width: 800px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { color: var(--primary); font-size: 1.1rem; }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-gray); padding: .25rem; border-radius: 4px; transition: var(--transition); }
.modal-close:hover { background: var(--bg-gray); color: var(--danger); }
.modal-content form { padding: 1.5rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: .75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg-gray); }
.code-hint { background: var(--bg-gray); padding: .75rem; border-radius: 6px; font-size: .78rem; white-space: pre-wrap; word-break: break-all; margin-bottom: 1rem; border: 1px solid var(--border); overflow-x: auto; }

/* ============================================================ Admin */
.admin-body { background: var(--bg-dark); display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.admin-login-wrap { width: 100%; max-width: 420px; padding: 1rem; }
.admin-login-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); }
.admin-login-logo { text-align: center; margin-bottom: 2rem; }
.admin-login-logo h2 { color: var(--primary); font-size: 1.8rem; margin-bottom: .25rem; }
.admin-login-logo p { color: var(--text-gray); font-size: .9rem; }
.admin-body-main { background: var(--bg-gray); min-height: 100vh; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--bg-dark); flex-shrink: 0; display: flex; flex-direction: column; padding: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-logo { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-logo h3 { color: #fff; font-size: 1rem; }
.admin-logo p { color: rgba(255,255,255,.5); font-size: .78rem; }
.admin-nav { flex: 1; padding: 1rem 0; }
.admin-nav-link { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem; color: rgba(255,255,255,.7); font-size: .9rem; transition: var(--transition); border-left: 3px solid transparent; }
.admin-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-link.active { background: rgba(0,168,232,.2); color: var(--accent); border-left-color: var(--accent); }
.admin-sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.admin-sidebar-footer span { color: rgba(255,255,255,.7); font-size: .82rem; }
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar { background: #fff; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); }
.admin-topbar h2 { font-size: 1.2rem; color: var(--primary); }
.admin-content { padding: 1.5rem; flex: 1; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.stat-card .stat-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-title { font-size: .82rem; color: var(--text-gray); }
.dashboard-recent { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.dashboard-recent h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1rem; }
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ============================================================ Status Badges */
.badge { display: inline-block; padding: .25rem .65rem; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #cff4fc; color: #055160; }
.badge-processing { background: #cfe2ff; color: #0a58ca; }
.badge-shipped { background: #d1e7dd; color: #0f5132; }
.badge-completed { background: #d1e7dd; color: #0f5132; }
.badge-cancelled { background: #f8d7da; color: #842029; }
.badge-paid { background: #d1e7dd; color: #0f5132; }
.badge-unpaid { background: #f8d7da; color: #842029; }
.badge-active { background: #d1e7dd; color: #0f5132; }
.badge-inactive { background: #e2e3e5; color: #383d41; }
.badge-superadmin { background: #cfe2ff; color: #0a58ca; }
.badge-admin { background: #e2e3e5; color: #383d41; }

/* ============================================================ Misc */
.loading { text-align: center; padding: 3rem; color: var(--text-gray); }
.error-msg { color: var(--danger); font-size: .88rem; padding: .5rem .75rem; background: #f8d7da; border-radius: 5px; margin-bottom: .75rem; }
.success-msg { color: #0f5132; font-size: .88rem; padding: .5rem .75rem; background: #d1e7dd; border-radius: 5px; margin-bottom: .75rem; }
.text-center { text-align: center; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-gray); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ============================================================ Responsive */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding: 3rem 1.5rem; gap: 2rem; }
  .hero-btns { justify-content: center; }
  .hero-cards { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 65px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-md); padding: 1rem; gap: .25rem; z-index: 999; }
  .nav-menu.show { display: flex; }
  .nav-toggle { display: block; }
  .nav-link { padding: .6rem 1rem; }
  .hero-title { font-size: 2rem; }
  .shop-layout { flex-direction: column; }
  .shop-sidebar { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .tender-search-grid { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { width: 200px; }
  .hero-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .hero-cards { grid-template-columns: repeat(2, 1fr); }
  .stats-container { gap: 1.5rem; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .admin-nav { display: flex; flex-wrap: wrap; padding: .5rem; }
  .admin-nav-link { border-left: none; border-bottom: 3px solid transparent; font-size: .8rem; padding: .5rem .75rem; }
  .admin-nav-link.active { border-left: none; border-bottom-color: var(--accent); }
  .tender-search-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.6rem; }
  .section-header h2 { font-size: 1.6rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   服務卡片帶背景圖片及 Hover 效果
   ============================================================ */
.service-card-with-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.3s ease;
}

.service-card-with-bg:hover .service-overlay {
  background: rgba(0, 0, 0, 0.30);
}

.service-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 1.5rem;
  width: 100%;
}

.service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.service-content p {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.95;
  color: #fff;
}

.service-card-with-bg:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   新版 Hero Section (參考 MTSC 風格)
   ============================================================ */
.hero-new {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-new-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.4);
}

.hero-new-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,71,171,0.7) 0%, rgba(0,168,232,0.5) 100%);
}

.hero-new-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 4rem 1.5rem;
}

.hero-new-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 2px;
}

.hero-new-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-new-slogan {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
  opacity: 0.98;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============================================================
   核心價值卡片
   ============================================================ */
.core-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.core-value-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.core-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.core-value-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.core-value-card h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.core-value-card h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.core-value-card p {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ============================================================
   故事內容區塊
   ============================================================ */
.story-content {
  max-width: 900px;
  margin: 0 auto;
}

.story-lead {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-dark);
  margin-bottom: 3rem;
  text-align: justify;
  padding: 2rem;
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
}

.story-lead strong {
  color: var(--primary);
  font-weight: 700;
}

.story-grid {
  display: grid;
  gap: 2.5rem;
}

.story-block h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.story-block p {
  line-height: 1.9;
  color: var(--text-gray);
  margin-bottom: 1rem;
  text-align: justify;
  font-size: 0.98rem;
}

.story-block p strong {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   新版數據統計
   ============================================================ */
.stats-new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-new-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-new-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-new-num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-new-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.stat-new-item p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
}

/* ============================================================
   響應式設計
   ============================================================ */
@media (max-width: 768px) {
  .hero-new-title {
    font-size: 2rem;
  }
  
  .hero-new-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }
  
  .hero-new-slogan {
    font-size: 1.1rem;
  }
  
  .core-values-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-new-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .story-lead {
    padding: 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-new-title {
    font-size: 1.6rem;
  }
  
  .stats-new-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
