/* 基礎樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold-primary: #D4AF37;
    --gold-secondary: #B8860B;
    --gold-light: #F5E8C7;
    --gold-dark: #8B7355;
    --dark-bg: #0A0A0A;
    --dark-secondary: #1A1A1A;
    --dark-tertiary: #2A2A2A;
    --light-text: #F5F5F5;
    --gray-text: #AAAAAA;
    --font-main: 'Noto Sans HK', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--light-text);
    background-color: var(--dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用樣式 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 20px;
}

.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 0 auto;
}

.gold-text {
    color: var(--gold-primary);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--gold-primary);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: var(--gold-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}

.btn-secondary:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

/* 導航欄樣式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: var(--light-text);
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--gold-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.language-switcher {
    display: flex;
    margin-left: 30px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--gray-text);
    color: var(--gray-text);
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.lang-btn:first-child {
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.lang-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.lang-btn.active {
    background-color: var(--gold-primary);
    color: var(--dark-bg);
    border-color: var(--gold-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-text);
    transition: all 0.3s ease;
}

/* 主視覺區域樣式 */
.hero {
    height: 100vh;
    background:
        linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.9)),
        url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    width: 100%;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 關於我們樣式 */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--gold-light);
}

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

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
    margin-bottom: 20px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--gray-text);
}

.about-image {
    flex: 1;
}

.image-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    z-index: -1;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-frame:hover img {
    transform: scale(1.05);
}

/* 服務範疇樣式 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--dark-secondary);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.service-card p {
    color: var(--gray-text);
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    margin-top: 15px;
}

.service-list li {
    color: var(--gray-text);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-weight: bold;
}

/* 客戶Logo展示區域 */
.clients-section {
    background-color: var(--dark-secondary);
    padding: 80px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.client-item {
    width: 100%;
    text-align: center;
}

.client-logo {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    margin-bottom: 10px;
}

.client-logo:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
    background-color: rgba(255, 255, 255, 0.08);
}

.client-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
    transition: all 0.3s ease;
    /* 方法1: 使用混合模式让logo适应深色背景 */
    mix-blend-mode: luminosity;
    opacity: 0.7;
}

.client-logo:hover img {
    /* hover时显示彩色logo */
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
    transform: scale(1.05);
}

/* 对于白色背景的logo，可以添加这个类 */
.client-logo.white-bg-logo {
    background-color: rgba(255, 255, 255, 0.1);
}

.client-logo.white-bg-logo img {
    filter: brightness(0) invert(1); /* 反相为白色 */
    mix-blend-mode: normal;
}

.client-logo.white-bg-logo:hover img {
    filter: none; /* hover时恢复彩色 */
}

.client-name {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* 成功案例樣式 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background-color: var(--dark-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.case-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.1);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--light-text);
}

.case-category {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 4px;
}

.case-content p {
    color: var(--gray-text);
    margin-bottom: 15px;
}

.case-result {
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.case-result p {
    font-size: 0.9rem;
    color: var(--gold-light);
}

/* 聯絡我們樣式 */
.contact-content {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--light-text);
}

.company-name {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--gold-primary);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--light-text);
}

.contact-item p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--dark-tertiary);
    color: var(--gold-primary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--gold-primary);
    color: var(--dark-bg);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--dark-secondary);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--light-text);
}

.contact-form > p {
    color: var(--gray-text);
    margin-bottom: 25px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--dark-tertiary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    color: var(--light-text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-text);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* WhatsApp 按鈕樣式 */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 32px;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--dark-secondary);
    color: var(--light-text);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--dark-secondary);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* 頁尾樣式 */
.footer {
    background-color: var(--dark-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 40px;
}

.footer-logo,
.footer-links,
.footer-services,
.footer-newsletter {
    flex: 1;
    min-width: 200px;
}

.footer-logo h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--light-text);
}

.footer-logo p {
    color: var(--gray-text);
    margin-bottom: 5px;
}

.footer-tagline {
    color: var(--gold-primary) !important;
    font-weight: 600;
    margin-top: 10px;
}

.footer-links h4,
.footer-services h4,
.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-text);
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--gold-primary);
}

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

.footer-links li,
.footer-services li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-services a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--gold-primary);
}

.footer-newsletter p {
    color: var(--gray-text);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    background-color: var(--dark-tertiary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: var(--light-text);
}

.newsletter-form button {
    background-color: var(--gold-primary);
    color: var(--dark-bg);
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--gold-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-text);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* 返回頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--gold-primary);
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--gold-secondary);
    transform: translateY(-5px);
}
