﻿/*
Theme Name: Harbor Care HK
Theme URI: http://www.harborcarehk.com
Author: Harbor Care HK
Author URI: http://www.harborcarehk.com
Description: Custom theme for Harbor Care HK - Professional Care Services in Hong Kong
Version: 2026.08.24.fix
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: harborcare
Tags: healthcare, care-services, professional, responsive, custom-menu, custom-logo
*/

:root {
    --color-primary: #e8590c;
    --color-primary-dark: #d9480f;
    --color-primary-light: #fd7e14;
    --color-accent: #f59f00;
    --color-accent-light: #ffc078;
    --color-dark: #3d2817;
    --color-text: #5c3a1a;
    --color-text-light: #9a7b5e;
    --color-bg: #fff9f5;
    --color-white: #ffffff;
    --color-border: #f0ddd0;
    --color-success: #2ecc71;
    --color-gradient: linear-gradient(135deg, #e8590c 0%, #fd7e14 100%);

    --font-heading: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    --font-body: 'Segoe UI', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;

    --shadow-sm: 0 2px 4px rgba(61, 40, 23, 0.06);
    --shadow-md: 0 4px 12px rgba(61, 40, 23, 0.1);
    --shadow-lg: 0 8px 32px rgba(61, 40, 23, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.3;
    margin-bottom: 0.6em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

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

a:hover { color: var(--color-primary-light); }

p { margin-bottom: 1.2em; }

img { max-width: 100%; height: auto; }

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

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

.btn-accent {
    background: var(--color-accent);
    color: var(--color-white);
}

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

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

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

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Section spacing */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    color: var(--color-dark);
    margin-bottom: 16px;
}

.section-header .subtitle {
    color: var(--color-primary-light);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Header */
.site-header {
    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-sm);
    transition: var(--transition);
}

.site-header .header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo .logo-img {
    height: 56px;
    width: auto;
    border-radius: var(--radius-sm);
    object-fit: contain;
    display: block;
}

.footer-brand .site-logo .logo-img {
    height: 64px;
    width: auto;
}

@media (max-width: 768px) {
    .site-logo .logo-img {
        height: 44px;
    }
    
    .footer-brand .site-logo .logo-img {
        height: 52px;
    }
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0;
    padding: 0;
}
.main-nav ul::-webkit-scrollbar { display: none; }

.main-nav ul li {
    flex-shrink: 0;
    white-space: nowrap;
}

.main-nav ul li a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-block;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    color: var(--color-primary);
}

.main-nav ul li a:hover::after,
.main-nav ul li.current-menu-item a::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-actions .btn {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.nav-actions .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    transition: var(--transition);
}

.nav-actions .nav-link:hover {
    color: #fff;
    background: var(--color-primary-dark, #c94e0a);
    border-color: var(--color-primary-dark, #c94e0a);
    transform: translateY(-1px);
}

/* 登录/注册 分组：与「立即聯絡」之间加竖分隔线 */
#hc-auth-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 6px;
    padding-left: 18px;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-switcher .lang-btn {
    color: var(--color-text-light);
    padding: 4px 6px;
    border-radius: 4px;
    transition: var(--transition);
    text-decoration: none;
}

.lang-switcher .lang-btn:hover {
    color: var(--color-primary);
    background: rgba(232, 89, 12, 0.08);
}

.lang-switcher .lang-btn.active {
    color: var(--color-primary);
    background: rgba(232, 89, 12, 0.12);
}

.lang-switcher .lang-divider {
    color: var(--color-border);
    font-weight: 400;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--color-gradient);
    overflow: hidden;
    padding-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(240, 165, 0, 0.1) 0%, transparent 50%);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    color: var(--color-white);
}

.hero-content .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content .hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .stat-item .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent-light);
}

.hero-stats .stat-item .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Hero visual */
.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.15;
}

.hero-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.hero-card .card-header .icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hero-card .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.hero-card .card-header p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.hero-card .feature-list {
    list-style: none;
}

.hero-card .feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
}

.hero-card .feature-list .check {
    width: 24px;
    height: 24px;
    background: var(--color-success);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.hero-card-float {
    position: absolute;
    top: -24px;
    right: -24px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.hero-card-float .float-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-white);
}

.hero-card-float .float-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-dark);
}

.hero-card-float .float-text span {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Services Section */
.services-section {
    background: var(--color-white);
}

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

/* 9-card grid: 3 cols on desktop for 3x3 layout */
.services-grid-9 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 10-card grid: 5 cols on desktop for 5x2 layout */
.services-grid-10 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Grouped service blocks (4 + 3 split) */
.services-group {
    margin-top: 44px;
}
.services-group:first-of-type {
    margin-top: 0;
}
.group-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 22px;
    padding-left: 14px;
    border-left: 4px solid var(--color-primary);
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

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

.service-card .service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(232, 89, 12, 0.1), rgba(253, 126, 20, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-card .service-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.service-card:hover .service-link {
    gap: 12px;
}

.service-card ul {
    list-style: none;
    margin-top: 16px;
}

.service-card ul li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card ul li::before {
    content: '\2714';
    color: var(--color-primary-light);
    font-size: 0.8rem;
}

/* About Preview */
.about-preview {
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-box {
    background: var(--color-gradient);
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-image-box .pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(240, 165, 0, 0.15) 0%, transparent 40%);
}

.about-image-box .content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    padding: 40px;
}

.about-image-box .content .big-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-accent-light);
    line-height: 1;
}

.about-image-box .content .label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 8px;
}

