/* 全局样式 - 使用支付宝蓝为主色调 */
:root {
    --primary-color: #1677ff;
    --secondary-color: #00a0e9;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f5f5f5;
    --card-bg: #fff;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* 头部样式 - 添加台湾特色元素 */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    margin-right: 10px;
}

.logo .tw-flag {
    width: 24px;
    height: 16px;
    margin-left: 10px;
    background: linear-gradient(to right, 
        #FE0000 0%, #FE0000 33%, 
        #000095 33%, #000095 66%, 
        #FFFFFF 66%, #FFFFFF 100%);
    position: relative;
}

.logo .tw-flag::before {
    content: "★";
    position: absolute;
    color: #FFFFFF;
    font-size: 10px;
    left: 6px;
    top: 3px;
}

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

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.language-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

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

/* 主视觉区 - 突出台湾本地服务 */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 台湾特色服务区 */
.local-services {
    padding: 40px 0;
    background-color: #fff;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

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

/* 404页面特有样式 */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 40px 0;
}

.error-code {
    font-size: 120px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1;
}

.error-message {
    font-size: 2rem;
    margin-bottom: 20px;
}

.error-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: var(--light-text);
}

.home-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }

    .nav-links li {
        margin-left: 0;
    }

    .language-switcher {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-end;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .error-code {
        font-size: 80px;
    }
}

/* 语言切换样式 */
[lang="zh-Hant"] .en-text,
[lang="en"] .zh-text {
    display: none;
}