/* ========================================
   勝鉦五金企業行 - 官網樣式
   配色：深藍 + 金色（參考名片風格）
   ======================================== */

/* ---------- 變數 ---------- */
:root {
    --primary: #1B3A5C;        /* 深藍 */
    --primary-dark: #122741;
    --primary-light: #2A5580;
    --accent: #C9A96E;         /* 金色 */
    --accent-dark: #A88A4E;
    --accent-light: #E6D4A8;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg: #FFFFFF;
    --bg-soft: #F8F9FB;
    --bg-dark: #0F1F33;
    --border: #E5E7EB;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(27,58,92,0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- 重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Microsoft JhengHei', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 按鈕 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}
.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border-color: rgba(201,169,110,0.4);
}
.btn-ghost:hover {
    background: rgba(201,169,110,0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-lg { padding: 18px 48px; font-size: 17px; width: 100%; }

/* ---------- 導航列 ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.logo-main {
    font-family: 'Noto Serif TC', serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 2px;
}
.logo-sub {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-menu a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}
.nav-menu a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }
.nav-menu a:not(.nav-cta):hover { color: var(--primary); }

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: var(--radius);
}
.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    padding: 120px 0 80px;
    min-height: auto;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15,31,51,0.92), rgba(27,58,92,0.88)),
        linear-gradient(45deg, #1B3A5C 0%, #0F1F33 100%);
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201,169,110,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,169,110,0.08) 1px, transparent 1px);
    background-size: 50px 50px;
}
.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(201,169,110,0.18) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; transform: translate(0, 0); }
    100% { opacity: 1; transform: translate(-5%, 5%); }
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 960px;
    animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hero-content > * {
    animation: heroItemFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }
.hero-content > *:nth-child(4) { animation-delay: 0.5s; }
.hero-content > *:nth-child(5) { animation-delay: 0.65s; }
.hero-content > *:nth-child(6) { animation-delay: 0.8s; }

@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes heroItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-tag {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(201,169,110,0.15);
    color: var(--accent);
    border: 1px solid rgba(201,169,110,0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.hero-title {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.hero-title .title-text {
    background: linear-gradient(180deg, #ffffff 40%, #E6D4A8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 2px;
}
.hero-title .dot {
    display: inline-block;
    color: var(--accent);
    margin: 0 4px;
    font-weight: 500;
    -webkit-text-fill-color: var(--accent);
}
.hero-title .title-line {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    display: block;
}

.hero-subtitle {
    font-size: clamp(14px, 1.5vw, 17px);
    margin-bottom: 22px;
    color: rgba(255,255,255,0.88);
    line-height: 1.8;
    letter-spacing: 1.5px;
}

/* Hero 信任徽章 */
.hero-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 26px;
}
.hero-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,169,110,0.25);
    border-radius: 100px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.hero-badges .badge:hover {
    background: rgba(201,169,110,0.12);
    border-color: var(--accent);
    transform: translateY(-2px);
}
.hero-badges .badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 900;
}

