/* CSS 变量 */
:root {
    --primary-color: #6a1b9a;
    --primary-light: #8e24aa;
    --primary-dark: #4a148c;
    --secondary-color: #0069c0;
    --secondary-light: #1976d2;
    --secondary-dark: #004c8c;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --instagram-pink: #E4405F;
    --instagram-dark: #C13584;
    --email-blue: #34A853;
    --email-dark: #2D8C47;
    --background-color: #f5f5f7;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s ease;
    --font-family: 'Noto Sans HK', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f5f7, #f0f0f5);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(106, 27, 154, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 80% 40%, rgba(0, 105, 192, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 30% 70%, rgba(106, 27, 154, 0.06) 0%, transparent 20%),
        radial-gradient(circle at 60% 10%, rgba(0, 105, 192, 0.05) 0%, transparent 25%);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bg" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M0 15 L15 0 L30 15 L15 30 Z" fill="none" stroke="rgba(106, 27, 154, 0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23bg)"/></svg>');
    opacity: 0.8;
    animation: patternMove 100s linear infinite;
    z-index: -1;
}

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

/* 导航栏 */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

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

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

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo .tagline {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark), var(--primary-light), var(--primary-color));
    background-size: 400% 400%;
    color: var(--white);
    padding: 120px 0 80px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 30%),
                radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.18) 0%, transparent 45%);
    animation: backgroundShift 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bg" width="15" height="15" patternUnits="userSpaceOnUse"><path d="M0 7.5 L7.5 0 L15 7.5 L7.5 15 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23bg)"/></svg>');
    opacity: 0.7;
    animation: patternMove 25s linear infinite;
}

/* 背景动画 */
@keyframes backgroundShift {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-10px) scale(1.05);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    75% {
        transform: translateY(10px) scale(0.95);
    }
}

@keyframes patternMove {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-15px) translateY(-15px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-features {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 18px;
    animation: fadeInUp 1s ease calc(0.3s + var(--i, 0) * 0.1s) both;
}

.feature-item i {
    color: #ffd700;
    font-size: 24px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

/* 按钮样式 */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

/* WhatsApp 按钮 */
.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--white);
    font-size: 20px;
    padding: 20px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-5px);
}

/* Instagram 按钮 */
.btn-instagram {
    background-color: var(--instagram-pink);
    color: var(--white);
}

.btn-instagram:hover {
    background-color: var(--instagram-dark);
}

/* Email 按钮 */
.btn-email {
    background-color: var(--email-blue);
    color: var(--white);
}

.btn-email:hover {
    background-color: var(--email-dark);
}

/* 提交按钮 */
.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

.hero-image {
    flex: 1;
    animation: fadeInRight 1s ease 0.5s both;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 8px solid rgba(255, 255, 255, 0.2);
}

/* 通用部分样式 */
section {
    padding: 100px 0;
    position: relative;
    transition: all 0.3s ease;
}

