/* ===== 基礎設定 ===== */
:root {
    --primary: #0B3D91;
    --primary-dark: #072B66;
    --primary-light: #1565C0;
    --accent: #E8871E;
    --accent-light: #F5A623;
    --dark: #0A0E17;
    --dark-2: #141B2D;
    --gray-900: #1A2332;
    --gray-800: #2A3444;
    --gray-700: #3D4A5C;
    --gray-600: #5A6577;
    --gray-400: #8B95A5;
    --gray-300: #B0B8C4;
    --gray-200: #D1D7E0;
    --gray-100: #E8ECF1;
    --gray-50: #F4F6F9;
    --white: #FFFFFF;
    --font: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img, video {
    max-width: 100%;
    display: block;
}

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

.section {
    padding: 100px 0;
    position: relative;
}

/* ===== 導航列 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
    transition: var(--transition);
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    letter-spacing: 4px;
    transition: var(--transition);
}

.navbar.scrolled .logo-main {
    color: var(--primary);
}

.navbar.scrolled .logo-sub {
    color: var(--gray-600);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.12);
}

.navbar.scrolled .nav-link {
    color: var(--gray-700);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary);
    background: rgba(11,61,145,0.06);
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 8px 24px !important;
    border-radius: 8px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--accent-light) !important;
    transform: translateY(-1px);
}

.navbar.scrolled .nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .nav-toggle span {
    background: var(--gray-800);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(7,43,102,0.85) 0%,
        rgba(11,61,145,0.7) 40%,
        rgba(10,14,23,0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(232,135,30,0.15);
    border: 1px solid rgba(232,135,30,0.3);
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 2px;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title-line {
    display: block;
}

.hero-title-line.accent {
    color: var(--accent-light);
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(232,135,30,0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232,135,30,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    display: inline;
}

.stat-suffix {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255,255,255,0.4);
    border-bottom: 2px solid rgba(255,255,255,0.4);
    transform: rotate(45deg);
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(11,61,145,0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-tag-light {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-title-light {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-subtitle-light {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

/* ===== 關於永拓 ===== */
.about {
    background: var(--gray-50);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.about-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(11,61,145,0.1);
}

.about-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
}

.about-card-icon svg {
    width: 28px;
    height: 28px;
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(11,61,145,0.08);
}

.feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(11,61,145,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.feature-text span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ===== 業務範疇 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 36px 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gray-100);
    line-height: 1;
    margin-bottom: 16px;
}

.service-card:hover .service-number {
    color: rgba(11,61,145,0.1);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(11,61,145,0.06);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

/* ===== 設備展示 ===== */
.equipment {
    background: var(--gray-50);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.equip-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.equip-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.equip-card-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.equip-card-video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.equip-card-large .equip-card-video {
    aspect-ratio: auto;
    min-height: 300px;
}

.equip-card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.equip-card:hover .equip-card-video video {
    transform: scale(1.05);
}


/* 設備圖片卡片樣式 */
.equip-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.equip-card-large .equip-card-image {
    aspect-ratio: auto;
    min-height: 300px;
}
.equip-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.equip-card:hover .equip-card-image img,
.equip-card-large:hover .equip-card-image img {
    transform: scale(1.05);
}

/* 施工現場圖片項目 */
.site-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.site-image-item:hover img {
    transform: scale(1.05);
}

.equip-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    opacity: 0.8;
}

.equip-card:hover .equip-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.equip-play-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 3px;
}

.equip-card-info {
    padding: 24px;
}

.equip-card-large .equip-card-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.equip-card-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.equip-card-large .equip-card-info h3 {
    font-size: 1.4rem;
}

.equip-card-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== 施工現場影片 ===== */
.site-videos {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.parallax-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7,43,102,0.9) 0%, rgba(10,14,23,0.85) 100%);
}

.site-videos-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.site-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.site-video-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.site-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.site-video-item:hover video {
    transform: scale(1.05);
}

.site-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.site-video-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

/* ===== 品質管理 ===== */
.quality-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quality-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.quality-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.quality-item:last-child {
    margin-bottom: 0;
}

.quality-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.quality-icon span {
    color: var(--white);
    font-weight: 800;
    font-size: 0.9rem;
}

.quality-content {
    background: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex: 1;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.quality-content:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(11,61,145,0.1);
}

.quality-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.quality-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== 推進實績 ===== */
.achievements {
    background: var(--gray-50);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.achieve-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.achieve-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(11,61,145,0.1);
}

.achieve-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.achieve-date {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

.achieve-badge {
    padding: 4px 12px;
    background: rgba(34,197,94,0.1);
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.achieve-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.achieve-card p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.achieve-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.achieve-tags span {
    padding: 4px 10px;
    background: var(--gray-50);
    color: var(--gray-700);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
}

/* ===== 聯絡我們 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-card {
    background: var(--gray-50);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.88rem;
    color: var(--gray-600);
    margin: 0;
}

.contact-item a {
    color: var(--primary);
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #06C755;
    padding: 24px;
    border-radius: var(--radius-lg);
    color: var(--white);
}

.line-qr {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 3px solid rgba(255,255,255,0.3);
}

.line-info strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.line-info p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

.contact-form-wrap {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.contact-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.form-group label span {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: var(--font);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    background: var(--gray-50);
    color: var(--gray-800);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(11,61,145,0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== 頁尾 ===== */
.footer {
    background: var(--dark);
    padding: 64px 0 0;
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.footer-logo .logo-main {
    font-size: 1.4rem;
    color: var(--white);
}

.footer-logo .logo-sub {
    color: var(--gray-400);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-company-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.88rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ===== 回到頂部 ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(11,61,145,0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ===== 動畫 ===== */
@keyframes fadeInUp {
    from { opacity: 1; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 1; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

[data-animate] {
    opacity: 1; /* will be set to 1 by JS fallback */
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 表單送出成功訊息 ===== */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(34,197,94,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #16a34a;
}

.form-success-icon svg {
    width: 32px;
    height: 32px;
}

.form-success h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.form-success p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Fallback animation */
@keyframes forceVisible { to { opacity: 1; transform: translateY(0); } }
[data-animate] { animation: forceVisible 0.5s ease 1.5s forwards; }
