/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0A3D3A;      /* 翡翠墨綠 */
    --secondary-color: #B08B59;    /* 金棕色 */
    --accent-color: #F9F6F0;       /* 淺米色 */
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --success: #28a745;
    --shadow-light: rgba(10, 61, 58, 0.1);
    --shadow-medium: rgba(10, 61, 58, 0.2);
    --shadow-heavy: rgba(10, 61, 58, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #0d4a46);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #9d7a4d);
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 61, 58, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.nav-logo i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    background-image: url('../images/bgc.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 61, 58, 0.85);
}

.hero-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    margin-right: 8px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
    color: var(--secondary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.stat-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-cta {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(176, 139, 89, 0.3);
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(176, 139, 89, 0.4);
}

.hero-cta i {
    margin-right: 10px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease 0.4s both;
}

.hero-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(10, 61, 58, 0.2);
    max-width: 400px;
    width: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.avatar {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
}

.card-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.card-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: var(--accent-color);
    border-radius: 10px;
}

.achievement i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.achievement span {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--accent-color);
}

.content-module {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.content-module:last-child {
    margin-bottom: 0;
}

.right-image {
    grid-template-columns: 1fr 1fr;
}

.right-image .module-content {
    order: 1;
}

.right-image .module-image {
    order: 2;
}

.module-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.module-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-dark);
}

.feature-list i {
    color: var(--success);
    font-size: 1.1rem;
}

.highlight-box {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 10px 30px var(--shadow-light);
    margin-top: 25px;
}

.highlight-box i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.highlight-box p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.highlight-box span {
    font-weight: 600;
    color: var(--primary-color);
}

.image-placeholder {
    background: var(--gradient-primary);
    height: 300px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.image-placeholder i {
    margin-bottom: 20px;
    opacity: 0.8;
}

.image-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(10, 61, 58, 0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2rem;
}

.benefit-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--accent-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-card .avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.user-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.user-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.rating {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.rating i {
    color: #ffc107;
    font-size: 1rem;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Join Section */
.join-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    text-align: center;
}

.join-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--white);
}

.join-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.join-content > p {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.join-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.join-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
}

.join-benefit i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.join-cta {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(176, 139, 89, 0.3);
    margin-bottom: 30px;
}

.join-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(176, 139, 89, 0.4);
}

.join-cta i {
    margin-right: 12px;
}

.join-note {
    font-size: 0.95rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(176, 139, 89, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-philosophy {
    /* 移除grid-column讓它正常排列 */
}

.philosophy-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.philosophy-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(176, 139, 89, 0.1);
    border: 1px solid rgba(176, 139, 89, 0.3);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.philosophy-link:hover {
    background: rgba(176, 139, 89, 0.2);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.philosophy-link i {
    font-size: 1rem;
    color: var(--secondary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: var(--secondary-color);
}

.modal-body {
    padding: 30px;
}

#modalIcon {
    text-align: center;
    margin-bottom: 25px;
}

#modalIcon i {
    font-size: 3rem;
    color: var(--secondary-color);
}

#modalContent h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#modalContent h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

#modalContent h6 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin: 15px 0 8px 0;
}

#modalContent p {
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 15px;
}

#modalContent ul {
    margin: 15px 0;
    padding-left: 20px;
}

#modalContent li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-dark);
}

#modalContent strong {
    color: var(--primary-color);
    font-weight: 600;
}

.quote-box {
    background: var(--accent-color);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    margin: 20px 0;
    text-align: center;
}

.quote-box p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.quote-box span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.highlight-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

.stat {
    text-align: center;
    padding: 15px;
    background: var(--accent-color);
    border-radius: 10px;
    min-width: 120px;
}

.stat h6 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.system-features {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.feature i {
    color: var(--secondary-color);
}

.compound-example {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.compound-example h6 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.compound-example p {
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 15px;
}

.calculation {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.calculation span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 5px;
}

.calculation small {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Fixed CTA Button */
.fixed-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.fixed-cta-btn {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(176, 139, 89, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.fixed-cta:hover {
    transform: translateX(-50%) translateY(-3px);
}

.fixed-cta-btn:hover {
    box-shadow: 0 15px 40px rgba(176, 139, 89, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 100px 20px 50px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .content-module {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .right-image .module-content,
    .right-image .module-image {
        order: unset;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .join-content h2 {
        font-size: 2rem;
    }
    
    .join-content > p {
        font-size: 1.1rem;
    }
    
    .join-benefits {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .philosophy-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .philosophy-link {
        justify-content: center;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .fixed-cta-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .join-content h2 {
        font-size: 1.7rem;
    }
    
    .section-header h2 {
        font-size: 1.7rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: 30px 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .fixed-cta {
        bottom: 15px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 30px);
        max-width: 400px;
    }
    
    .fixed-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 75vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .highlight-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .system-features {
        justify-content: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .fixed-cta {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 50px 0;
    }
}