section:last-child {
    padding-bottom: 80px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* 關於我們 */
.about {
    background: linear-gradient(135deg, #f8f9fa, #f0f0f8);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(106, 27, 154, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(0, 105, 192, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(106, 27, 154, 0.08) 0%, transparent 20%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bg" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0 10 L10 0 L20 10 L10 20 Z" fill="none" stroke="rgba(106, 27, 154, 0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23bg)"/></svg>');
    opacity: 0.7;
    animation: patternMove 50s linear infinite;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
    animation: fadeInLeft 1s ease;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-image {
    flex: 1;
    animation: fadeInRight 1s ease 0.3s both;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* 服務範疇 */
.services {
    background: linear-gradient(135deg, #f5f5f8, #f8f9fa);
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(106, 27, 154, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 70% 80%, rgba(0, 105, 192, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(106, 27, 154, 0.06) 0%, transparent 20%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bg" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(106, 27, 154, 0.04)"/><circle cx="17.5" cy="17.5" r="0.8" fill="rgba(0, 105, 192, 0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23bg)"/></svg>');
    opacity: 0.6;
    animation: patternMove 60s linear infinite reverse;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    animation: fadeInUp 1s ease calc(0.1s + var(--i, 0) * 0.1s) both;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 90, 39, 0.1), transparent);
    transition: var(--transition);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--white);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    animation: pulse 3s ease-in-out infinite;
}

.service-card:hover .service-icon {
    background-color: var(--primary-dark);
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 20px rgba(45, 90, 39, 0.5);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 專業實力 */
.expertise {
    background: linear-gradient(135deg, #f8f9fa, #f5f5f8);
    background-image: 
        radial-gradient(circle at 10% 80%, rgba(106, 27, 154, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(0, 105, 192, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 40% 40%, rgba(106, 27, 154, 0.08) 0%, transparent 20%);
    position: relative;
    overflow: hidden;
}

.expertise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bg" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M0 0 L30 30 M30 0 L0 30" fill="none" stroke="rgba(106, 27, 154, 0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23bg)"/></svg>');
    opacity: 0.7;
    animation: patternMove 55s linear infinite;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease calc(0.1s + var(--i, 0) * 0.2s) both;
    position: relative;
    padding: 20px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.expertise-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.expertise-item.reverse {
    flex-direction: row-reverse;
}

.expertise-item.reverse:hover {
    transform: translateX(-10px);
}

.expertise-item img {
    width: 40%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.expertise-item img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.3), transparent);
    opacity: 0;
    transition: var(--transition);
}

.expertise-item:hover img {
    transform: scale(1.1) rotate(2deg);
    box-shadow: var(--shadow-lg);
}

.expertise-item:hover img::before {
    opacity: 1;
}

.expertise-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.expertise-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.expertise-info h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.expertise-item:hover .expertise-info h3 {
    color: var(--primary-dark);
    transform: translateY(-5px);
}

.expertise-item:hover .expertise-info h3::after {
    width: 100%;
}

.expertise-info p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    transition: var(--transition);
}

.expertise-item:hover .expertise-info p {
    color: var(--text-light);
    transform: translateX(5px);
}

/* 顧客實例 */
.cases {
    background: linear-gradient(135deg, #f5f5f8, #f8f9fa);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(106, 27, 154, 0.11) 0%, transparent 28%),
        radial-gradient(circle at 80% 80%, rgba(0, 105, 192, 0.09) 0%, transparent 32%),
        radial-gradient(circle at 60% 60%, rgba(106, 27, 154, 0.07) 0%, transparent 18%);
    position: relative;
    overflow: hidden;
}

.cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bg" width="20" height="20" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="20" height="20" fill="none" stroke="rgba(106, 27, 154, 0.05)" stroke-width="0.5" stroke-dasharray="2,2"/></pattern></defs><rect width="100" height="100" fill="url(%23bg)"/></svg>');
    opacity: 0.6;
    animation: patternMove 65s linear infinite reverse;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 1s ease calc(0.1s + var(--i, 0) * 0.1s) both;
    position: relative;
    transform-style: preserve-3d;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-15px) rotateY(5deg) rotateX(5deg);
    box-shadow: var(--shadow-lg);
}

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

.case-content {
    padding: 40px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.case-card:hover .case-content {
    background-color: rgba(255, 255, 255, 0.95);
}

.case-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.case-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.case-card:hover h3 {
    color: var(--primary-dark);
    transform: translateY(-5px);
}

.case-card:hover h3::after {
    width: 100%;
}

.case-card p {
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
    position: relative;
}

.case-card:hover p {
    color: var(--text-light);
    transform: translateX(5px);
}

.case-card p:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

.case-card:hover p:last-child {
    color: var(--primary-dark);
    text-shadow: 0 0 5px rgba(45, 90, 39, 0.3);
}

/* 聯繫我們 */
.contact {
    background: linear-gradient(135deg, #f8f9fa, #f5f5f8);
    background-image: 
        radial-gradient(circle at 50% 10%, rgba(106, 27, 154, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 30% 90%, rgba(106, 27, 154, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 70% 50%, rgba(106, 27, 154, 0.08) 0%, transparent 20%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bg" width="35" height="35" patternUnits="userSpaceOnUse"><path d="M0 0 L35 35 M35 0 L0 35" fill="none" stroke="rgba(106, 27, 154, 0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23bg)"/></svg>');
    opacity: 0.7;
    animation: patternMove 60s linear infinite;
}

.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
    animation: fadeInLeft 1s ease;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.social-links {
    margin-bottom: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: var(--background-color);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.social-link.instagram:hover {
    background-color: rgba(228, 64, 95, 0.1);
    color: var(--instagram-pink);
}

.social-link.whatsapp:hover {
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp-green);
}

.social-link.email:hover {
    background-color: rgba(52, 168, 83, 0.1);
    color: var(--email-blue);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form {
    flex: 1;
    animation: fadeInRight 1s ease 0.3s both;
}

.contact-form h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.contact-form:hover h3 {
    color: var(--primary-dark);
    transform: translateY(-5px);
}

.contact-form:hover h3::after {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.form-group:hover label {
    color: var(--primary-color);
    transform: translateX(5px);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(45, 90, 39, 0.2);
    transform: scale(1.02);
}

.form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 90, 39, 0.05), transparent);
    transition: var(--transition);
}

.form-group:hover::before {
    left: 100%;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
    z-index: -1;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(45, 90, 39, 0.4);
}

#form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius-md);
    text-align: center;
}

#form-response.success {
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp-dark);
    border: 1px solid var(--whatsapp-green);
}

#form-response.error {
    background-color: rgba(255, 99, 71, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* 頁腳 */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-info .tagline {
    font-size: 16px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 150px;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    padding: 5px 0;
    display: block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}

.footer-social h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--white);
}

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

.footer-social a {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    font-size: 18px;
}

.footer-social a:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.footer-contact-item i {
    color: var(--secondary-color);
    font-size: 16px;
}

.footer-contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

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

/* 覆盖其他页面使用p标签的联系方式样式 */
.footer-contact p {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact p i {
    color: var(--secondary-color);
    font-size: 16px;
}

.footer-contact p a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-contact p a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Q&A 常見問答 */
.qa {
    background: linear-gradient(135deg, #f5f5f8, #f8f9fa);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(106, 27, 154, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(106, 27, 154, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(106, 27, 154, 0.08) 0%, transparent 20%);
    position: relative;
    overflow: hidden;
}

.qa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bg" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0 10 L10 0 L20 10 L10 20 Z" fill="none" stroke="rgba(106, 27, 154, 0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23bg)"/></svg>');
    opacity: 0.7;
    animation: patternMove 50s linear infinite;
}

.qa-container {
    position: relative;
    z-index: 1;
}

.qa-item {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 1s ease calc(0.1s + var(--i, 0) * 0.1s) both;
    position: relative;
    transform-style: preserve-3d;
}

.qa-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-dark), var(--primary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.qa-item:hover {
    transform: translateY(-5px) rotateY(2deg);
    box-shadow: var(--shadow-md);
}

.qa-item:hover::before {
    transform: scaleX(1);
}

.qa-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.qa-question:hover {
    background-color: rgba(106, 27, 154, 0.05);
}

.qa-question h3 {
    font-size: 20px;
    margin: 0;
    color: var(--primary-color);
    transition: var(--transition);
}

.qa-question:hover h3 {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.qa-question i {
    font-size: 18px;
    color: var(--text-light);
    transition: var(--transition);
}

.qa-question.active i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.qa-answer {
    padding: 0 30px 30px;
    color: var(--text-light);
    line-height: 1.6;
    display: none;
    animation: fadeInUp 0.5s ease;
}

.qa-answer p {
    margin: 0;
}

/* 服務範疇 */
.services-page {
    background: linear-gradient(135deg, #f8f9fa, #f5f5f8);
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(106, 27, 154, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 70% 80%, rgba(106, 27, 154, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(106, 27, 154, 0.06) 0%, transparent 20%);
    position: relative;
    overflow: hidden;
}

.services-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bg" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(106, 27, 154, 0.04)"/><circle cx="17.5" cy="17.5" r="0.8" fill="rgba(0, 105, 192, 0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23bg)"/></svg>');
    opacity: 0.6;
    animation: patternMove 60s linear infinite reverse;
}

.services-content {
    position: relative;
    z-index: 1;
}

.service-box {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-bottom: 30px;
    transition: var(--transition);
    animation: fadeInUp 1s ease calc(0.1s + var(--i, 0) * 0.1s) both;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(106, 27, 154, 0.1), transparent);
    transition: var(--transition);
}

.service-box:hover::before {
    left: 100%;
}

.service-box:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-lg);
}

.service-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.service-box h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.service-box:hover h3::after {
    width: 100%;
}

.service-box p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 奇門教學 */
.qimen {
    background: linear-gradient(135deg, #f5f5f8, #f8f9fa);
    background-image: 
        radial-gradient(circle at 10% 80%, rgba(106, 27, 154, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(106, 27, 154, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 40% 40%, rgba(106, 27, 154, 0.08) 0%, transparent 20%);
    position: relative;
    overflow: hidden;
}

.qimen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bg" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M0 0 L30 30 M30 0 L0 30" fill="none" stroke="rgba(106, 27, 154, 0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23bg)"/></svg>');
    opacity: 0.7;
    animation: patternMove 55s linear infinite;
}

.qimen-content {
    position: relative;
    z-index: 1;
}

.qimen-box {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-bottom: 30px;
    transition: var(--transition);
    animation: fadeInUp 1s ease calc(0.1s + var(--i, 0) * 0.1s) both;
    position: relative;
    overflow: hidden;
}

.qimen-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(106, 27, 154, 0.1), transparent);
    transition: var(--transition);
}

.qimen-box:hover::before {
    left: 100%;
}

.qimen-box:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-lg);
}

.qimen-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.qimen-box h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.qimen-box:hover h3::after {
    width: 100%;
}

.qimen-box p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 八字紫微 */
.bazi {
    background: linear-gradient(135deg, #f8f9fa, #f5f5f8);
    background-image: 
        radial-gradient(circle at 50% 10%, rgba(106, 27, 154, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 30% 90%, rgba(106, 27, 154, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 70% 50%, rgba(106, 27, 154, 0.08) 0%, transparent 20%);
    position: relative;
    overflow: hidden;
}

.bazi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bg" width="35" height="35" patternUnits="userSpaceOnUse"><path d="M0 0 L35 35 M35 0 L0 35" fill="none" stroke="rgba(106, 27, 154, 0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23bg)"/></svg>');
    opacity: 0.7;
    animation: patternMove 60s linear infinite;
}

.bazi-content {
    position: relative;
    z-index: 1;
}

.bazi-box {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-bottom: 30px;
    transition: var(--transition);
    animation: fadeInUp 1s ease calc(0.1s + var(--i, 0) * 0.1s) both;
    position: relative;
    overflow: hidden;
}

.bazi-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(106, 27, 154, 0.1), transparent);
    transition: var(--transition);
}

.bazi-box:hover::before {
    left: 100%;
}

.bazi-box:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-lg);
}

