/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --secondary-color: #1e3a8a;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f8fafc;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Header and Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

body {
    padding-top: 80px; /* 為固定導航欄留出空間 */
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* App Preview Section */
.app-preview {
    padding: 4rem 0;
}

.app-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.preview-content {
    max-width: 800px;
    margin: 0 auto;
}

.preview-content ul {
    list-style: none;
    margin-top: 1rem;
}

.preview-content li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--background-light);
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem 0;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    padding: 0.25rem 0;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
}

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

/* Legal Content Pages */
.legal-content {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.last-updated {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-section h3 {
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem 0;
}

.legal-section ul {
    margin-left: 2rem;
    margin-top: 0.5rem;
}

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

/* Support Page */
.support-hero {
    background-color: var(--background-light);
    padding: 3rem 0;
    text-align: center;
}

.support-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.support-content {
    padding: 3rem 0;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.support-section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-email {
    font-size: 1.1rem;
    margin: 1rem 0;
}

.support-additional {
    margin-top: 4rem;
}

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

.resource-card {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 0.5rem;
}

.resource-card h3 {
    margin-bottom: 1rem;
}

/* About Page */
.about-hero {
    background-color: var(--background-light);
    padding: 3rem 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.about-content {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.value-card {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

.value-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.5rem 0;
    line-height: 1.8;
}

.contact-section {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

/* Download Section */
.download-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--background-light);
    border-radius: 1rem;
}

.download-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.download-btn img {
    height: 50px;
    transition: transform 0.3s ease;
}

.download-btn:hover img {
    transform: scale(1.05);
}

/* Cookie Notice Style */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-notice button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    margin-left: 1rem;
    cursor: pointer;
}

/* Table Styles - 美化收費詳情表格 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

table th {
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    font-weight: 600;
    text-align: left;
    border: none;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: var(--background-light);
}

/* Warning and Example Boxes - 美化提示框 */
.warning-box, .example-box {
    border-radius: 0.5rem;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #f59e0b;
}

.warning-box strong {
    color: #dc2626;
}

.example-box {
    background: #f8fafc;
    border-left: 4px solid #1e40af;
}

.example-box ul {
    margin-left: 0;
    list-style: none;
}

.example-box li {
    padding: 0.3rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* 手機版表格優化 */
    table {
        font-size: 0.9rem;
    }

    table th, table td {
        padding: 10px 8px;
    }

    .warning-box, .example-box {
        padding: 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .features,
    .app-preview,
    .contact {
        padding: 3rem 0;
    }
}
