/* 首頁現代化樣式 */
/* 基於 design/index.html 設計 */

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

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: #fdeff3;
    color: #432c4d;
    line-height: 1.6;
    min-height: 100vh;
}

/* 容器樣式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff5f8;
    border-radius: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* 頁首樣式 */
header {
    background: #fff5f8;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #432c4d;
}

nav a {
    margin: 0 12px;
    text-decoration: none;
    color: #5a3a60;
    font-weight: 500;
}

nav a:hover,
nav a.active {
    color: #693a6d;
}

/* 主要內容區域 */
.main-content {
    padding: 40px;
}

/* Hero 區域 */
.hero {
    display: flex;
    align-items: center;
    padding: 60px 40px;
    background: #fff5f8;
    margin-bottom: 32px;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 12px;
    color: #432c4d;
    line-height: 1.2;
}

.hero p {
    color: #8b6c86;
    margin-bottom: 16px;
    font-size: 16px;
}

.hero-img {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f7e2ef, #e8d5e8);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8b6c86;
    font-size: 16px;
    flex-shrink: 0;
}

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

.hero-placeholder svg {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f7e2ef, #e8d5e8);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* 選擇器組 */
.select-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.select-group select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    min-width: 100px;
}

/* 功能特色區域 */
.features {
    display: flex;
    justify-content: space-around;
    padding: 50px 40px;
    background: var(--card-bg);
    gap: 20px;
}

.feature {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.feature svg {
    width: 36px;
    height: 36px;
    background: var(--gray-200);
    fill: var(--primary-color);
    padding: 20px;
    border-radius: 50%;
    margin-bottom: 16px;
    display: inline-block;
    box-sizing: content-box;
}

.feature h3 {
    color: #693a6d;
    margin-bottom: 12px;
    font-size: 18px;
}

.feature p {
    color: #8b6c86;
    font-size: 14px;
}

/* 步驟流程區域 */
.steps {
    text-align: center;
    padding: 50px 40px;
    background: #fff5f8;
}

.steps h2 {
    margin-bottom: 40px;
    font-size: 28px;
    color: #432c4d;
}

.step-flow {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.step {
    width: 140px;
    font-size: 14px;
}

.step svg {
    width: 32px;
    height: 32px;
    background: #f7e2ef;
    fill: #693a6d;
    padding: 20px;
    border-radius: 50%;
    margin-bottom: 12px;
    display: inline-block;
    box-sizing: content-box;
}

.step div {
    font-weight: 500;
    color: #432c4d;
}

/* 見證區域 */
.testimonial {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 50px 40px;
    background: white;
}

.testimonial-img {
    width: 300px;
    height: 240px;
    background: linear-gradient(135deg, #f7e2ef, #e8d5e8);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8b6c86;
    font-size: 14px;
}

.testimonial-text {
    flex: 1;
    max-width: 500px;
}

.testimonial-text h3 {
    font-size: 24px;
    color: #693a6d;
    margin-bottom: 16px;
}

.testimonial-text p {
    font-size: 16px;
    margin: 12px 0;
    color: #8b6c86;
}

.testimonial-text .signature {
    font-style: italic;
    color: #5a3a60;
    margin-bottom: 24px;
}

.testimonial-text .btn-primary {
    margin-top: 20px;
}

/* 快速註冊表單 */
.quick-register {
    margin-top: 24px;
}

.register-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-input,
.form-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    min-width: 100px;
    font-size: 14px;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(105, 58, 109, 0.1);
}

.radio-group {
    display: flex;
    gap: 16px;
}

.form-radio {
    display: none;
}

.form-radio + label {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.form-radio:checked + label {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 歡迎用戶區域 */
.welcome-user {
    margin-top: 24px;
    text-align: center;
}

.welcome-user h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.welcome-user p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Banner 區域 */
.banner-section {
    margin-bottom: 40px;
}

.hero-banner {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.banner-item {
    flex: 0 0 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.banner-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 區塊樣式 */
.section {
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* 用戶網格 */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.user-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.user-photo {
    text-align: center;
    margin-bottom: 16px;
}

.user-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gray-200);
}

.user-info {
    text-align: center;
}

.user-info h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 18px;
}

.user-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

/* 功能特色網格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-section {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 16px;
}

.feature-section h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 18px;
}

.feature-section svg {
    width: 36px;
    height: 36px;
    background: var(--gray-200);
    fill: var(--primary-color);
    padding: 20px;
    border-radius: 50%;
    margin-bottom: 16px;
    display: inline-block;
    box-sizing: content-box;
}

/* 活動列表 */
.activity-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.activity-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.activity-card:hover {
    transform: translateY(-4px);
}

.activity-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.activity-info {
    padding: 20px;
}

.activity-info h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 18px;
}

.activity-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: var(--primary-color);
    color: white;
}

/* 紅娘列表 */
.hongniang-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.hongniang-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.hongniang-card:hover {
    transform: translateY(-4px);
}

.hongniang-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid var(--gray-200);
}

.hongniang-info h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 16px;
}

.hongniang-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 文章網格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-info {
    padding: 20px;
}

.article-info h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
}

.article-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.date {
    color: var(--text-muted);
    font-size: 12px;
}

/* 頁腳 */
footer {
    text-align: center;
    padding: 30px;
    background: var(--container-bg);
    color: var(--text-secondary);
    font-size: 14px;
}

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

.footer-section h5 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--gray-200);
    margin-top: 32px;
}

/* 按鈕樣式 */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

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

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        margin: 20px;
        border-radius: 16px;
    }
    
    header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .hero-img {
        width: 100%;
        max-width: 300px;
        height: 200px;
    }
    
    .features {
        flex-direction: column;
        gap: 30px;
    }
    
    .step-flow {
        gap: 30px;
    }
    
    .testimonial {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-img {
        width: 100%;
        max-width: 250px;
        height: 180px;
        margin-bottom: 20px;
    }
    
    .register-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 24px;
    }
    
    .section-header {
        margin-bottom: 24px;
    }
    
    .activity-card {
        margin-bottom: 16px;
    }
    
    .hongniang-list {
        grid-template-columns: 1fr;
    }
} 