.bazi-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.bazi-box h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.bazi-box:hover h3::after {
    width: 100%;
}

.bazi-box p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 八字试算 */
.trial-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-top: 40px;
}

.trial-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.trial-form {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.trial-form h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.1);
}

.trial-info {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.trial-info h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.trial-notes {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.trial-notes li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.trial-notes li:last-child {
    border-bottom: none;
}

.trial-notes li i {
    color: var(--secondary-color);
    font-size: 16px;
}

.result-container {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin-top: 40px;
    animation: fadeInUp 0.6s ease;
}

.result-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.result-header h4 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.result-note {
    color: var(--text-light);
    font-size: 14px;
    font-style: italic;
}

.result-body {
    margin-bottom: 30px;
}

.result-body h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 25px;
}

.result-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.result-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.bazi-pillar {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--border-radius-md);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.bazi-pillar h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

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

.pillar-item {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    padding: 15px;
    text-align: center;
    transition: var(--transition);
}

.pillar-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pillar-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.pillar-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.five-elements-analysis,
.ten-gods-analysis,
.shen-sha-analysis,
.dayun-analysis,
.career-advice,
.relationship-advice,
.finance-advice,
.health-advice,
.general-advice {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--border-radius-md);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.elements-bar {
    display: flex;
    height: 30px;
    background-color: var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.element-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.element-item.wood {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.element-item.fire {
    background: linear-gradient(135deg, #f44336, #c62828);
}

.element-item.earth {
    background: linear-gradient(135deg, #ff9800, #e65100);
}

.element-item.metal {
    background: linear-gradient(135deg, #9e9e9e, #616161);
}

.element-item.water {
    background: linear-gradient(135deg, #2196f3, #1565c0);
}

.element-name {
    font-size: 10px;
    margin-right: 5px;
}

.element-percent {
    font-size: 12px;
}

.dayun-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dayun-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
}

.dayun-age {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 80px;
}

.dayun-branch {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 60px;
}

.dayun-desc {
    color: var(--text-light);
    flex: 1;
}

/* 風水基本 */
.fengshui {
    background: linear-gradient(135deg, #f5f5f8, #f8f9fa);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(106, 27, 154, 0.11) 0%, transparent 28%),
        radial-gradient(circle at 80% 80%, rgba(106, 27, 154, 0.09) 0%, transparent 32%),
        radial-gradient(circle at 60% 60%, rgba(106, 27, 154, 0.07) 0%, transparent 18%);
    position: relative;
    overflow: hidden;
}

.fengshui::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bg" width="20" height="20" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="20" height="20" fill="none" stroke="rgba(106, 27, 154, 0.05)" stroke-width="0.5" stroke-dasharray="2,2"/></pattern></defs><rect width="100" height="100" fill="url(%23bg)"/></svg>');
    opacity: 0.6;
    animation: patternMove 65s linear infinite reverse;
}

.fengshui-content {
    position: relative;
    z-index: 1;
}

.fengshui-box {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-bottom: 30px;
    transition: var(--transition);
    animation: fadeInUp 1s ease calc(0.1s + var(--i, 0) * 0.1s) both;
    position: relative;
    overflow: hidden;
}

.fengshui-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(106, 27, 154, 0.1), transparent);
    transition: var(--transition);
}

.fengshui-box:hover::before {
    left: 100%;
}

.fengshui-box:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-lg);
}

.fengshui-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.fengshui-box h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.fengshui-box:hover h3::after {
    width: 100%;
}

.fengshui-box p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 顧客實例 */
.cases-page {
    background: linear-gradient(135deg, #f8f9fa, #f5f5f8);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(106, 27, 154, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(106, 27, 154, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 40% 40%, rgba(106, 27, 154, 0.06) 0%, transparent 20%);
    position: relative;
    overflow: hidden;
}

.cases-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bg" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(106, 27, 154, 0.04)"/><circle cx="17.5" cy="17.5" r="0.8" fill="rgba(0, 105, 192, 0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23bg)"/></svg>');
    opacity: 0.6;
    animation: patternMove 60s linear infinite reverse;
}

.cases-content {
    position: relative;
    z-index: 1;
}

.case-box {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-bottom: 30px;
    transition: var(--transition);
    animation: fadeInUp 1s ease calc(0.1s + var(--i, 0) * 0.1s) both;
    position: relative;
    overflow: hidden;
}

.case-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(106, 27, 154, 0.1), transparent);
    transition: var(--transition);
}

