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

:root {
    --bg-cream: #e8e3d8;
    --bg-light: #f5f2ea;
    --gold-primary: #b8860b;
    --gold-dark: #8b6914;
    --gold-light: #daa520;
    --gold-shine: #ffd700;
    --text-dark: #2c2416;
    --text-brown: #5c4d3c;
    --ink-gray: #4a4a4a;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-shadow: rgba(139, 105, 20, 0.15);
    --ornament-gold: #d4af37;
}

body {
    font-family: 'Noto Serif TC', serif;
    background-color: var(--bg-cream);
    background-image: 
        linear-gradient(to bottom, rgba(232, 227, 216, 0.9), rgba(245, 242, 234, 0.9));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
}

/* 水墨畫背景層 */
.ink-wash-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="mountain" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%234a4a4a;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%234a4a4a;stop-opacity:0.05"/></linearGradient></defs><path d="M0,400 Q100,300 200,350 T400,400 Q500,350 600,400 T800,450 Q900,400 1000,450 T1200,500 L1200,800 L0,800 Z" fill="url(%23mountain)" opacity="0.3"/><path d="M0,500 Q150,450 300,480 T600,520 Q750,480 900,520 T1200,580 L1200,800 L0,800 Z" fill="url(%23mountain)" opacity="0.2"/></svg>');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* 裝飾性松樹 */
body::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 400px;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 300"><path d="M100,50 Q80,100 90,150 Q70,180 85,220 L85,300 L95,300 L95,220 Q110,180 100,150 Q120,100 100,50 Z" fill="%234a4a4a" opacity="0.15"/><circle cx="90" cy="100" r="15" fill="%234a4a4a" opacity="0.1"/><circle cx="100" cy="130" r="18" fill="%234a4a4a" opacity="0.1"/><circle cx="95" cy="170" r="20" fill="%234a4a4a" opacity="0.1"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    animation: treeFloat 6s ease-in-out infinite;
}

@keyframes treeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.container {
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 主標題區域 */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 20px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.main-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold-dark);
    text-shadow: 
        2px 2px 0px var(--gold-light),
        4px 4px 8px var(--card-shadow);
    margin-bottom: 50px;
    letter-spacing: 4px;
    line-height: 1.3;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            2px 2px 0px var(--gold-light),
            4px 4px 8px var(--card-shadow);
    }
    50% {
        text-shadow: 
            2px 2px 0px var(--gold-shine),
            4px 4px 12px rgba(218, 165, 32, 0.4),
            0 0 20px rgba(255, 215, 0, 0.3);
    }
}

/* 關於區域 */
.about-section {
    background: var(--card-bg);
    border: 2px solid var(--gold-primary);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 5px 20px var(--card-shadow);
}

.section-title {
    font-size: 1.8rem;
    color: var(--gold-dark);
    margin: 30px 0 20px;
    padding-left: 15px;
    border-left: 5px solid var(--gold-primary);
    text-align: left;
}

.section-title:first-child {
    margin-top: 0;
}

.about-content {
    text-align: left;
    line-height: 1.8;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.intro-text strong {
    color: var(--gold-dark);
    font-size: 1.2rem;
}

.belief-text {
    font-size: 1.15rem;
    color: var(--text-brown);
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.05), rgba(218, 165, 32, 0.08));
    border-left: 4px solid var(--gold-primary);
    border-radius: 8px;
}

.belief-text em {
    color: var(--gold-dark);
    font-style: italic;
    font-weight: 600;
}

/* 專業領域網格 */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.expertise-item {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.08), rgba(218, 165, 32, 0.12));
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
}

.expertise-item:hover {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.15), rgba(218, 165, 32, 0.2));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.2);
}

/* 旅程內容 */
.journey-content, .impact-content {
    text-align: left;
    line-height: 2;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-top: 20px;
}

.journey-content p, .impact-content p {
    margin-bottom: 20px;
}

.subtitle-group {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.subtitle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    color: var(--text-brown);
    font-weight: 600;
    letter-spacing: 2px;
}

.subtitle-text {
    position: relative;
    padding: 5px 15px;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1), rgba(218, 165, 32, 0.15));
    border-radius: 8px;
    border: 1px solid rgba(184, 134, 11, 0.3);
}

.ornament-left, .ornament-right {
    font-size: 1.2rem;
    animation: float 3s ease-in-out infinite;
}

.ornament-left {
    animation-delay: 0s;
}

.ornament-right {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* 分隔線 */
.section-divider {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
}

.section-divider::before {
    left: 0;
}

.section-divider::after {
    right: 0;
}

.divider-text {
    font-size: 1.3rem;
    color: var(--gold-dark);
    font-weight: 700;
    letter-spacing: 3px;
    padding: 0 20px;
    background-color: var(--bg-cream);
    position: relative;
    z-index: 1;
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0 10px;
}

.social-link {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold-primary);
    border-radius: 15px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px var(--card-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out backwards;
}

.social-link:nth-child(2) { animation-delay: 0.3s; }
.social-link:nth-child(3) { animation-delay: 0.4s; }
.social-link:nth-child(4) { animation-delay: 0.5s; }
.social-link:nth-child(5) { animation-delay: 0.6s; }
.social-link:nth-child(6) { animation-delay: 0.7s; }
.social-link:nth-child(7) { animation-delay: 0.8s; }

/* 裝飾元素 */
.link-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

.link-decoration.left {
    left: 10px;
    top: 10px;
    border-top: 2px solid var(--gold-primary);
    border-left: 2px solid var(--gold-primary);
    border-top-left-radius: 10px;
}

.link-decoration.right {
    right: 10px;
    bottom: 10px;
    border-bottom: 2px solid var(--gold-primary);
    border-right: 2px solid var(--gold-primary);
    border-bottom-right-radius: 10px;
}

/* 背景漸變效果 */
.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.6s ease;
    z-index: -1;
    opacity: 0.15;
}

