/**
 * About 頁面共用樣式
 * 包含：Hero 區塊、卡片佈局、響應式設計
 */

:root {
    --primary-color: #2c3e50;
    --primary-light: #34495e;
    --accent-color: #c9a227;
    --accent-light: #d4b84a;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --text-light: #95a5a6;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --error-color: #e74c3c;
}

* {
    box-sizing: border-box;
}

/* ===== 頁面基本結構 ===== */
.about-page {
    min-height: 100vh;
    background: var(--bg-light);
}

/* ===== Hero 區塊已移至 includes/hero.php ===== */

/* ===== 內容區塊（共用） ===== */
.about-content {
    max-width: 1000px;
    margin: -190px auto 0;
    padding: 0 20px 80px;
    position: relative;
}

.about-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* ===== 內容區塊樣式 ===== */
.about-section {
    margin-bottom: 50px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--accent-color);
}

.about-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 24px 0 12px;
}

.about-section p {
    color: var(--text-dark);
    line-height: 1.9;
    margin: 0 0 20px;
    font-size: 1.05rem;
}

.about-section ul,
.about-section ol {
    color: var(--text-dark);
    line-height: 1.9;
    margin: 0 0 20px;
    padding-left: 24px;
}

.about-section li {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.about-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== 特色卡片網格 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.feature-card {
    background: var(--bg-light);
    padding: 28px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-card .material-icons {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ===== CTA 按鈕區塊 ===== */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.cta-box h3 {
    font-size: 1.5rem;
    margin: 0 0 20px;
    color: #fff;
}

.cta-box .btn,
.about-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.cta-box .btn:hover,
.about-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.about-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ===== 訊息提示 ===== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.alert.show {
    display: block;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== 資訊卡片 ===== */
.info-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.info-card p {
    margin: 0;
}

.info-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.info-card a:hover {
    text-decoration: underline;
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
    .about-content {
        padding: 0 16px 60px;
    }

    .about-card {
        padding: 32px 24px;
    }

    .about-section h2 {
        font-size: 1.4rem;
    }

    .about-section h3 {
        font-size: 1.1rem;
    }

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

    .cta-box {
        padding: 30px 20px;
    }

    .cta-box h3 {
        font-size: 1.3rem;
    }
}