.case-box:hover::before {
    left: 100%;
}

.case-box:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-lg);
}

.case-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.case-box h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.case-box:hover h3::after {
    width: 100%;
}

.case-box p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .hero h2 {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .navbar .container {
        padding: 15px;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .expertise-item {
        flex-direction: column;
        text-align: center;
    }
    
    .expertise-item.reverse {
        flex-direction: column;
    }
    
    .expertise-item img {
        width: 80%;
        margin-bottom: 30px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 120px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(0);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links a {
        padding: 15px 0;
        width: 100%;
        font-size: 18px;
        border-bottom: 1px solid rgba(106, 27, 154, 0.1);
    }
    
    .nav-links a:hover {
        padding-left: 10px;
    }
    
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .service-card {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .case-content {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-info {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-info h3 {
        font-size: 22px;
    }
    
    .footer-info .tagline {
        font-size: 15px;
    }
    
    .footer-info p {
        font-size: 13px;
    }
    
    .footer-links {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-links h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer-links a {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .footer-social {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-social h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer-social-links {
        justify-content: center;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .footer-contact {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .footer-contact-item {
        font-size: 13px;
        justify-content: center;
    }
    
    .footer-bottom {
        padding-top: 20px;
        font-size: 12px;
    }
    
    .trial-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .trial-form,
    .trial-info {
        padding: 20px;
    }
    
    .pillar-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .pillar-item {
        padding: 10px;
    }
    
    .pillar-value {
        font-size: 18px;
    }
    
    .result-container {
        padding: 25px;
    }
    
    .result-title {
        font-size: 20px;
    }
    
    .result-header h4 {
        font-size: 18px;
    }
    
    .result-body h4 {
        font-size: 16px;
    }
    
    .elements-bar {
        height: 25px;
    }
    
    .element-item {
        font-size: 10px;
    }
    
    .dayun-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .dayun-age,
    .dayun-branch {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 18px;
    }
    
    .logo .tagline {
        display: none;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .feature-item {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .expertise-info h3 {
        font-size: 24px;
    }
    
    .contact-form h3 {
        font-size: 24px;
    }
    
    .footer-info h3 {
        font-size: 20px;
    }
}

/* 滾動條樣式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 加載動畫 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 平滑滾動 */
html {
    scroll-behavior: smooth;
}

/* 防止文本選擇 */
.no-select {
    user-select: none;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}