/* 基础样式和变量 - 香港雲石商會配色 */
:root {
    --primary-color: #8B6F47;        /* 石材棕色 */
    --secondary-color: #C9A961;      /* 金黃色 */
    --dark-color: #2c2416;           /* 深棕色 */
    --light-color: #f5f1e8;          /* 米白色 */
    --gray-color: #6b5d4f;           /* 灰棕色 */
    --accent-color: #d4af37;         /* 金色 */
    --success-color: #5a7a4d;        /* 墨綠色 */
    --warning-color: #d4821f;        /* 橙棕色 */
    --danger-color: #a8432e;         /* 紅棕色 */
    --gradient-1: linear-gradient(135deg, #8B6F47 0%, #C9A961 100%);
    --gradient-2: linear-gradient(135deg, #6b5d4f 0%, #8B6F47 100%);
    --gradient-3: linear-gradient(135deg, #C9A961 0%, #d4af37 100%);
    --shadow-sm: 0 2px 4px rgba(44, 36, 22, 0.08);
    --shadow-md: 0 4px 8px rgba(44, 36, 22, 0.12);
    --shadow-lg: 0 10px 25px rgba(44, 36, 22, 0.15);
    --shadow-xl: 0 20px 40px rgba(44, 36, 22, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background: var(--light-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(44, 36, 22, 0.1);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 2px solid var(--accent-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 2rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* 页面通用样式 */
.page {
    min-height: 100vh;
    padding: 120px 0 60px;
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.page.active {
    display: block;
}

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

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

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

.page-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 2px;
}

.page-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

/* 架構頁面縮減頂部間距 */
#architecture .page-subtitle {
    margin-bottom: 1rem;
}

#architecture {
    padding: 90px 0 30px;
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-md);
}

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

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* 第一頁：簡介 */
/* 關於我們區塊 */
.about-section {
    margin: 4rem 0;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--accent-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* 商會宗旨區塊 */
.objectives-section {
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(to bottom, #f5f1e8 0%, #ffffff 100%);
    border-radius: 15px;
    border: 1px solid rgba(139, 111, 71, 0.1);
}

.objectives-list {
    max-width: 1000px;
    margin: 0 auto;
}

.objective-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

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

.objective-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 5px 15px rgba(139, 111, 71, 0.3);
    border: 3px solid var(--accent-color);
}

.objective-content h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.objective-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-color);
    text-align: justify;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8B6F47 0%, #C9A961 100%);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px rgba(139, 111, 71, 0.3);
    animation: none;
    border: 3px solid var(--accent-color);
}

.floating-card i {
    font-size: 8rem;
    color: white;
}

.hero-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

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

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(139, 111, 71, 0.1);
    border-top: 4px solid var(--accent-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(139, 111, 71, 0.3);
    border: 3px solid var(--accent-color);
}

.feature-icon i {
    font-size: 2.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    line-height: 1.8;
}

/* 第二页：会员 */
/* 會員統計卡片 */
.members-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(139, 111, 71, 0.3);
}

.stat-icon i {
    font-size: 2rem;
    color: white;
}

.stat-content h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.stat-content p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* 會員列表表格 */
.members-list-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
    border-top: 4px solid var(--accent-color);
}

.members-table {
    width: 100%;
    border-collapse: collapse;
}

.members-table thead {
    background: var(--gradient-1);
    color: white;
}

.members-table thead th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.members-table thead th:first-child {
    border-radius: 10px 0 0 0;
    width: 100px;
    text-align: center;
}

.members-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

.members-table tbody tr {
    border-bottom: 1px solid rgba(139, 111, 71, 0.1);
    transition: var(--transition);
}

.members-table tbody tr:last-child {
    border-bottom: none;
}

.members-table tbody tr:hover {
    background: rgba(201, 169, 97, 0.08);
}

.members-table tbody td {
    padding: 1.2rem 1rem;
}

.member-number {
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.member-name {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 1.05rem;
}

.member-type {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* 入會資訊 */
.join-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.join-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.join-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.join-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.join-card h3 i {
    color: var(--accent-color);
}

.join-card p {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.join-requirements {
    list-style: none;
    padding: 0;
}

.join-requirements li {
    padding: 0.8rem 0;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(139, 111, 71, 0.1);
}

.join-requirements li:last-child {
    border-bottom: none;
}

.join-requirements li i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.membership-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    border: 2px solid rgba(139, 111, 71, 0.1);
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.plan-card.featured {
    background: var(--gradient-1);
    color: white;
    transform: scale(1.05);
    border: 3px solid var(--accent-color);
    box-shadow: 0 15px 35px rgba(139, 111, 71, 0.3);
}

.plan-card.featured h3,
.plan-card.featured .plan-price {
    color: white;
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.plan-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.plan-card.featured .plan-icon {
    background: rgba(255, 255, 255, 0.3);
}

.plan-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.plan-card.featured .plan-icon i {
    color: white;
}

.plan-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 2rem;
}

.plan-price .currency {
    font-size: 1.5rem;
    font-weight: bold;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: bold;
    margin: 0 0.2rem;
}

.plan-price .period {
    font-size: 1rem;
    color: var(--gray-color);
}

.plan-card.featured .plan-price .period {
    color: rgba(255, 255, 255, 0.9);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-card.featured .plan-features li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.plan-features i {
    color: var(--success-color);
}

.plan-card.featured .plan-features i {
    color: white;
}

/* 第三頁：架構 (理事會成員) */
.council-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}

.council-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(139, 111, 71, 0.1);
    border-top: 3px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    text-align: center;
}

.council-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* 特別強調會長和榮譽會長 - 佔兩欄並排 */
.council-card.main-role,
.council-card.honorary-role {
    background: linear-gradient(to bottom, #fcfbf8, #ffffff);
    border-top: 4px solid var(--primary-color);
}

.council-card.main-role:hover,
.council-card.honorary-role:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 140px;
    height: 175px;
    background: var(--light-color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
    border: 2px solid var(--accent-color);
    box-shadow: 0 3px 10px rgba(139, 111, 71, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.member-photo i {
    font-size: 3.5rem;
    color: var(--gray-color);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.member-info {
    width: 100%;
}

.member-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(139, 111, 71, 0.2);
    padding-bottom: 0.3rem;
    display: inline-block;
}

.eng-title {
    display: block;
    font-size: 0.65rem;
    color: var(--gray-color);
    font-weight: 400;
    margin-top: 0.1rem;
    text-transform: none;
}

.member-name {
    font-size: 1rem;
    color: var(--dark-color);
    margin: 0.3rem 0 0;
    line-height: 1.3;
}

.eng-name {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-color);
    font-weight: 400;
    margin-top: 0.1rem;
}

/* 響應式調整 */
@media (max-width: 1024px) {
    .council-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .council-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .council-card.main-role,
    .council-card.honorary-role {
        transform: none;
        width: 100%;
    }
    
    .member-photo {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 480px) {
    .council-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.architecture-diagram {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.arch-layer {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.layer-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.layer-title i {
    font-size: 2rem;
    color: var(--primary-color);
}

.layer-title h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
}

.layer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 15px;
    transition: var(--transition);
}

.tech-item:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.tech-item:hover i {
    color: white;
}

.tech-item span {
    font-weight: 600;
}

.arch-arrow {
    text-align: center;
    margin: 1rem 0;
}

.arch-arrow i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

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

.architecture-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.arch-feature {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.arch-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.arch-feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.arch-feature h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.arch-feature p {
    color: var(--gray-color);
}

/* 第四页：连结 */
/* 連結表格樣式 */
.links-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-color);
}

.links-table {
    width: 100%;
    border-collapse: collapse;
}

.links-table tbody tr {
    border-bottom: 1px solid rgba(139, 111, 71, 0.15);
    transition: var(--transition);
}

.links-table tbody tr:last-child {
    border-bottom: none;
}

.links-table tbody tr:hover {
    background: rgba(201, 169, 97, 0.08);
}

.link-number {
    width: 60px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
    padding: 1.2rem 1rem;
    vertical-align: middle;
}

.link-content {
    padding: 1.2rem 1rem;
    vertical-align: middle;
}

.link-content a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition);
}

.link-content a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.link-content a i {
    font-size: 0.9rem;
    color: var(--gray-color);
    opacity: 0;
    transition: var(--transition);
}

.link-content a:hover i {
    opacity: 1;
    color: var(--primary-color);
}

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

.link-category {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.link-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-category h3 i {
    color: var(--primary-color);
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 15px;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.link-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(10px);
}

.link-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.link-item:hover i {
    color: white;
}

.link-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

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

.link-item:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

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

.social-item i {
    font-size: 1.5rem;
}

.social-item.facebook { background: #1877f2; }
.social-item.twitter { background: #1da1f2; }
.social-item.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-item.linkedin { background: #0077b5; }
.social-item.youtube { background: #ff0000; }
.social-item.github { background: #333; }

/* 第五页：联络我们 */
.contact-wrapper {
    display: flex;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-color);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 40px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.info-item p {
    color: var(--gray-color);
    line-height: 1.6;
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(139, 111, 71, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2c2416 0%, #3d3221 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 4px solid var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 0;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem;
        width: 100%;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .page-title {
        font-size: 2rem;
    }

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

    .about-section,
    .objectives-section {
        padding: 2rem;
    }

    .objective-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .objective-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .members-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem;
        gap: 1rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
    }

    .stat-icon i {
        font-size: 1.8rem;
    }

    .stat-content h3 {
        font-size: 2rem;
    }

    .members-list-wrapper {
        padding: 1.5rem;
        overflow-x: auto;
    }

    .members-table {
        font-size: 0.95rem;
    }

    .join-info {
        grid-template-columns: 1fr;
    }

    .links-table-wrapper {
        padding: 1.5rem;
        overflow-x: auto;
    }

    .link-number {
        width: 50px;
        padding: 1rem 0.5rem;
        font-size: 1rem;
    }

    .link-content {
        padding: 1rem 0.5rem;
    }

    .link-content a {
        font-size: 0.95rem;
    }

    .membership-plans,
    .links-grid,
    .architecture-features {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .floating-card {
        width: 250px;
        height: 250px;
    }

    .floating-card i {
        font-size: 6rem;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }

    .logo-img {
        height: 40px;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .plan-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

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

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

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .about-section,
    .objectives-section {
        padding: 1.5rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .objective-content h4 {
        font-size: 1.1rem;
    }

    .objective-content p {
        font-size: 0.95rem;
    }

    .links-table-wrapper {
        padding: 1rem;
    }

    .link-number {
        width: 40px;
        padding: 0.8rem 0.3rem;
        font-size: 0.9rem;
    }

    .link-content {
        padding: 0.8rem 0.5rem;
    }

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

    .feature-card,
    .plan-card,
    .arch-layer,
    .link-category,
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