.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 100px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    backdrop-filter: blur(6px);
}
.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}
.hero-meta-item:hover {
    color: var(--accent);
}
.hero-meta-item .meta-icon {
    font-size: 14px;
}
.hero-meta .divider {
    width: 1px;
    height: 14px;
    background: rgba(201,169,110,0.35);
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll { display: none; }

/* ---------- 通用區塊 ---------- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}
.section-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 4px;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(32px, 5vw, 48px);
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: 2px;
}
.section-desc {
    color: var(--text-light);
    font-size: 17px;
}

/* ---------- About ---------- */
.about { background: var(--bg-soft); }
.about-single {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}
.about-text h3 {
    font-family: 'Noto Serif TC', serif;
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 20px;
}
.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.9;
    text-align: left;
}
@media (min-width: 768px) {
    .about-text p { text-align: center; }
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.feature h4 {
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 17px;
}
.feature p {
    margin: 0;
    font-size: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.stat-card {
    background: white;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.stat-num {
    display: block;
    font-family: 'Noto Serif TC', serif;
    font-size: 40px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}
.stat-label {
    color: var(--text-light);
    font-size: 14px;
    letter-spacing: 2px;
}

/* ---------- Products ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}
.product-card:hover::before { transform: scaleX(1); }

.product-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, rgba(201,169,110,0.12), rgba(27,58,92,0.06));
    border-radius: 18px;
    color: var(--primary);
    transition: var(--transition);
}
.product-icon svg {
    width: 44px;
    height: 44px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.product-card:hover .product-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    transform: scale(1.05);
}
.product-card h3 {
    font-family: 'Noto Serif TC', serif;
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 8px;
}
.product-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Brands ---------- */
.brands { background: var(--bg-dark); color: white; }
.brands .section-title { color: white; }
.brands .section-desc { color: rgba(255,255,255,0.7); }

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.brand-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.brand-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(201,169,110,0.2);
}
.brand-card h3 {
    font-family: 'Noto Serif TC', serif;
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.brand-subtitle {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.brand-card > p:last-child {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.info-item {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(201,169,110,0.15);
    border-left: 3px solid var(--accent);
    transition: var(--transition);
}
.info-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow);
}
.info-body {
    flex: 1;
    min-width: 0;
}
.info-item h4 {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.info-item p {
    color: var(--text);
    font-size: 15px;
    margin: 2px 0;
    line-height: 1.5;
    word-break: break-word;
}
.info-item p .sep {
    color: var(--text-light);
    margin: 0 4px;
}
.info-item p.fax {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}
.info-item a {
    color: var(--primary);
    font-weight: 500;
}
.info-item a:hover { color: var(--accent); }
.info-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--accent) !important;
}

@media (max-width: 600px) {
    .info-grid { grid-template-columns: 1fr; gap: 12px; }
    .info-item { padding: 16px; }
}

.contact-line {
    background: var(--primary);
    color: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: sticky;
    top: 100px;
}
.contact-line h3 {
    font-family: 'Noto Serif TC', serif;
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--accent);
}
.contact-line p { font-size: 14px; color: rgba(255,255,255,0.8); }

.qr-box {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}
.qr-image {
    width: 220px;
    height: 220px;
    padding: 12px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(201,169,110,0.25);
    transition: var(--transition);
}
.qr-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.qr-image:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(201,169,110,0.4);
}
.qr-placeholder {
    width: 220px;
    height: 220px;
    background: white;
    border: 3px dashed var(--accent);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
}
.qr-placeholder span {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}
.qr-placeholder small {
    color: var(--text-light);
    font-size: 12px;
}
.line-note {
    font-size: 13px !important;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ---------- Inquiry Form ---------- */
.inquiry { background: var(--bg-soft); }

/* 詢價方式卡片 */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 60px;
}
.method-card {
    position: relative;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px 24px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.method-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.method-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border-radius: 50%;
    margin-bottom: 16px;
    transition: var(--transition);
}
.method-card:hover .method-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.method-icon .emoji-icon {
    font-size: 30px;
}
.method-line {
    background: #06C755 !important;
    padding: 10px;
}
.method-line svg {
    width: 100%;
    height: 100%;
}
.method-card:hover .method-line {
    background: #05b04b !important;
}
.method-card h4 {
    font-family: 'Noto Serif TC', serif;
    color: var(--primary);
    font-size: 19px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.method-card p {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
    flex: 1;
}
.method-action {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: 12px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.method-card:hover .method-action {
    background: var(--accent);
    color: white;
}

.method-recommended {
    background: linear-gradient(135deg, #fff 0%, #FFFBF5 100%);
    border: 2px solid var(--accent);
    box-shadow: 0 8px 24px rgba(201,169,110,0.2);
}
.method-recommended::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.method-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    box-shadow: var(--shadow);
}
.method-recommended .method-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.method-action-highlight {
    background: var(--accent) !important;
    color: white !important;
    font-weight: 500;
}

.section-desc strong {
    color: var(--accent-dark);
    font-weight: 700;
}

/* 分隔線 */
.form-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0 auto 40px;
    max-width: 700px;
}
.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border));
}
.form-divider::after {
    background: linear-gradient(90deg, var(--border), transparent);
}
.form-divider span {
    color: var(--text-light);
    font-size: 14px;
    letter-spacing: 3px;
    font-family: 'Noto Serif TC', serif;
    font-weight: 500;
}

@media (max-width: 960px) {
    .methods-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
    .methods-grid { grid-template-columns: 1fr; }
}

.inquiry-form {
    max-width: 980px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* 友善介紹文字 */
.form-intro {
    background: linear-gradient(135deg, rgba(201,169,110,0.08), rgba(201,169,110,0.03));
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 28px;
}
.form-intro p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 15px;
}
.required { color: #DC2626; margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: white;
    transition: var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #BBBBBB;
    font-size: 14px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 表單底部：To + 送出按鈕 */
.form-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}
.form-to p {
    margin: 2px 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}
.form-to .form-to-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}
.form-to .form-to-company {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
}
.btn-inquiry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 500;
    min-width: 260px;
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn-inquiry:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-icon {
    font-size: 20px;
}

.form-note {
    text-align: center;
    margin-top: 16px;
    color: var(--text-light);
    font-size: 13px;
}

