/* 布局层级与对齐/边距说明
   - 页面结构：header（页头） → main（主体） → section（内容区块）
   - .container：所有主要区块的居中容器，限制最大宽度，提供左右内边距
   - .section .container：相较基础 .container，在内容区块中增加更大的左右内边距
   - .header .container：使用 Flex 实现左右两端对齐与垂直居中
   - .contact-container：只控制定位与最小高度，不叠加额外内边距
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('fonts/source-serif-4-v14-latin/source-serif-4-v14-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('fonts/source-serif-4-v14-latin/source-serif-4-v14-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('fonts/source-serif-4-v14-latin/source-serif-4-v14-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('fonts/source-serif-4-v14-latin/source-serif-4-v14-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Serif TC';
    src: url('fonts/noto-serif-tc-v35-chinese-traditional/noto-serif-tc-v35-chinese-traditional-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Serif TC';
    src: url('fonts/noto-serif-tc-v35-chinese-traditional/noto-serif-tc-v35-chinese-traditional-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Serif TC';
    src: url('fonts/noto-serif-tc-v35-chinese-traditional/noto-serif-tc-v35-chinese-traditional-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Serif TC';
    src: url('fonts/noto-serif-tc-v35-chinese-traditional/noto-serif-tc-v35-chinese-traditional-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* 全局字体与排版 */
body {
    font-family: 'Source Serif 4', 'Noto Serif TC', serif;
    line-height: 1.6;
    color: #333;
}

/* 注：不在 * 选择器强制设定字体，避免覆盖特殊控件默认字体 */

/* 居中容器：限制宽度并水平居中，基础左右内边距为 20px */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 内容区块的容器：在 section 中增大左右内边距（桌面端 40px） */
.section .container {
    padding: 0 40px;
}

@media (max-width: 768px) {
    /* 移动端：内容区块左右内边距缩小为 30px */
    .section .container {
        padding: 0 30px;
    }
}

.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 页头容器：Flex 布局，两端对齐，垂直居中，内部含 logo 与导航 */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* 导航：横向排列，使用 gap 控制链接间距 */
.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* 内容区块：最小高度与上下内边距，形成清晰的版块分隔 */
.section {
    min-height: 80vh;
    padding: 60px 0;
}

#about {
    background-color: #f8f9fa;
}

.wip {
    font-family: 'Source Serif 4', 'Noto Serif TC', serif;
    
    font-weight: 300;
    
    font-size: 2.5rem; 
    
    text-align: center;
    
    margin-top: 200px;
}

#contact {
    background-color: #fff;
}

#branding {
    background-color: #fff;
    padding-top: 40px;
    padding-bottom: 50px;
    min-height: 0;
}

#contact h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c3e50;
    text-align: left;
}

.contact-info {
    max-width: 900px;
    margin: 0;
    text-align: left;
}

.phone-section,
.address-section,
.social-section {
    margin-bottom: 40px;
}

.social-section {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone-section h3,
.address-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.phone-link {
    color: #555;
    text-decoration: none;
    font-size: 20px;
    font-weight: 300;
    transition: opacity 0.3s ease;
    display: inline-block;
    margin: 10px 0;
}

.phone-link:hover {
    opacity: 0.8;
}

.address {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin: 10px 0;
    font-weight: 300;
}

.social-link {
    display: inline-block;
    color: #555;
    transition: opacity 0.3s ease;
    line-height: 0;
    margin: 10px 0;
}

.social-link:hover {
    opacity: 0.8;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* 联系区块内的容器：仅控制定位与最小高度，不改变左右内边距 */
.contact-container {
    position: relative;
    min-height: 340px;
}

.branding-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
}

.branding-logo {
    height: 135px;
    width: auto;
    display: block;
}
