/* 通用樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 頭部樣式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 主要內容區域 */
main {
    padding: 3rem 0;
}

section {
    margin-bottom: 4rem;
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

/* Hero 區域 */
.hero {
    text-align: center;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    margin-bottom: 3rem;
}

.hero h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按鈕樣式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #fff;
    color: #667eea;
    border-color: #fff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #667eea;
    border-color: #667eea;
}

.btn-outline:hover {
    background-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
}

/* FAQ 區域 */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-answer {
    color: #6c757d;
}

.faq-answer ul, .faq-answer ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* 系統需求區域 */
.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.req-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.req-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.req-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* 聯絡區域 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.contact-item h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.contact-item p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.response-time {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e3f2fd;
    border-radius: 8px;
    color: #1565c0;
}

/* 版本資訊區域 */
.info-checklist {
    margin-top: 2rem;
}

.info-checklist ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-checklist li {
    padding: 1rem;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 8px;
    font-weight: 500;
    color: #495057;
}

/* 頁尾 */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background-color: #34495e;
    color: #3498db;
    transform: translateY(-2px);
}

.footer-content p {
    margin-bottom: 0.5rem;
}

/* 政策頁面特殊樣式 */
.privacy-policy, .terms-of-service {
    max-width: 800px;
    margin: 0 auto;
}

.policy-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.policy-header h2 {
    color: white;
    margin-bottom: 1rem;
}

.last-updated {
    font-size: 1rem;
    opacity: 0.9;
}

.policy-content {
    line-height: 1.8;
}

.policy-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-left: 4px solid #3498db;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.policy-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.policy-section h4 {
    color: #34495e;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.policy-section ul, .policy-section ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

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

.contact-info {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-info ul {
    list-style: none;
    margin-left: 0;
}

.contact-info li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.contact-info a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}

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

.policy-footer {
    margin-top: 3rem;
    padding: 2rem;
    background: #f1f3f4;
    border-radius: 12px;
    text-align: center;
}

.policy-footer .footer-links {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-note {
    font-style: italic;
    color: #666;
    margin-top: 1rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .req-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item, .req-item, .contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 平滑滾動 */
html {
    scroll-behavior: smooth;
}