/* ===== 蘋果快修專家 - 樣式表 ===== */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --accent: #ff6b35;
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #1a1a2e;
    --text-light: #666;
    --border: #e0e0e0;
    --shadow: 0 2px 16px rgba(0,0,0,0.08);
    --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; font-size: 1.6rem; margin-bottom: 2rem; color: var(--text); }
section { padding: 60px 0; }

/* Top Bar */
.top-bar { background: var(--primary-dark); color: #fff; font-size: 0.85rem; padding: 8px 0; }
.top-bar .container { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.top-bar i { margin-right: 5px; }

/* Header */
header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
header .container { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--primary); font-weight: 700; font-size: 1.2rem; }
.logo i { font-size: 1.5rem; }
nav { display: flex; gap: 6px; align-items: center; }
nav a { text-decoration: none; color: var(--text); padding: 8px 14px; border-radius: 8px; font-size: 0.9rem; transition: 0.2s; }
nav a:hover { background: var(--bg); }
.btn-nav { background: var(--primary); color: #fff !important; }
.btn-nav:hover { background: var(--primary-dark) !important; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text); }

/* Hero */
.hero { background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%); color: #fff; text-align: center; padding: 80px 20px; }
.hero h1 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: 0.3s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #e55a2b; transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,0.2); color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { background: rgba(255,255,255,0.3); }
.hero-image i { font-size: 6rem; margin-top: 2rem; opacity: 0.3; }

/* Features */
.features { background: #fff; }
.features .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { text-align: center; padding: 30px 20px; border-radius: var(--radius); transition: 0.3s; }
.feature-card:hover { box-shadow: var(--shadow); }
.feature-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 8px; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-card { background: var(--card); padding: 30px 24px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.service-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 0.9rem; }

/* Brands */
.brands { background: #fff; }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.brand-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); transition: 0.3s; cursor: pointer; }
.brand-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.brand-card i { font-size: 2rem; color: var(--primary); }
.brand-card span { font-weight: 500; }

/* Price */
.price-table { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-row { display: grid; grid-template-columns: 1fr 1fr 100px; padding: 14px 20px; border-bottom: 1px solid var(--border); align-items: center; }
.price-row.header { background: var(--primary); color: #fff; font-weight: 600; }
.price-row:last-child { border: none; }
.price-row:nth-child(even) { background: #f8f9ff; }
.price-amount { text-align: right; font-weight: 700; color: var(--accent); }
.price-note { text-align: center; color: var(--text-light); font-size: 0.85rem; margin-top: 12px; }

/* Stores */
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.store-card { background: var(--card); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.store-card h3 { color: var(--primary); margin-bottom: 12px; }
.store-card p { margin-bottom: 4px; color: var(--text-light); font-size: 0.9rem; }
.store-card i { width: 20px; color: var(--primary); }

/* Contact Form */
.contact { background: #fff; }
.quote-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 1rem; transition: 0.2s; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form .btn-primary { width: 100%; justify-content: center; margin-top: 8px; border: none; cursor: pointer; }

/* 主機板維修強調區 */
.mb-section { background: linear-gradient(135deg, #0d47a1 0%, #1a73e8 100%); color: #fff; }
.mb-content { display: flex; align-items: center; gap: 40px; max-width: 900px; margin: 0 auto; }
.mb-icon { flex-shrink: 0; font-size: 5rem; opacity: 0.3; }
.mb-text h2 { font-size: 1.5rem; margin-bottom: 16px; }
.mb-text p { opacity: 0.9; margin-bottom: 10px; line-height: 1.7; }
.mb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mb-tag { background: rgba(255,255,255,0.2); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; }

/* 單門市 */
.store-section { background: #fff; }
.store-card-single { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 900px; margin: 0 auto; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.store-info { padding: 30px; }
.store-info h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--primary); }
.store-badge { display: inline-block; background: #fff3cd; color: #856404; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; margin-bottom: 16px; }
.store-info p { margin-bottom: 8px; color: var(--text-light); }
.store-info i { width: 24px; color: var(--primary); }
.btn-map { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 20px; background: var(--primary); color: #fff; text-decoration: none; border-radius: 8px; font-weight: 500; }
.btn-map:hover { background: var(--primary-dark); }
.store-map { min-height: 300px; }

/* Service card highlight */
.service-card.highlight { border: 2px solid var(--primary); position: relative; }
.service-card.highlight i { color: var(--accent); }

/* 浮動 map 按鈕 */
.float-map { background: var(--primary); }

/* Apple 新聞區塊 */
.news { background: var(--bg); }
.news-subtitle { text-align: center; color: var(--text-light); margin-top: -1rem; margin-bottom: 2rem; font-size: 0.95rem; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.news-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.news-card-body { padding: 20px; }
.news-card h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.news-card h3 a { color: var(--text); text-decoration: none; }
.news-card h3 a:hover { color: var(--primary); }
.news-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 8px; line-height: 1.5; }
.news-meta { font-size: 0.75rem; color: #999; display: flex; gap: 12px; }
.news-meta .source { color: var(--primary); }
.news-loading { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--text-light); }
.news-loading i { font-size: 2rem; display: block; margin-bottom: 12px; }
.news-source { text-align: center; margin-top: 16px; font-size: 0.8rem; color: var(--text-light); }
.news-source a { color: var(--primary); text-decoration: none; }
.news-category { margin-bottom: 30px; }
.news-cat-title { font-size: 1.1rem; margin-bottom: 15px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.news-cat-title i { color: var(--primary); }

/* Footer */
footer { background: #1a1a2e; color: rgba(255,255,255,0.8); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 8px; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { margin-bottom: 6px; font-size: 0.9rem; }
.footer-col i { width: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 0.85rem; }

/* Floating Buttons */
.float-btns { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.float-btns a { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: 0.3s; text-decoration: none; }
.float-phone { background: var(--accent); }
.float-line { background: #06c755; }
.float-btns a:hover { transform: scale(1.1); }

/* RWD */
@media (max-width: 768px) {
    nav { display: none; }
    .menu-toggle { display: block; }
    nav.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px; box-shadow: var(--shadow); }
    .features .container { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .price-row { grid-template-columns: 1fr 1fr 80px; font-size: 0.85rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero h1 { font-size: 1.6rem; }
    .hide-mobile { display: none; }
    .store-grid { grid-template-columns: 1fr; }
}
