/* VmShell 中國旅遊網站 - 主樣式表 */
/* 純CSS，無框架 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://cdn.jsdelivr.net/npm/remixicon@4.2.0/fonts/remixicon.css');

:root {
  --primary:   #c0392b;
  --primary-d: #96281b;
  --secondary: #e67e22;
  --dark:      #1a1a2e;
  --text:      #333;
  --light-bg:  #f8f9fa;
  --border:    #e0e0e0;
  --white:     #fff;
  --shadow:    0 4px 20px rgba(0,0,0,.12);
  --radius:    8px;
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'PingFang SC','Microsoft YaHei',sans-serif; color: var(--text); background: var(--white); line-height: 1.7; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-d); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* 用戶中心佈局 */
.user-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 0;
    align-items: start;
}

@media (max-width: 992px) {
    .user-layout {
        grid-template-columns: 1fr;
    }
    .user-sidebar {
        position: static !important;
        margin-bottom: 30px;
    }
}

.user-main {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-height: 600px;
}

.user-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #f1f5f9;
}

.user-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th {
    text-align: left;
    padding: 15px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid #f1f5f9;
}

.user-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 0.95rem;
}

.user-table tr:last-child td {
    border-bottom: none;
}

/* ===== TOPBAR ===== */
.topbar { background: var(--dark); color: #ccc; font-size: .85rem; padding: 6px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left span, .topbar-right a { margin: 0 8px; }
.topbar-right a { color: #ccc; }
.topbar-right a:hover { color: var(--white); }

/* ===== HEADER / NAV ===== */
.main-header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.1); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo a { font-size: 1.6rem; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.logo-sub { display: block; font-size: .75rem; color: #888; margin-top: -4px; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 8px 14px; font-size: .95rem; color: var(--dark); border-radius: var(--radius); transition: background var(--transition); }
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { background: var(--primary); color: var(--white); }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 160px; box-shadow: var(--shadow); border-radius: var(--radius); z-index: 999; padding: 8px 0; opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition); }
/* 取消 hover 自動彈出子選單 - 用戶需要點擊才能展開 */
.has-dropdown:hover .dropdown { /* display: block; opacity: 1; visibility: visible; */ }
.dropdown li a { display: block; padding: 8px 18px; font-size: .9rem; color: var(--text); white-space: nowrap; }
.dropdown li a:hover { background: var(--light-bg); color: var(--primary); }
/* 點擊後顯示子選單 */
.has-dropdown.active .dropdown { display: block; opacity: 1; visibility: visible; }
.nav-toggle { display: none; background: none; border: 2px solid var(--primary); color: var(--primary); padding: 6px 12px; border-radius: var(--radius); cursor: pointer; font-size: 1.2rem; }

/* ===== HERO BANNER ===== */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.55); }
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 700px; padding: 60px 20px; }
.hero-content h1 { font-size: 3rem; font-weight: 700; line-height: 1.2; margin-bottom: 20px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: .9; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 32px; border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all var(--transition); border: 2px solid transparent; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-d); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 8px 20px; font-size: .9rem; }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #d35400; color: var(--white); }
.btn-danger { background: #e74c3c; color: var(--white); }
.btn-danger:hover { background: #c0392b; color: var(--white); }
.btn-success { background: #27ae60; color: var(--white); }
.btn-success:hover { background: #1e8449; color: var(--white); }

/* ===== SEARCH BAR ===== */
.search-bar { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin: -40px auto 0; max-width: 900px; position: relative; z-index: 10; }
.search-bar form { display: flex; gap: 12px; flex-wrap: wrap; }
.search-bar input, .search-bar select { flex: 1; min-width: 160px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .95rem; }
.search-bar button { padding: 12px 32px; }

/* ===== SECTION ===== */
.section { padding: 70px 0; }
.section-alt { background: var(--light-bg); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; color: var(--dark); margin-bottom: 12px; }
.section-title p { color: #666; font-size: 1.05rem; }
.section-title .line { width: 60px; height: 4px; background: var(--primary); margin: 12px auto 0; border-radius: 2px; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 20px; }
.card-category { font-size: .8rem; color: var(--primary); font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
.card-title { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.card-text { color: #666; font-size: .9rem; line-height: 1.6; margin-bottom: 16px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--border); }
.price { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.price-old { font-size: .9rem; color: #999; text-decoration: line-through; margin-left: 6px; }

/* ===== STATS ===== */
.stats-bar { background: var(--primary); color: var(--white); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; font-weight: 700; }
.stat-item p { font-size: .95rem; opacity: .85; margin-top: 4px; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.feature-item { text-align: center; padding: 30px 20px; border-radius: var(--radius); background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform var(--transition); }
.feature-item:hover { transform: translateY(-4px); }
.feature-icon { font-size: 3rem; margin-bottom: 16px; }
.feature-item h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 10px; }
.feature-item p { color: #666; font-size: .9rem; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.testimonial { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,.06); border-left: 4px solid var(--primary); }
.testimonial-text { font-style: italic; color: #555; margin-bottom: 16px; }
.testimonial-author { font-weight: 600; color: var(--dark); }
.stars { color: #f39c12; font-size: 1.1rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 14px 0; font-size: .9rem; color: #888; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== PAGE HERO ===== */
.page-hero { position: relative; background: var(--dark); color: var(--white); padding: 100px 0; text-align: center; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.5); z-index: 1; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; opacity: .8; }

/* ===== SIDEBAR LAYOUT ===== */
.content-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.06); margin-bottom: 24px; }
.sidebar-widget h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.sidebar-widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: var(--text); font-size: .9rem; }
.sidebar-widget ul li a:hover { color: var(--primary); }

/* ===== PRODUCT DETAIL ===== */
.product-detail { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }
.product-gallery img { width: 100%; border-radius: var(--radius); }
.product-info h1 { font-size: 1.8rem; color: var(--dark); margin-bottom: 16px; }
.product-price { font-size: 2rem; color: var(--primary); font-weight: 700; margin: 16px 0; }
.product-tabs { margin-top: 30px; }
.tab-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-nav a { padding: 10px 20px; color: #666; font-size: .95rem; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-nav a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; transition: border-color var(--transition); background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input { width: auto; }

/* ===== ALERTS ===== */
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: .95rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ===== BADGES ===== */
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: .78rem; font-weight: 600; }
.badge-success   { background: #d4edda; color: #155724; }
.badge-danger    { background: #f8d7da; color: #721c24; }
.badge-warning   { background: #fff3cd; color: #856404; }
.badge-info      { background: #d1ecf1; color: #0c5460; }
.badge-primary   { background: #cce5ff; color: #004085; }
.badge-secondary { background: #e2e3e5; color: #383d41; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--light-bg); font-weight: 600; color: var(--dark); }
tr:hover td { background: #fafafa; }

/* ===== PAGINATION ===== */
.pagination ul { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 30px 0; }
.pagination li a { display: block; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.pagination li.active a { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination li a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== NEWS ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform var(--transition); }
.news-card:hover { transform: translateY(-4px); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card-body { padding: 20px; }
.news-date { font-size: .82rem; color: #999; margin-bottom: 8px; }
.news-card-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.news-card-title a { color: var(--dark); }
.news-card-title a:hover { color: var(--primary); }

/* ===== HOTEL / ATTRACTION ===== */
.poi-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform var(--transition); }
.poi-card:hover { transform: translateY(-4px); }
.poi-card img { width: 100%; height: 200px; object-fit: cover; }
.poi-card-body { padding: 18px; }
.poi-card-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.poi-card-meta { font-size: .85rem; color: #888; margin-bottom: 8px; }
.poi-card-desc { font-size: .9rem; color: #555; }
.poi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* ===== STAFF ===== */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.staff-card { text-align: center; background: var(--white); border-radius: var(--radius); padding: 30px 20px; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform var(--transition); }
.staff-card:hover { transform: translateY(-4px); }
.staff-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid var(--primary); }
.staff-name { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.staff-position { font-size: .88rem; color: var(--primary); margin-top: 4px; }
.staff-bio { font-size: .85rem; color: #666; margin-top: 12px; }

/* ===== DISCUSSION / TICKET ===== */
.discussion-list .discussion-item { background: var(--white); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.discussion-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.discussion-meta { font-size: .82rem; color: #999; margin-bottom: 10px; }
.discussion-excerpt { font-size: .9rem; color: #555; }
.reply-form { background: var(--light-bg); border-radius: var(--radius); padding: 20px; margin-top: 20px; }

/* ===== PROFILE ===== */
.profile-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.profile-sidebar { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.06); height: fit-content; }
.profile-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; border: 3px solid var(--primary); }
.profile-name { text-align: center; font-weight: 700; font-size: 1.1rem; }
.profile-menu { margin-top: 20px; }
.profile-menu a { display: block; padding: 10px 14px; color: var(--text); border-radius: var(--radius); font-size: .95rem; margin-bottom: 4px; }
.profile-menu a:hover, .profile-menu a.active { background: var(--primary); color: var(--white); }
.profile-content { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }
.checkout-box { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.order-summary-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-total { display: flex; justify-content: space-between; padding: 16px 0; font-size: 1.2rem; font-weight: 700; }

/* ===== FILTER BAR ===== */
.filter-bar { background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 30px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-bar select, .filter-bar input { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; }

/* ===== GROUP BUY ===== */
.group-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform var(--transition); }
.group-card:hover { transform: translateY(-4px); }
.group-card-header { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); padding: 20px; }
.group-card-body { padding: 20px; }
.group-progress { background: #eee; border-radius: 50px; height: 8px; margin: 12px 0; overflow: hidden; }
.group-progress-bar { height: 100%; background: var(--primary); border-radius: 50px; transition: width .5s ease; }
.group-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #666; margin-top: 12px; }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--dark); color: var(--white); flex-shrink: 0; }
.admin-sidebar .logo { padding: 24px 20px; font-size: 1.2rem; font-weight: 700; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: rgba(255,255,255,.75); font-size: .9rem; transition: all var(--transition); }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,.1); color: var(--white); padding-left: 28px; }
.admin-sidebar nav .nav-section { padding: 10px 20px 4px; font-size: .75rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; }
.admin-main { flex: 1; background: #f0f2f5; overflow: auto; }
.admin-topbar { background: var(--white); padding: 16px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.admin-topbar h1 { font-size: 1.3rem; color: var(--dark); }
.admin-content { padding: 30px; }
.admin-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 24px; }
.admin-card h2 { font-size: 1.1rem; color: var(--dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.06); border-left: 4px solid var(--primary); }
.stat-card h3 { font-size: 2rem; font-weight: 700; color: var(--dark); }
.stat-card p { font-size: .9rem; color: #888; margin-top: 4px; }
.stat-card.blue   { border-left-color: #3498db; }
.stat-card.green  { border-left-color: #27ae60; }
.stat-card.orange { border-left-color: var(--secondary); }
.stat-card.red    { border-left-color: var(--primary); }

/* ===== INSTALL ===== */
.install-wrap { min-height: 100vh; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.install-box { background: var(--white); border-radius: 16px; padding: 50px; max-width: 700px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.install-logo { text-align: center; margin-bottom: 30px; }
.install-logo h1 { font-size: 2rem; color: var(--primary); }
.install-logo p { color: #888; margin-top: 6px; }
.install-steps { display: flex; justify-content: center; gap: 0; margin-bottom: 40px; }
.install-step { display: flex; align-items: center; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--border); color: #888; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.step-num.active { background: var(--primary); color: var(--white); }
.step-num.done { background: #27ae60; color: var(--white); }
.step-line { width: 60px; height: 2px; background: var(--border); }
.step-line.done { background: #27ae60; }
.install-section h2 { font-size: 1.3rem; color: var(--dark); margin-bottom: 20px; }
.install-section .form-group input { font-size: 1rem; padding: 14px 16px; }

/* ===== RATING STARS ===== */
.rating { display: flex; gap: 4px; }
.rating .star { font-size: 1.3rem; color: #ddd; cursor: pointer; }
.rating .star.filled { color: #f39c12; }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px; }
.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); line-height: 1.15; }
.footer-col p, .footer-col address { font-size: .88rem; line-height: 1.45; font-style: normal; margin: 0; }
.footer-col ul li { margin-bottom: 5px; line-height: 1.28; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .88rem; }
.footer-col ul li a:hover { color: var(--white); }
.social-links { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-links a { background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); padding: 6px 12px; border-radius: var(--radius); font-size: .82rem; transition: background var(--transition); }
.social-links a:hover { background: var(--primary); color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding: 16px 0; text-align: center; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-detail, .checkout-layout, .content-sidebar { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .admin-sidebar { width: 220px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); padding: 16px; z-index: 999; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .dropdown { position: static; box-shadow: none; padding-left: 16px; }
  .has-dropdown:hover .dropdown { display: block; opacity: 1; visibility: visible; }
  .nav-toggle { display: block; }
  .hero-content h1 { font-size: 2rem; }
  .hero { min-height: 400px; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar-left { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .install-box { padding: 30px 20px; }
  .hero-content h1 { font-size: 1.6rem; }
}

/* ============================================================================
   全局視頻播放器樣式 - 確保 Quill 視頻內容正確顯示和播放
   ============================================================================ */

/* HTML5 video 標籤全局樣式 */
video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 10px 0;
  background: #000;
  display: block;
}

/* Quill 編輯器中的視頻標籤 */
.ql-editor video {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 8px;
}

/* 確保視頻容器正確顯示 */
.ql-editor ql-video {
  display: block;
  max-width: 100%;
  margin: 10px 0;
}

/* 詳情頁面中的視頻 */
article video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
}

/* 響應式視頻容器 */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 15px 0;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* 移動設備上的視頻優化 */
@media (max-width: 768px) {
  video {
    margin: 8px 0;
  }
  
  article video {
    margin: 10px 0;
  }
}