.about-image-box .content .description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 16px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.about-experience-badge {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-experience-badge .years {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.about-experience-badge .text {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.about-content .subtitle {
    color: var(--color-primary-light);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.about-features {
    list-style: none;
    margin: 28px 0;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
}

.about-features .check {
    width: 28px;
    height: 28px;
    background: rgba(46, 204, 113, 0.1);
    color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-features li strong {
    color: var(--color-dark);
    display: block;
    margin-bottom: 2px;
}

.about-features li span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Why Choose Us */
.why-section {
    background: var(--color-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 30px 20px;
}

.why-card .why-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(232, 89, 12, 0.08), rgba(253, 126, 20, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--color-gradient);
    transform: scale(1.1);
}

.why-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Features Grid (service page) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(232, 89, 12, 0.1);
}

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(232, 89, 12, 0.08), rgba(253, 126, 20, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--color-gradient);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--color-gradient);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(240, 165, 0, 0.15) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-white);
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .site-logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-col ul li {
    padding: 6px 0;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.footer-contact .contact-item .icon {
    color: var(--color-primary-light);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-taobao {
    color: #ff6a00 !important;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.footer-taobao:hover {
    color: #ff8c33 !important;
    text-decoration: underline;
}

/* Page Header */
.page-header-section {
    background: var(--color-gradient);
    color: var(--color-white);
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(240, 165, 0, 0.1) 0%, transparent 50%);
}

.page-header-section .container {
    position: relative;
    z-index: 1;
}

.page-header-section h1 {
    color: var(--color-white);
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.page-header-section .breadcrumb {
    font-size: 0.95rem;
    opacity: 0.85;
}

.page-header-section .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header-section .breadcrumb a:hover {
    color: var(--color-white);
}

/* Page Content */
.page-content-section {
    padding: 70px 0;
    background: var(--color-white);
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block p {
    color: var(--color-text);
    margin-bottom: 20px;
}

.content-block ul, .content-block ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.content-block li {
    margin-bottom: 8px;
    color: var(--color-text);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

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

.team-card .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-gradient);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--color-white);
    font-weight: 700;
}

.team-card h3 {
    margin-bottom: 4px;
}

.team-card .role {
    color: var(--color-primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.value-card:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
}

.value-card .value-icon {
    width: 56px;
    height: 56px;
    background: var(--color-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-white);
    flex-shrink: 0;
}

.value-card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info-card {
    background: var(--color-gradient);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-info-card h3 {
    color: var(--color-white);
    margin-bottom: 28px;
    position: relative;
}

.contact-info-card .info-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.contact-info-card .info-item:last-child {
    border-bottom: none;
}

.contact-info-card .info-item .icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-card .info-item .text {
    display: flex;
    flex-direction: column;
}

.contact-info-card .info-item .text .label {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-card .info-item .text .value {
    font-size: 1rem;
    font-weight: 500;
}

.contact-form-wrapper {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form-wrapper h3 {
    margin-bottom: 8px;
}

.contact-form-wrapper .form-subtitle {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

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

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

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.1);
}

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

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

.form-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

/* FAQ Section */
.faq-section {
    background: var(--color-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1.05rem;
    transition: var(--transition);
    user-select: none;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question .toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-question .toggle {
    background: var(--color-primary);
    color: var(--color-white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Testimonials */
.testimonials-section {
    background: var(--color-bg);
}

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

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-card .stars {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card .quote {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-card .author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-card .author .name {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.95rem;
}

.testimonial-card .author .relation {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Services Detail */
.services-detail-section {
    padding: 70px 0;
    background: var(--color-white);
}

.service-detail-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.service-detail-block:last-child {
    margin-bottom: 0;
}

.service-detail-block:nth-child(even) .service-detail-visual {
    order: 2;
}

.service-detail-visual {
    background: var(--color-gradient);
    border-radius: var(--radius-lg);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-detail-visual .big-icon {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.service-detail-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(240, 165, 0, 0.15) 0%, transparent 40%);
}

.service-detail-content .tag {
    display: inline-block;
    background: rgba(232, 89, 12, 0.1);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.service-detail-content h2 {
    margin-bottom: 16px;
}

.service-detail-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.service-detail-content ul {
    list-style: none;
    margin-bottom: 24px;
}

.service-detail-content ul li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
}

.service-detail-content ul li::before {
    content: '\2714';
    color: var(--color-primary-light);
    font-weight: 700;
}

.service-detail-content .price {
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    display: inline-block;
}

.service-detail-content .price .amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.service-detail-content .price .unit {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* 404 Page */
.error-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0;
}

.error-404 .error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.error-404 h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.error-404 p {
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions, .hero-stats {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid,
    .services-grid-9,
    .services-grid-10 {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-detail-block {
        grid-template-columns: 1fr;
    }

    .service-detail-block:nth-child(even) .service-detail-visual {
        order: 0;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-md);
        padding: 20px;
        transform: translateY(-200%);
        transition: var(--transition);
        z-index: 999;
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 0;
    }

    .nav-actions {
        margin-top: 16px;
        margin-left: 0;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav-actions .nav-link {
        text-align: center;
        padding: 10px 18px;
    }

    #hc-auth-links {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        justify-content: center;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-grid-9,
    .services-grid-10 {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

    .hero-card-float {
        display: none;
    }

    .about-experience-badge {
        bottom: -20px;
        right: 20px;
    }
}

/* Checkbox group for multi-select forms */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.checkbox-item:hover {
    border-color: var(--color-primary-light);
    background: rgba(232, 89, 12, 0.04);
}
.checkbox-item input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Compliance & Weight System Styles
   Risk badges, compliance notices, service card risk tiers, navigation groups
   ========================================================================== */

/* ---- Risk Badge (inline tag on cards & nav) ---- */
.risk-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.02em;
    line-height: 1.5;
    white-space: nowrap;
}
.risk-badge-medium { background: #e8f5e9; color: #2e7d32; }
.risk-badge-high { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.risk-badge-critical { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; font-weight: 700; }

/* ---- Compliance Notice Box (page-level disclaimer) ---- */
.compliance-notice {
    max-width: 800px;
    margin: 20px auto 0;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.6;
}
.compliance-notice strong { display: block; margin-bottom: 4px; }
.compliance-notice-high { background: #fff8e1; border-left: 4px solid #ff8f00; color: #5d4037; }
.compliance-notice-critical { background: #ffebee; border-left: 4px solid #c62828; color: #4a1c1c; }
.compliance-notice-medium { background: #f1f8e9; border-left: 4px solid #689f38; color: #33691e; }

/* ---- Service Card Risk Tier Visuals ---- */
.service-card-high-risk { border-top: 3px solid #ff8f00; position: relative; }
.service-card-high-risk::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(255,143,0,0.03) 0%, transparent 40%);
    pointer-events: none; border-radius: 12px;
}
.service-card-critical-risk { border-top: 3px solid #c62828; position: relative; }
.service-card-critical-risk::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(198,40,40,0.04) 0%, transparent 40%);
    pointer-events: none; border-radius: 12px;
}
.service-card-high-risk .risk-badge,
.service-card-critical-risk .risk-badge { position: absolute; top: 12px; right: 12px; }

/* ---- Navigation Group Indicators ---- */
.main-nav ul li.menu-core a { color: var(--color-dark); font-weight: 500; }
.main-nav ul li.menu-supp a { color: var(--color-text); font-weight: 400; }
.main-nav ul li.menu-spec a { color: var(--color-text-light); font-weight: 400; }
.main-nav ul li.menu-spec-last a { color: #8d6e63; font-weight: 400; }
.main-nav ul li.menu-spec .risk-badge,
.main-nav ul li.menu-spec-last .risk-badge { margin-left: 6px; vertical-align: middle; position: relative; top: -1px; }

/* ---- Pricing Block Risk Indicators ---- */
.pricing-block[data-risk="high"] { border-left: 3px solid #ff8f00; padding-left: 16px; }
.pricing-block[data-risk="critical"] { border-left: 3px solid #c62828; padding-left: 16px; background: rgba(198,40,40,0.02); }
.pricing-block[data-risk="medium"] { border-left: 3px solid #8d6e63; padding-left: 16px; }

/* ---- Services Grid with tier dividers ---- */
.services-grid-9 { grid-template-columns: repeat(4, 1fr); }
.services-grid-10 { grid-template-columns: repeat(5, 1fr); }

/* ---- Compliance Footer Note ---- */
.compliance-footer-note {
    margin-top: 16px; padding: 12px 16px; background: #fafafa;
    border-radius: 6px; font-size: 0.78rem; color: #9e9e9e;
    line-height: 1.5; text-align: center;
}

/* ===================================================================
   Blog / Health Info Module
   =================================================================== */
.blog-subtitle {
    margin-top: 12px;
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 720px;
    line-height: 1.7;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.blog-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.blog-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.8rem; color: var(--color-text-light); margin-bottom: 10px;
}
.blog-cat {
    color: var(--color-primary, #e8590c);
    font-weight: 600;
    text-decoration: none;
}
.blog-card-title {
    font-size: 1.2rem; line-height: 1.45; margin: 0 0 10px;
}
.blog-card-title a { color: var(--color-dark); text-decoration: none; }
.blog-card-title a:hover { color: var(--color-primary, #e8590c); }
.blog-excerpt {
    color: var(--color-text-light); font-size: 0.92rem; line-height: 1.7;
    margin: 0 0 16px; flex: 1;
}
.blog-readmore {
    color: var(--color-primary, #e8590c);
    font-weight: 600; text-decoration: none; font-size: 0.9rem;
}
.blog-readmore:hover { text-decoration: underline; }
.blog-pagination {
    margin-top: 40px; text-align: center;
}
.blog-pagination .page-numbers {
    display: inline-block; padding: 8px 14px; margin: 0 3px;
    border: 1px solid var(--color-border); border-radius: 6px;
    color: var(--color-dark); text-decoration: none;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--color-primary, #e8590c); color: #fff; border-color: var(--color-primary, #e8590c);
}
/* Single post */
.blog-single-header { padding-bottom: 18px; }
.blog-single-header .blog-meta { margin-top: 14px; font-size: 0.9rem; }
.blog-single-content { font-size: 1.02rem; line-height: 1.85; }
.blog-single-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 18px 0; }
.blog-feature { margin-bottom: 24px; }
.blog-feature img { width: 100%; border-radius: var(--radius-md); }
.blog-author { color: var(--color-text-light); }
.blog-back { margin-top: 36px; }
.btn-outline {
    display: inline-block; padding: 11px 24px;
    border: 1px solid var(--color-primary, #e8590c);
    color: var(--color-primary, #e8590c);
    border-radius: 6px; text-decoration: none; font-weight: 600;
    transition: var(--transition);
}
.btn-outline:hover { background: var(--color-primary, #e8590c); color: #fff; }

/* Responsive */
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   FAQ Module
   =================================================================== */
.faq-section { background: #fafafa; padding: 56px 0; }
.faq-title {
    font-size: 1.6rem;
    margin-bottom: 28px;
    text-align: center;
    color: var(--color-dark);
}
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0 20px;
}
.faq-item summary {
    cursor: pointer;
    padding: 18px 0;
    font-weight: 600;
    color: var(--color-dark);
    list-style: none;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; color: var(--color-primary, #e8590c); font-weight: 700;
    line-height: 1;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-answer {
    padding: 0 0 18px;
    color: var(--color-text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===== ææ©ç«¯è£å¼· Mobile Hardening (2026-08-20) ===== */
/* å¨å±çæ¨¡åï¼é²æ­¢ padding æåç´ æç ´å®½åº¦ */
*, *::before, *::after { box-sizing: border-box; }

/* åªä½ä¸åµå¥åç´ æ°¸ä¸è¶åºå±å¹ */
img, video, iframe, canvas, svg { max-width: 100%; height: auto; }

/* é¿åè¯/URL æ¢è¡ï¼é¿åæ¨ªåæº¢åº */
.site-content, .entry-content, .service-card, .testimonial-card, p { overflow-wrap: break-word; word-wrap: break-word; }

/* è¡¨æ ¼å¨çªå±å¯æ©«åæ»¾å */
.site-content table, .entry-content table, .wp-block-table > table,
table:not(.harbor-tbl-scroll table) { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* è¡¨å®æ§ä»¶ä¸è¶åºå®¹å¨ */
.contact-form-wrapper input, .contact-form-wrapper select, .contact-form-wrapper textarea,
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], textarea, select { max-width: 100%; }

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 42px 0; }
  h1 { font-size: 1.8rem; line-height: 1.25; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
  .hero { min-height: auto; padding: 92px 0 48px; }
  .hero-content h1 { font-size: 1.95rem; }
  .hero-subtitle { font-size: 1rem !important; }
  .hero-stats { gap: 18px; }
  .hero-card { padding: 22px; }
  .hero-card-float { display: none; }
  .services-grid, .services-grid-9, .services-grid-10 { gap: 16px; }
  .service-card { padding: 26px 20px; }
  .why-grid, .testimonials-grid { gap: 16px; }
  .cta-content h2 { font-size: 1.6rem; }
  .site-header .header-inner { padding: 8px 0; }
  .footer-bottom, .footer-cols { flex-direction: column; gap: 10px; text-align: center; }
  .page-hero { padding: 92px 0 40px; }
  .page-hero h1 { font-size: 2rem; }
  .group-title { font-size: 1.1rem; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero-content h1 { font-size: 1.65rem; }
  .btn, .btn-large { padding: 14px 22px; font-size: 0.95rem; }
  .service-card { padding: 22px 16px; }
  .hero-content .badge { font-size: 0.78rem; padding: 7px 16px; }
}


/* ===== 手機端自適應修正 (2026-08-20) ===== */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, canvas, svg { max-width: 100%; height: auto; }
.site-content, .entry-content, .service-card, .testimonial-card, p { overflow-wrap: break-word; word-wrap: break-word; }
.site-content table, .entry-content table, .wp-block-table > table, table:not(.harbor-tbl-scroll table) { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], textarea, select, .contact-form-wrapper input, .contact-form-wrapper select, .contact-form-wrapper textarea { max-width: 100%; }

@media (max-width: 768px) {
  /* 頂部 Hero 改單列堆疊，修復兩欄擠壓導致的提示/文字錯位與橫向溢出 */
  .hero { min-height: auto; padding: 90px 0 52px; }
  .hero .container { grid-template-columns: 1fr; gap: 34px; padding-top: 24px; padding-bottom: 24px; text-align: center; }
  .hero-content { text-align: center; }
  .hero-content .badge { max-width: 100%; white-space: normal; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-content h1 { font-size: 2rem; }
  .hero-visual { order: 2; width: 100%; }
  .hero-card { width: 100%; }

  /* 核心業務卡片：強制單列、取消跨欄，風險標籤改為正常流動避免遮擋標題 */
  .service-card-major, .service-card-supp, .service-card-spec { grid-column: auto !important; }
  .service-card-high-risk .risk-badge, .service-card-critical-risk .risk-badge { position: static; display: inline-block; margin: 0 0 10px; }
  .service-card h3 { padding-right: 0; }

  .footer-bottom, .footer-cols { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 42px 0; }
  h1 { font-size: 1.8rem; line-height: 1.25; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
  .hero { padding: 84px 0 44px; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-subtitle { font-size: 1rem !important; }
  .hero-stats { gap: 18px; }
  .hero-card { padding: 22px; }
  .service-card { padding: 26px 20px; }
  .page-hero { padding: 88px 0 38px; }
  .page-hero h1 { font-size: 1.9rem; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero-content h1 { font-size: 1.6rem; }
  .btn, .btn-large { padding: 14px 22px; font-size: 0.95rem; }
  .service-card { padding: 22px 16px; }
  .hero-content .badge { font-size: 0.78rem; padding: 7px 16px; }
}

/* ===== 客戶訂單中心 (Customer Portal) ===== */
.hc-portal { max-width: 920px; margin: 0 auto; }
.hc-loading { text-align: center; color: #888; padding: 40px 0; }
.hc-lang { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }
.hc-lang button { background: none; border: 1px solid #ddd; border-radius: 20px; padding: 4px 14px; cursor: pointer; font-size: 0.85rem; color: #666; }
.hc-lang button.active { background: var(--color-primary, #e8590c); border-color: var(--color-primary, #e8590c); color: #fff; }

.hc-auth-wrap { max-width: 420px; margin: 10px auto 0; background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 28px 26px; box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.hc-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.hc-tab { flex: 1; background: #f5f5f5; border: none; padding: 12px; border-radius: 10px; cursor: pointer; font-size: 1rem; color: #666; }
.hc-tab.active { background: var(--color-primary, #e8590c); color: #fff; }
.hc-hint { text-align: center; color: #999; font-size: 0.9rem; margin: 6px 0 14px; }
.hc-form { display: flex; flex-direction: column; gap: 14px; }
.hc-field { display: flex; flex-direction: column; gap: 6px; }
.hc-field span { font-size: 0.9rem; color: #444; font-weight: 600; }
.hc-field input { padding: 12px 14px; border: 1px solid #ddd; border-radius: 10px; font-size: 1rem; }
.hc-field input:focus { outline: none; border-color: var(--color-primary, #e8590c); }
.hc-submit { margin-top: 6px; width: 100%; }
.hc-switch { text-align: center; font-size: 0.9rem; margin: 4px 0 0; }
.hc-switch a { color: var(--color-primary, #e8590c); }
.hc-msg { min-height: 18px; text-align: center; font-size: 0.9rem; margin: 4px 0; }
.hc-msg.err { color: #d64545; }
.hc-msg.ok { color: #2e9e5b; }

.hc-orders-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.hc-welcome { font-size: 1.05rem; font-weight: 700; flex: 1; }
.hc-logout { white-space: nowrap; }
.hc-section-title { margin: 6px 0 18px; font-size: 1.4rem; }
.hc-wb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 18px; flex-wrap: wrap; }
.hc-wb-head .hc-section-title { margin: 0; }
.hc-wb-actions { margin: 0; }
.hc-wb-actions .hc-tab { flex: 0 0 auto; padding: 8px 20px; font-weight: 600; border-radius: 10px; }
.hc-empty { text-align: center; color: #999; padding: 30px 0; }
.hc-order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.hc-order-card { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 18px 20px; box-shadow: 0 4px 16px rgba(0,0,0,.04); }

/* r47: summary 拆 head+foot 两行；退款按钮样式与取消订单一致 */
.hc-order-summary { display: flex; flex-direction: column; gap: 8px; }
.hc-order-head, .hc-order-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hc-order-head .hc-order-main { flex: 1 1 auto; min-width: 160px; }
.hc-order-foot .hc-order-badges { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.hc-order-foot .hc-chevron { margin-left: auto; }
.hc-order-summary .hc-refund-top-btn { padding: 6px 14px; font-size: 13px; background: #fff; color: #222; border: 1px solid #555; border-radius: 6px; cursor: pointer; }
.hc-order-summary .hc-refund-top-btn:hover { background: #f5f5f5; }

/* r44: HQ 调度指派区（confirmed 分支）三行布局 */
.hc-dispatch-box { display: block; }
.hc-dispatch-box .hc-dispatch-row { margin-top: 10px; }
.hc-dispatch-box .hc-dispatch-row:first-child { margin-top: 0; }
.hc-dispatch-box .hc-order-team,
.hc-dispatch-box .hc-order-assignee,
.hc-dispatch-box .hc-dispatch-btn { display: block; width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.hc-dispatch-box .hc-order-team,
.hc-dispatch-box .hc-order-assignee { padding: 10px 12px; font-size: 15px; border: 1px solid #d8dee6; border-radius: 8px; background: #fff; }
.hc-dispatch-box .hc-dispatch-btn { padding: 14px 20px; font-size: 18px; font-weight: 700; background: #1f6feb; color: #fff; border: 1px solid #1f6feb; border-radius: 8px; cursor: pointer; }
.hc-dispatch-box .hc-dispatch-btn:hover { background: #1857c4; border-color: #1857c4; }
.hc-info-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #f0f0f0; font-size: 0.95rem; }
.hc-info-row:last-child { border-bottom: none; }
.hc-info-label { color: #888; }
.hc-info-val { font-weight: 600; text-align: right; }
.hc-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.82rem; font-weight: 700; }
.st-pending { background: #fff4e0; color: #c47d00; }
.st-confirmed { background: #e6f3ff; color: #1f6fb2; }
.st-in_progress { background: #ede7ff; color: #6b46c1; }
.st-done { background: #e6f7ec; color: #1f9d57; }
.st-cancelled { background: #fbeaea; color: #c0392b; }
.st-settled   { background: #e3eef7; color: #2c5d8a; }
.st-awaiting_payment { background: #fff0e0; color: #d97706; }
.st-collected { background: #e0f7f4; color: #0e8a7d; }
.st-refunded { background: #fde8ef; color: #c2185b; }
.pay-paid { background: #e6f7ec; color: #1f9d57; }
.pay-unpaid { background: #fbeaea; color: #c0392b; }

@media (max-width: 600px) {
  .hc-order-grid { grid-template-columns: 1fr; }
  .hc-orders-head { flex-direction: column; align-items: flex-start; }
}


/* 員工登入 / 訂單工作台 — 狀態篩選欄 */
.hc-filter { display: flex; gap: 8px; flex-wrap: wrap; row-gap: 6px; margin: 0 0 18px; }
.hc-filter .hc-tab { flex: 0 0 auto; }
.hc-filter-closed { display: flex; gap: 8px; flex-wrap: wrap; row-gap: 6px; margin-top: 8px; }
.hc-filter-closed .hc-tab { border: 1px dashed #b9c4d1; color: #4a5b6e; background: #f7f9fc; }
.hc-filter-closed .hc-tab.active { border-style: solid; background: #2c5d8a; color: #fff; }
.hc-filter-end { flex-wrap: nowrap; }
.hc-filter-end .hc-tab { white-space: nowrap; border: 1px dashed #b9c4d1; color: #4a5b6e; background: #f7f9fc; }
.hc-filter-end .hc-tab.active { border-style: solid; border-color: #2c5d8a; background: #2c5d8a; color: #fff; }
.hc-filter-all { margin-left: auto; }
.hc-wb-actions { margin: 0 0 14px; }
.hc-wb-actions .hc-tab { flex: 0 0 auto; padding: 10px 22px; font-weight: 600; }
.hc-filter .hc-tab[data-status="todo"] { background: var(--color-primary, #e8590c); color: #fff; font-weight: 600; }
.hc-filter .hc-tab[data-status="todo"].active { box-shadow: 0 0 0 3px rgba(232,89,12,.25); }


/* ===== 員工管理面板 (employee management) ===== */
.hc-mgr { margin-top: 28px; border-top: 1px solid #e6e9ef; padding-top: 18px; }
.hc-mgr-add { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hc-mgr-add input, .hc-mgr-add select { padding: 8px 10px; border: 1px solid #cfd6e4; border-radius: 8px; font-size: 14px; }
.hc-mgr-add input[type=text] { width: 150px; }
.hc-emp-table { display: flex; flex-direction: column; gap: 4px; }
.hc-emp-row { display: grid; grid-template-columns: 90px 1fr 120px 110px 70px 90px 90px 150px 1fr; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #eef1f6; border-radius: 8px; background: #fff; }
.hc-emp-c7 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.hc-perm { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #555; }
.hc-perm input { margin: 0; }
.hc-emp-head { background: #f4f6fb; font-weight: 600; border: none; }
.hc-emp-row select { padding: 5px 6px; border-radius: 6px; border: 1px solid #cfd6e4; font-size: 13px; }
.hc-emp-c6 { display: flex; gap: 6px; }
  .hc-emp-c8, .hc-emp-c9 { font-size: 13px; color: #374151; word-break: break-all; }
  .hc-emp-toolbar { display: flex; gap: 10px; align-items: center; margin: 4px 0 12px; flex-wrap: wrap; }
  .hc-emp-toolbar .hc-filter-in { flex: 1 1 280px; min-width: 200px; padding: 8px 12px; border: 1px solid #d8dee6; border-radius: 8px; font-size: 14px; }
  .hc-emp-toolbar .hc-export-btn { padding: 8px 16px; border: 1px solid #1f6feb; background: #1f6feb; color: #fff; border-radius: 8px; cursor: pointer; font-size: 14px; }
  .hc-emp-toolbar .hc-export-btn:hover { background: #1857c4; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-danger { background: #e2503b; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.btn-danger:hover { background: #c9432f; }
@media (max-width: 640px) {
  .hc-emp-row { grid-template-columns: repeat(3, 1fr); }
  .hc-emp-head { display: none; }
}

/* ===== 員工授權管理樣式 ===== */
.hc-order-ops { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #f0f0f0; }
.hc-order-status { padding: 6px 10px; border: 1px solid #cfd6e4; border-radius: 8px; font-size: 14px; width: 100%; box-sizing: border-box; }

/* 分部操作区：調度退回（放大）+ 指派 两行布局 */
.hc-branch-box .hc-return-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hc-branch-box .hc-assign-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.hc-return-hq-btn { padding: 11px 30px; font-size: 18px; font-weight: 600; min-width: 150px; text-align: center; }
.hc-hq-label { font-size: 12px; color: #8a94a6; }
/* 指派員工下拉 + 指派 按钮放大（与調度退回一致） */
.hc-branch-box .hc-order-assignee { padding: 9px 12px; font-size: 15px; flex: 1 1 200px; min-width: 160px; }
.hc-branch-box .hc-assign-own-btn { padding: 10px 22px; font-size: 16px; font-weight: 600; }

/* 处理记录面板（admin / manager 查看下级） */
.hc-mgr-tabs { display: flex; gap: 8px; margin: 18px 0 12px; }
.hc-mgr-tabs .hc-tab { padding: 8px 16px; border: 1px solid #d8dee6; background: #f5f7fa; border-radius: 8px; cursor: pointer; font-size: 14px; color: #4a5568; }
.hc-mgr-tabs .hc-tab.active { background: #1f6feb; color: #fff; border-color: #1f6feb; }
.hc-mgr-pane { margin-top: 8px; }
.hc-mgr-sub { color: #6b7280; font-size: 13px; margin: 4px 0 12px; }
.hc-handling { display: flex; flex-direction: column; gap: 12px; }
.hc-hand-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; background: #fff; }
.hc-hand-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 8px; font-size: 14px; }
.hc-hand-name { font-weight: 600; color: #1f2937; }
.hc-hand-role { color: #6b7280; font-size: 12px; }
.hc-hand-perms { color: #374151; font-size: 12px; }
.hc-hand-logs { display: flex; flex-direction: column; gap: 6px; }
.hc-log-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; padding: 6px 8px; background: #f9fafb; border-radius: 6px; }
.hc-log-time { color: #9ca3af; font-variant-numeric: tabular-nums; }
.hc-log-order { font-weight: 600; color: #1f6feb; }
.hc-log-change { color: #374151; }
.hc-log-note { color: #6b7280; font-style: italic; }

/* 员工管理：自身行标记（禁止改自己权限/角色/状态） */
.hc-tag-self { display:inline-block; margin-left:6px; padding:1px 8px; border-radius:10px; background:#eef2f7; color:#6b7280; font-size:12px; font-weight:600; }
.hc-emp-self .hc-perm, .hc-emp-self select { opacity:.55; }

/* === 我的團隊 / 分組管理 (manager) === */
.hc-team { margin-top: 8px; }
.hc-team-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hc-team-head h3 { margin: 0; font-size: 18px; color: #1a2b4a; }
.hc-team-add-group { display: flex; gap: 8px; }
.hc-team-add-group input { padding: 7px 10px; border: 1px solid #d8dee6; border-radius: 8px; font-size: 14px; }
.hc-team-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.hc-group-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; background: #fff; }
.hc-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hc-group-name { font-weight: 600; color: #1a2b4a; flex: 1; }
.hc-group-members { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-chip { background: #eef3fb; color: #2c5282; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.hc-team-sub { margin: 14px 0 8px; font-size: 15px; color: #4a5568; }
.hc-team-members { display: flex; flex-direction: column; gap: 8px; }
.hc-mem-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid #eef1f5; border-radius: 8px; background: #fff; }
.hc-mem-name { font-weight: 600; min-width: 90px; }
.hc-mem-role { color: #718096; min-width: 70px; }
.hc-mem-no { margin-left: auto; color: #8a94a6; font-size: 13px; min-width: 90px; }
.hc-mem-group { margin-left: auto; padding: 6px 8px; border: 1px solid #d8dee6; border-radius: 8px; }
.hc-order-team { padding: 6px 8px; border: 1px solid #d8dee6; border-radius: 8px; }

/* team-address sub-table (admin) */
.hc-team-addr { margin-top: 18px; padding: 14px 16px; background: #f7f9fc; border: 1px solid #e3e8ef; border-radius: 10px; }
.hc-team-addr-title { font-size: 14px; font-weight: 600; color: #1a3a5c; }
.hc-team-addr-hint { font-size: 12px; color: #8a94a6; margin: 4px 0 10px; }
.hc-team-addr-list { display: flex; flex-direction: column; gap: 8px; }
.hc-team-addr-row { display: grid; grid-template-columns: 90px 1.4fr 1.4fr auto auto; gap: 10px; align-items: center; }
.hc-team-addr-code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: #f1f5f9; color: #1a3a5c; padding: 4px 8px; border: 1px solid #d8dee9; border-radius: 4px; text-align: center; white-space: nowrap; justify-self: start; min-width: 60px; }
.hc-team-addr-code-empty { color: #98a2b3; }
.hc-team-addr-name { font-size: 13px; color: #2b3648; font-weight: 500; }
.hc-team-addr-mgr { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: #eef3f8; color: #1a3a5c; padding: 2px 6px; border-radius: 4px; text-align: center; }
.hc-team-addr-input { padding: 6px 8px; border: 1px solid #cfd6e0; border-radius: 6px; font-size: 13px; }
.hc-team-addr-save { background: #1a3a5c; color: #fff; border: 0; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.hc-team-addr-save:hover { background: #14304b; }
.hc-team-addr-del { background: #d9534f; color: #fff; border: 0; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 12px; margin-left: 8px; }
.hc-team-addr-del:hover { background: #c9302c; }

.hc-team-addr-add { display:flex; gap:8px; margin:10px 0 4px; flex-wrap:wrap; }
.hc-team-addr-add .hc-team-addr-input { flex:1 1 160px; min-width:140px; }
.hc-team-addr-addbtn { white-space:nowrap; }

/* 總調度 / 總經理：訂單改派 — 標籤 + 下拉 + 按鈕 */
.hc-reassign-box{display:flex;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap}
.hc-reassign-label{font-weight:600;color:#444}
.hc-reassign-btn{margin-left:2px}
/* worker order action buttons */
.hc-worker-ops { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hc-pending-ops { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.hc-pending-ops > .btn, .hc-worker-ops > .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; }
.hc-accept-btn { background: #2b7de9; color: #fff; border-color: #2b7de9; }
.hc-done-btn { background: #1f9d55; color: #fff; border-color: #1f9d55; }
.hc-return-btn { background: #e0992b; color: #fff; border-color: #e0992b; }
.hc-collect-btn { background: #0e8a7d; color: #fff; border-color: #0e8a7d; }
.hc-refund-btn { background: #c2185b; color: #fff; border-color: #c2185b; }

/* roles: 財務經理 篩選列 */
.hc-fin-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;align-items:center}
.hc-fin-filters .hc-filter-in{min-width:150px}


/* ===== 員工修改模態框 (HQ 角色：GM / admin) ===== *//* ===== r45 訂單操作記錄 + 已確認未付款取消按鈕 ===== */
.hc-op-log-top-btn {
  padding: 6px 14px; font-size: 13px;
  background: #eef2f7; color: #1f3a5f;
  border: 1px solid #cbd5e0; border-radius: 6px; cursor: pointer;
  margin-left: auto;
}
.hc-order-summary .hc-cancel-top-btn { margin-left: 6px; }
.hc-oplog-export { margin-right: auto; }
.hc-op-log-top-btn:hover { background: #dde5f0; }
.hc-cancel-top-btn {
  padding: 6px 14px; font-size: 13px;
  background: #fff; color: #222;
  border: 1px solid #555; border-radius: 6px; cursor: pointer;
}
.hc-cancel-top-btn:hover { background: #f5f5f5; }
.hc-oplog-modal { width: min(560px, 94vw); }
.hc-oplog-body { max-height: 60vh; overflow: auto; padding: 12px 18px; }
.hc-oplog-loading, .hc-oplog-empty { text-align: center; color: #888; padding: 30px 0; }
.hc-oplog-timeline { list-style: none; padding: 0; margin: 0; }
.hc-oplog-item { padding: 10px 0; border-bottom: 1px dashed #eee; }
.hc-oplog-item:last-child { border-bottom: none; }
.hc-oplog-time { color: #999; font-size: 12px; margin-bottom: 4px; }
.hc-oplog-line { font-size: 14px; line-height: 1.5; }
.hc-oplog-who { color: #1f3a5f; font-weight: 600; }
.hc-oplog-act { color: #555; }
.hc-oplog-status { background: #f0f4ff; color: #1f6feb; padding: 2px 8px; border-radius: 4px; font-size: 12px; margin-left: 6px; }
.hc-oplog-note { color: #666; font-size: 13px; padding-left: 8px; margin-top: 4px; border-left: 2px solid #eee; }

/* ===== 員工修改模態框 (HQ 角色：GM / admin) ===== */
.hc-modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.hc-modal {
  background: #fff; border-radius: 10px; width: min(440px, 92vw);
  max-height: 90vh; overflow: auto; box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.hc-modal-title { padding: 14px 18px; font-weight: 700; border-bottom: 1px solid #eee; }
.hc-modal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.hc-modal-body .hc-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.hc-modal-body .hc-field > span { color: #555; }
.hc-modal-body select, .hc-modal-body input { padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; }
.hc-modal-foot { padding: 14px 18px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid #eee; }
.hc-emp-edit { background: #f0f4ff; color: #223; border: 1px solid #cdd8ff; }
.hc-emp-edit:hover { background: #e2eaff; }

/* ===== 員工分組目錄 / 指派下拉（feature） ===== */
.hc-dir-team { margin-bottom: 16px; }
.hc-dir-team-name { margin: 0 0 8px; font-size: 15px; color: #1f3a5f; border-left: 3px solid #2c5282; padding-left: 8px; }
.hc-dir-members { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-order-assignee { margin-left: 6px; max-width: 160px; }

/* ===== 財務經理結算面板 (r26) ===== */
.hc-settle-panel {
  margin-top: 10px; padding: 10px 12px; border: 1px solid #d8e3f0;
  border-radius: 8px; background: #f7fbff; display: flex; flex-direction: column; gap: 8px;
}
.hc-settle-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hc-slabel { color: #1f3a5f; font-weight: 600; min-width: 64px; }
.hc-labor-fee { width: 160px; padding: 7px 10px; border: 1px solid #c9d6e3; border-radius: 6px; font-size: 14px; }
.hc-confirm-settle-btn { align-self: flex-start; margin-top: 2px; }

/* ===== 財務結算面板：完工員工 / 獎勵 / 扣罰 / 其他 / 備註 ===== */
.hc-settle-op-row { gap: 10px; }
.hc-settle-op-actions { gap: 12px; flex-wrap: nowrap; }
.hc-settle-opname { font-weight: 600; color: #1f3a5f; min-width: 72px; }
.hc-settle-sb-row { margin-top: 2px; }
.hc-settle-sb { padding: 9px 12px; border: 1px solid #c9d6e3; border-radius: 6px; font-size: 15px; min-width: 220px; }
.hc-settle-modify-btn, .hc-settle-sbok-btn { padding: 12px 26px; font-size: 15px; min-width: 110px; font-weight: 600; }
.hc-settle-reward, .hc-settle-penalty, .hc-settle-other { width: 160px; padding: 7px 10px; border: 1px solid #c9d6e3; border-radius: 6px; font-size: 14px; }
.hc-settle-note-row { align-items: flex-start; }
.hc-settle-note { flex: 1; min-width: 220px; padding: 7px 10px; border: 1px solid #c9d6e3; border-radius: 6px; font-size: 14px; resize: vertical; }
.hc-confirm-settle-btn { width: 100%; align-self: stretch; margin-top: 4px; font-size: 15px; padding: 13px 22px; }

/* ===== 視圖切換 Tab + 我的收入 ===== */
.hc-view-tabs { display: flex; gap: 8px; margin: 10px 0 4px; }
.hc-view-tabs .hc-tab { padding: 7px 16px; border: 1px solid #d8dee6; background: #f5f7fa; border-radius: 8px; cursor: pointer; font-size: 14px; color: #4a5568; }
.hc-view-tabs .hc-tab.active { background: #1f6feb; color: #fff; border-color: #1f6feb; }

.hc-income { margin-top: 12px; }
.hc-income-loading { padding: 24px; text-align: center; color: #6b7a8d; }
.hc-income-summary { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.hc-income-sum { background: #f3f8ff; border: 1px solid #d8e3f0; border-radius: 10px; padding: 14px 20px; min-width: 160px; }
.hc-income-sum span { display: block; font-size: 13px; color: #6b7a8d; margin-bottom: 4px; }
.hc-income-sum b { font-size: 22px; color: #1f3a5f; }
.hc-income-list { display: flex; flex-direction: column; gap: 10px; }
.hc-income-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(20,40,80,.04); }
.hc-income-item-top { display: flex; justify-content: space-between; align-items: baseline; }
.hc-income-no { font-weight: 700; color: #1f3a5f; font-size: 15px; }
.hc-income-svc { color: #6b7a8d; font-size: 13px; }
.hc-income-break { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; font-size: 13px; color: #33414f; }
.hc-ib-add { color: #1a8a4a; }
.hc-ib-sub { color: #c0392b; }
.hc-income-net { text-align: right; font-size: 18px; font-weight: 700; color: #1f6feb; }
.hc-income-date, .hc-income-note { font-size: 12px; color: #8290a0; margin-top: 2px; }
.hc-income-note { font-style: italic; }
/* r30: 财務組理「確認退款」按鈕（危险操作，紅色醒目） */
.hc-cancel-order-btn { background:#fff; color:#c0392b; border:2px solid #c0392b; }
.hc-cancel-order-btn:hover { background:#c0392b; color:#fff; }

.hc-refund-confirm-btn { background:#c0392b; border-color:#c0392b; color:#fff; }
.hc-refund-confirm-btn:hover { background:#a93226; border-color:#a93226; }
/* r49: 已取消订单删除按钮（仅总经理，危险操作红边白底） */
.hc-delete-order-row { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e0e0e0; }

/* r67: 订单卡底部「执行员工」标识 */
.hc-exec-row { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e0e0e0; color: #555; font-size: 13px; line-height: 1.6; }
.hc-exec-row::before { content: '\25B6'; color: #999; margin-right: 6px; font-size: 10px; }
.hc-delete-order-btn { display: block; width: 100%; box-sizing: border-box; padding: 10px 16px; font-size: 14px; font-weight: 600; background: #fff; color: #c0392b; border: 1px solid #c0392b; border-radius: 6px; cursor: pointer; text-align: center; }
.hc-delete-order-btn:hover { background: #c0392b; color: #fff; }
.hc-pay-info { margin:8px 0; padding:10px; border:1px dashed #2c5d8a; border-radius:6px; background:#f4f8fb; text-align:center; }
.hc-pay-qr { display:inline-block; width:72px; height:72px; line-height:72px; margin:4px auto; border:2px solid #2c5d8a; border-radius:6px; color:#2c5d8a; font-weight:700; letter-spacing:1px; }
.hc-pay-link { font-size:13px; color:#2c5d8a; }
.hc-send-pay-btn { background:#2c5d8a; color:#fff; border-color:#2c5d8a; }
.hc-send-pay-btn:hover { background:#234a6e; }
.hc-cancel-pending-btn { background:#fff; color:#c0392b; border:2px solid #c0392b; }
.hc-cancel-pending-btn:hover { background:#c0392b; color:#fff; }
.hc-confirm-order-btn { background:#0e8a7d; color:#fff; border-color:#0e8a7d; }
.hc-confirm-order-btn:hover { background:#0b6f65; }
.hc-start-btn { background:#2c5d8a; color:#fff; border-color:#2c5d8a; }
.hc-start-btn:hover { background:#234a6e; }

/* r55: 订单垃圾箱 tab 与卡片 */
.hc-trash-tab { margin-left: 6px; }
.hc-order-card.hc-trash-card { border-left: 3px solid #c0392b; opacity: 0.97; }
.hc-trash-meta { font-size: 12px; color: #8a8a8a; margin-top: 4px; }
.hc-trash-ops { display: flex; gap: 10px; padding: 10px 14px 14px; }
.hc-restore-btn { background: #2e7d32; color: #fff; border: 1px solid #2e7d32; border-radius: 6px; padding: 6px 14px; cursor: pointer; }
.hc-purge-btn { background: #fff; color: #c0392b; border: 1px solid #c0392b; border-radius: 6px; padding: 6px 14px; cursor: pointer; }

/* r76: 客戶與服務信息區塊→訂單卡片最下端、默認折疊的 <details>（所有角色/全流程可見，含詳細要求） */
.hc-cust-details { margin: 10px 0 4px; border: 1px solid #e3e8f0; border-radius: 8px; background: #f7f9fc; overflow: hidden; }
.hc-cust-summary { cursor: pointer; padding: 10px 12px; font-size: 13px; font-weight: 600; color: #2c3e50; list-style: none; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.hc-cust-summary::-webkit-details-marker { display: none; }
.hc-cust-summary::after { content: '\25BC'; font-size: 10px; color: #8a9bb0; transition: transform .15s ease; }
.hc-cust-details[open] .hc-cust-summary::after { transform: rotate(180deg); }
.hc-cust-info { padding: 4px 12px 12px; }
.hc-cust-info .hc-info-row { padding: 3px 0; }
.hc-cust-info .hc-info-label { color: #5a6b7b; }
.hc-cust-info .hc-info-val { color: #1f2d3d; font-weight: 500; }
.hc-notes { white-space: pre-wrap; word-break: break-word; line-height: 1.5; }

