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

:root {
    /* Colors */
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --secondary: #f1f5f9;
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #64748b;
    --muted-light: #94a3b8;
    --border: #e2e8f0;
    --yellow: #eab308;
    --yellow-dark: #ca8a04;
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-150: #034b29;
    --yellow-50: #fefce8;
    --yellow-100: #fef3c7;
    --blue: #3b82f6;
    --orange: #f97316;
    --purple: #8b5cf6;
    --indigo: #6366f1;
    --teal: #14b8a6;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --border-radius: 0.5rem;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    overflow-x: hidden;
    letter-spacing: 1px;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-description {
    color: var(--muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 4rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    color: var(--yellow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-150);
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.language-btn:hover {
    background: var(--secondary);
    color: var(--foreground);
}

.mobile-menu-btn {
    display: block;
    background: transparent;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.btn-icon {
    width: 1rem;
    height: 1rem;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-link:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

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

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

.btn-outline:hover {
    background: var(--yellow);
    color: white;
    transform: scale(1.05);
}

.btn-dark {
    background: #000;
    color: white;
}

.btn-dark:hover {
    background: #333;
}

.btn-green {
    background: #16a34a;
    color: white;
}

.btn-green:hover {
    background: #15803d;
}

.btn-yellow {
    background: var(--yellow);
    color: white;
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

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

.quick-nav-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.quick-nav-btn:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:url(images/bg.png);
    background-color: linear-gradient(135deg, var(--green-50) 0%, #ecfccb 50%, var(--yellow-50) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 556px;
    display: flex;
    margin: 0 auto;
    margin-top: 84px;
    animation: fadeInUp 1s ease-out;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--background);
}

.hero-title {
    font-size: 3rem;
    line-height: 1;
    letter-spacing: 0;
    color: var(--background);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-slogan {
    font-size: 1.5rem;
    color: var(--background);
    line-height: 1;
    font-weight: 600;
}

@media (min-width: 768px) {
    .hero-slogan {
        font-size: 2rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--green-150);
    margin-bottom: 1.7rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: 20px;
    margin-right: 20px;
}

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

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-actions .btn {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

.quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Feature Sections */
.about {
    padding: var(--section-padding);
    background: var(--background);
}

.feature-section {
    margin-bottom: 4rem;
}

.feature-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.feature-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--background);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon.green {
    background: var(--green-100);
}

.feature-icon.yellow {
    background: var(--yellow-100);
}

.feature-icon .icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.feature-icon.yellow .icon {
    color: var(--yellow-dark);
}

.feature-card-title {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.feature-card-description {
    color: var(--muted);
    line-height: 1.6;
}

/* 有序列表樣式 */
.feature-card-description ol {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    text-align: left;
}

.feature-card-description ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.feature-card-description ol li:last-child {
    margin-bottom: 0;
}

/* Join Gift (About section) */
.join-gift {
    max-width: 800px;
    margin: 1.5rem auto 0;
    padding: 1.25rem 1.5rem;
    background: var(--green-50);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
}

.join-gift-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.75rem;
}

.join-gift-list {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--muted);
    line-height: 1.7;
}

.join-gift-list li + li {
    margin-top: 0.25rem;
}

@media (max-width: 767px) {
    .join-gift {
        padding: 1rem 1rem;
        margin-top: 1rem;
    }
}

/* Participation Steps */
.participate {
    padding: var(--section-padding);
    background: rgba(241, 245, 249, 0.3);
}

.steps-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.step-description {
    color: var(--muted);
    line-height: 1.6;
}

.download-section {
    text-align: center;
}

.download-title {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

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

@media (min-width: 768px) {
    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Merchants Section */
.merchants {
    padding: var(--section-padding);
    background: var(--background);
}

.merchant-categories {
    margin-bottom: 4rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-tag {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 2rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--muted);
}

.category-tag:hover,
.category-tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.merchants-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .merchants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.merchant-card {
    background: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.merchant-card:hover {
    box-shadow: var(--shadow-lg);
}

.merchant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.merchant-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.merchant-category {
    background: var(--secondary);
    color: var(--muted);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.merchant-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--yellow);
}

.rating-icon {
    width: 1rem;
    height: 1rem;
}

.rating-value {
    font-weight: 600;
    font-size: 0.875rem;
}

.merchant-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.location-icon {
    width: 1rem;
    height: 1rem;
}

.merchant-offer {
    color: #16a34a;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Merchant link styles */
.merchant-name a, 
.merchant-location a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.merchant-name a:hover {
    color: var(--primary);
}

.merchant-location a:hover {
    color: var(--primary);
}

/* Recruitment Section */
.recruitment-section {
    background: linear-gradient(135deg, var(--yellow-50) 0%, var(--green-50) 100%);
    border-radius: 1rem;
    padding: 2rem;
}

.recruitment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.recruitment-title {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.recruitment-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
}

.recruitment-details {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .recruitment-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefits-title,
.process-title {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.benefits-list,
.process-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benefit-item,
.process-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefit-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #16a34a;
    flex-shrink: 0;
}

.process-number {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.recruitment-cta {
    text-align: center;
}

.recruitment-note {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 1rem;
}

/* Dashboard Section */
.dashboard {
    padding: var(--section-padding);
    background: rgba(241, 245, 249, 0.3);
}

.stats-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.stat-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stat-value.blue { color: var(--blue); }
.stat-value.green { color: #16a34a; }
.stat-value.yellow { color: var(--yellow-dark); }
.stat-value.orange { color: var(--orange); }
.stat-value.purple { color: var(--purple); }
.stat-value.indigo { color: var(--indigo); }
.stat-value.teal { color: var(--teal); }

.stat-label {
    font-size: 0.875rem;
    color: var(--muted);
}

.chart-section {
    display: flex;
    justify-content: center;
}

.chart-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 600px;
}

.chart-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.chart-content {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .chart-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pie-chart-item {
    text-align: center;
}

.pie-circle {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.pie-circle.green { background: #16a34a; }
.pie-circle.blue { background: var(--blue); }
.pie-circle.yellow { background: var(--yellow); }

.pie-percentage {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.pie-label {
    font-weight: 600;
}

/* FAQ Section */
.faq {
    padding: var(--section-padding);
    background: var(--background);
}

.faq-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.faq-category-title {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.faq-question {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.faq-answer {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--foreground);
    color: var(--background);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
    justify-items: center;
    text-align: center;
}
.copyright-main {
    display: block;
}

.copyright-separator {
    display: none;
}

.copyright-partner {
    display: block;
    margin-top: 0.25rem;
}
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        text-align: left;
    }
        
    .copyright-main,
    .copyright-separator,
    .copyright-partner {
        display: inline;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}
@media (min-width: 768px) {
    .footer-brand  {
        justify-content: start;
    }
}


.footer-brand-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links-title,
.footer-contact-title {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-link-list {
    list-style: none;
    display: grid;
    grid-template-columns: var(--footer-grid-columns, 1fr 1fr);
    gap: 0.5rem 1.5rem;
}

.footer-contact-info {
    color: rgba(255, 255, 255, 0.8);
}

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

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

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
}



/* Footer 中所有 a 標籤統一樣式 */
.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: #fbbf24;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-slogan {
        font-size: 1.25rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .recruitment-section {
        padding: 1.5rem;
    }
}
@media (max-width: 320px) {
    .hero-title {
        font-size: 2.5rem;
    }
}
/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.scale-on-hover {
    transition: var(--transition);
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