/* ---------- 整合式頁尾（含聯絡我們） ---------- */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-top {
    padding: 80px 0 60px;
    position: relative;
}
.footer-top::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(201,169,110,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}
.footer-header .section-tag {
    color: var(--accent);
}
.footer-title {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(32px, 4vw, 42px);
    color: white;
    font-weight: 900;
    margin: 10px 0 14px;
    letter-spacing: 3px;
}
.footer-desc {
    color: rgba(255,255,255,0.65);
    font-size: 16px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 56px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* 左側：公司資訊 + 聯絡方式 */
.footer-info { }

.footer-brand {
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(201,169,110,0.2);
}
.footer-brand h3 {
    font-family: 'Noto Serif TC', serif;
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.footer-brand .footer-tax {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* 門市營業時間（跨兩欄，嵌入聯絡 grid） */
.fc-item.fc-hours {
    grid-column: 1 / -1;
    padding-top: 20px;
    margin-top: 4px;
    border-top: 1px dashed rgba(201,169,110,0.18);
}
.fc-hours .hours-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 4px 0;
    color: rgba(255,255,255,0.88);
    font-size: 15px;
    letter-spacing: 0.5px;
}
.fc-hours .hours-day {
    color: rgba(255,255,255,0.78);
    min-width: 112px;
    font-size: 15px;
}
.fc-hours .hours-time {
    color: var(--accent);
    font-weight: 500;
    font-family: 'Noto Sans TC', monospace;
    letter-spacing: 1px;
    font-size: 15px;
}
.fc-hours .fc-sub {
    margin-top: 10px !important;
    font-size: 14.5px !important;
    color: rgba(255,255,255,0.8) !important;
}

.footer-contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
    margin-bottom: 28px;
}
.fc-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.fc-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,169,110,0.12);
    border: 1px solid rgba(201,169,110,0.25);
    border-radius: 50%;
    font-size: 16px;
}
.fc-item > div {
    flex: 1;
    min-width: 0;
}
.fc-item p {
    margin: 2px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.88);
    line-height: 1.6;
    word-break: break-word;
}
.fc-label {
    color: var(--accent) !important;
    font-size: 12px !important;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 4px !important;
}
.fc-label-sub {
    margin-top: 10px !important;
}
.fc-sub {
    color: rgba(255,255,255,0.75) !important;
    font-size: 14px !important;
}
.fc-item a {
    color: rgba(255,255,255,0.88);
    transition: var(--transition);
}
.fc-item a:hover {
    color: var(--accent);
}
.fc-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px !important;
    color: var(--accent) !important;
}

.footer-quick {
    padding-top: 22px;
    border-top: 1px solid rgba(201,169,110,0.15);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.footer-quick a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}
.footer-quick a:hover {
    color: var(--accent);
}
.footer-quick .fq-sep {
    color: rgba(201,169,110,0.4);
    font-size: 12px;
}

/* 右側：LINE QR 卡片 */
.footer-line {
    background: linear-gradient(135deg, rgba(201,169,110,0.06) 0%, rgba(27,58,92,0.3) 100%);
    border: 1px solid rgba(201,169,110,0.3);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(10px);
}
.footer-line h3 {
    font-family: 'Noto Serif TC', serif;
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--accent);
    letter-spacing: 2px;
}
.footer-line > p {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.2);
}
.footer-bottom p {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin: 0;
    letter-spacing: 0.5px;
}

@media (max-width: 880px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-line {
        max-width: 360px;
        margin: 0 auto;
    }
}
@media (max-width: 520px) {
    .footer-top { padding: 60px 0 40px; }
    .footer-header { margin-bottom: 40px; }
    .footer-contacts { grid-template-columns: 1fr; gap: 18px; }
    .footer-brand h3 { font-size: 20px; }
}

/* ---------- 回到頂部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-4px);
}

/* ---------- 動畫 ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 響應式 ---------- */
@media (max-width: 960px) {
    .section { padding: 72px 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-line { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero { padding: 100px 0 60px; }
    .hero-title { gap: 12px; }
    .hero-title .title-line { max-width: 40px; }
    .hero-meta { padding: 10px 16px; font-size: 12px; }
    .hero-meta .divider { display: none; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-menu li { width: 100%; }
    .nav-menu a {
        display: block;
        padding: 14px 24px;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu .nav-cta {
        margin: 12px 24px 0;
        text-align: center;
    }
    .hero-cta { flex-direction: column; align-items: stretch; max-width: 280px; margin: 0 auto; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0; }
    .inquiry-form { padding: 32px 24px; }
    .form-footer {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .btn-inquiry { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 90px 0 50px; }
    .section { padding: 56px 0; }
    .section-header { margin-bottom: 40px; }
    .about-text h3 { font-size: 24px; }
    .about-text p { font-size: 15px; }
}

/* ---------- 註冊商標符號 ® ---------- */
sup {
    font-size: 0.55em;
    vertical-align: super;
    line-height: 0;
    font-weight: 500;
    margin-left: 2px;
    color: var(--accent);
    letter-spacing: 0;
}

/* ---------- 可點擊卡片（球閥系列連結） ---------- */
.product-card-link,
.brand-card-link {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.product-card-link { align-items: flex-start; }
.brand-card-link { }

.card-more {
    display: inline-block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(201,169,110,0.35);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    align-self: stretch;
}
.product-card-link:hover .card-more,
.brand-card-link:hover .card-more {
    color: var(--accent-dark);
    letter-spacing: 1.5px;
}