.social-link.instagram::before {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 50%, #bc1888 100%);
}

.social-link.articles::before {
    background: linear-gradient(135deg, #8b6914 0%, #b8860b 50%, #daa520 100%);
}

.social-link.instagram-alt::before {
    background: linear-gradient(135deg, #bc1888 0%, #dc2743 50%, #e6683c 100%);
}

.social-link.tiktok::before {
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
}

.social-link.line::before {
    background: linear-gradient(135deg, #00B900 0%, #00c300 100%);
}

.social-link.divination::before {
    background: linear-gradient(135deg, #CD853F 0%, #DAA520 50%, #FFD700 100%);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(139, 105, 20, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: var(--gold-shine);
}

.social-link:hover::before {
    left: 0;
}

.social-link:hover .link-decoration {
    opacity: 0.6;
}

.social-link:active {
    transform: translateY(-2px) scale(1);
}

.link-icon {
    font-size: 2.2rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.15), rgba(218, 165, 32, 0.25));
    border-radius: 15px;
    border: 2px solid rgba(184, 134, 11, 0.4);
    flex-shrink: 0;
    transition: all 0.4s ease;
    color: var(--gold-dark);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.social-link:hover .link-icon {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.3), rgba(255, 215, 0, 0.4));
    border-color: var(--gold-shine);
    transform: rotate(5deg) scale(1.1);
    box-shadow: 
        inset 0 2px 8px rgba(255, 255, 255, 0.7),
        0 0 15px rgba(255, 215, 0, 0.3);
}

.link-content {
    flex: 1;
    text-align: left;
}

.link-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.link-content p {
    font-size: 1rem;
    color: var(--text-brown);
    font-weight: 400;
}

.link-arrow {
    font-size: 1.5rem;
    color: var(--gold-dark);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.social-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(8px);
    color: var(--gold-shine);
}

.footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(184, 134, 11, 0.3);
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
    position: relative;
}

.footer-decoration {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
    margin: 0 auto 20px;
    position: relative;
}

.footer-decoration::before,
.footer-decoration::after {
    content: '◆';
    position: absolute;
    color: var(--gold-primary);
    font-size: 0.8rem;
    top: -7px;
}

.footer-decoration::before {
    left: -20px;
}

.footer-decoration::after {
    right: -20px;
}

.footer-text {
    font-size: 1rem;
    color: var(--text-brown);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.footer-subtext {
    font-size: 0.9rem;
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 2px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.3rem;
        letter-spacing: 3px;
    }

    .about-section {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .intro-text, .journey-content, .impact-content {
        font-size: 1rem;
    }

    .subtitle-group {
        gap: 20px;
    }

    .subtitle-item {
        font-size: 1.2rem;
    }

    .divider-text {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .social-link {
        padding: 20px 25px;
    }

    .link-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .link-content h3 {
        font-size: 1.2rem;
    }

    .link-content p {
        font-size: 0.9rem;
    }

    .link-decoration {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .main-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .about-section {
        padding: 25px 15px;
    }

    .section-title {
        font-size: 1.3rem;
        padding-left: 10px;
    }

    .expertise-item {
        font-size: 0.95rem;
        padding: 12px 15px;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    .belief-text {
        font-size: 1rem;
        padding: 15px;
    }

    .journey-content, .impact-content {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .subtitle-group {
        flex-direction: column;
        gap: 15px;
    }

    .subtitle-item {
        font-size: 1rem;
    }

    .section-divider::before,
    .section-divider::after {
        width: 25%;
    }

    .divider-text {
        font-size: 1rem;
        letter-spacing: 1px;
        padding: 0 15px;
    }

    .social-link {
        padding: 18px 20px;
        gap: 15px;
    }

    .link-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .link-content h3 {
        font-size: 1.1rem;
    }

    .link-content p {
        font-size: 0.85rem;
    }

    .link-arrow {
        font-size: 1.3rem;
    }

    .link-decoration {
        width: 25px;
        height: 25px;
    }

    .footer-text {
        font-size: 0.9rem;
    }

    .footer-subtext {
        font-size: 0.8rem;
    }
}

/* 波紋效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.4) 0%, rgba(255, 215, 0, 0.2) 50%, transparent 70%);
    transform: scale(0);
    animation: rippleEffect 0.7s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 載入動畫 */
@keyframes pageLoad {
    from {
        opacity: 0;
        filter: blur(5px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

body {
    animation: pageLoad 0.8s ease-out;
}
