body {
    margin: 0;
    background: #f6f7ef;
    font-family: "Poppins", sans-serif;
    color: #1a4c2d;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(246, 247, 239, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 2px solid #a8cfa2;
    white-space: nowrap;
}

.logo-link {
    text-decoration: none;
    font-size: 26px;
    font-weight: 700;
    color: transparent;
}

.logo-link.gradient-logo {
    background: linear-gradient(90deg, #00b52a, #029335, #006d33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-link.gradient-logo:hover {
    filter: brightness(1.15);
}

.menu {
    display: flex;
    gap: 40px; 
}

.menu a {
    position: relative;
    color: #205c36;
    text-decoration: none;
    font-weight: 550;
    font-size: 18px;
    padding-bottom: 6px; 
    transition: color 0.25s ease;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0; 
    width: 100%;
    height: 2px;
    background: #3a8c59;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.menu a:hover::after {
    transform: scaleX(1);
}

.menu a:hover {
    color: #3a8c59;
}

.actions {
    display: flex;
    gap: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* Hero */
.hero {
    text-align: center;
    padding-top: 100px;
}

.hero h1 {
    font-size: 50px;
    font-weight: 800;
    color: #1b6b39;
    margin-top: 40px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 30px;
    color: #2f5f40;
    margin-bottom: 15px;
}

.hero-illustration {
    overflow: hidden;
    width: 60%;
    max-height: 820px;
    margin: 0 auto;
    border-radius: 20px;
    border: 2px dashed #bcd8b7;
    background: #eaf3e4;
    opacity: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #739b73;
    font-size: 20px;
}

.hero-illustration::after {
    content: "（插圖區）";
    opacity: 0.5;
}

/* Mini Icons */
.mini-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 25px;
}

.mini-box {
    width: 60px;
    height: 60px;
    border: 2px solid #a8cfa2;
    border-radius: 12px;
    background: #ffffff;
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(2, 600px);
    grid-template-rows: repeat(2, 400px);
    gap: 80px;
    justify-content: center;
    margin: 80px 0;
}

.feature-card {
    position: relative;
    background: linear-gradient(
        to top,
        rgba(125, 212, 96, 0.7) 0%,
        rgba(200, 235, 200, 0.0) 40%
    ), 
    #ffffff;

    border: 1.5px solid #a8cfa2;
    border-radius: 16px;
    padding: 40px 0;
}


.feature-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(
        to top,
        rgba(125, 212, 96, 0.7) 0%,
        rgba(200, 235, 200, 0.0) 100%
    ), 
    #ffffff;

    border: 1.5px solid #a8cfa2;
    border-radius: 16px;
    padding: 40px 0;
}


/* Footer */
.deep-footer {
    background: #0f3a23;
    color: #e8f5e9;
    padding: 50px 20px 20px;
    margin-top: 80px;
}

.footer-grid {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.footer-logo-link {
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.footer-logo-link:hover {
    color: #c4ebcf;
}

.footer-text p {
    margin: 5px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #c4ebcf;
}

.footer-copy-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 15px;
    opacity: 0.75;
}

@media (max-width: 830px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }
}

/* Contact */
.contact-hero {
    text-align: center;
    margin-top: 150px;
    margin-bottom: 40px;
}

.contact-hero h1 {
    font-size: 48px;
    color: #1a4c2d;
}

.contact-hero p {
    font-size: 20px;
    color: #3c6e4a;
}

.contact-form-section {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.contact-form {
    background: #ffffff;
    border: 2px solid #a8cfa2;
    border-radius: 20px;
    padding: 40px;
    width: 520px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form label {
    font-size: 18px;
    color: #1a4c2d;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid #bcd8b7;
    font-size: 16px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #6ba87b;
}

.contact-form button {
    margin-top: 10px;
    padding: 15px;
    font-size: 20px;
    background: #1c6d39;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s;
}

.contact-form button:hover {
    background: #14512b;
}

/* About */
.about-hero {
    text-align: center;
    margin-top: 150px;
    margin-bottom: 40px;
}

.about-hero h1 {
    font-size: 48px;
    color: #1a4c2d;
}

.about-hero p {
    font-size: 20px;
    color: #3c6e4a;
}

.about-section {
    max-width: 1200px;
    margin: 40px auto 100px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-text h2 {
    font-size: 28px;
    color: #205c36;
    margin-bottom: 12px;
}

.about-text p {
    font-size: 18px;
    color: #2f4f3f;
    line-height: 1.7;
    margin-bottom: 25px;
}

.about-text ul {
    padding-left: 20px;
    margin-bottom: 30px;
}

.about-text li {
    font-size: 18px;
    color: #254f36;
    margin-bottom: 10px;
}

.about-img-block {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    border: 2px solid #a8cfa2;
    background: #eaf3e4;
    padding: 10px;
}

/* Calculator */
.calc-hero {
    text-align: center;
    margin-top: 150px;
    margin-bottom: 40px;
}

.calc-hero h1 {
    font-size: 48px;
    color: #1a4c2d;
}

.calc-hero p {
    font-size: 20px;
    color: #3c6e4a;
}

.calculator-section {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.calc-card {
    width: 450px;
    background: #ffffff;
    border: 2px solid #a8cfa2;
    border-radius: 20px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.calc-card h2 {
    font-size: 26px;
    color: #205c36;
    margin-bottom: 5px;
}

.calc-card label {
    font-size: 18px;
    color: #1a4c2d;
}

.calc-card input,
.calc-card select {
    padding: 14px;
    border: 2px solid #bcd8b7;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
}

.calc-card input:focus,
.calc-card select:focus {
    border-color: #6ba87b;
}

.calc-card button {
    margin-top: 10px;
    padding: 14px;
    font-size: 20px;
    background: #1c6d39;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s;
}

.calc-card button:hover {
    background: #14512b;
}

.calc-result {
    margin-top: 15px;
    background: #eaf3e4;
    border: 2px solid #bcd8b7;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    display: none;
}

.calc-result span {
    font-weight: bold;
    color: #1a4c2d;
}

/* Game */
.game-hero {
    text-align: center;
    margin-top: 150px;
    margin-bottom: 20px;
}

.game-hero h1 {
    font-size: 48px;
    color: #1a4c2d;
}

.game-hero p {
    font-size: 20px;
    color: #3c6e4a;
}

.game-container {
    position: relative;
    width: 80%;
    height: 450px;
    margin: 0 auto 90px auto;
    background: #ffffff;
    border: 2px solid #a8cfa2;
    border-radius: 20px;
    overflow: hidden;
}

.scoreboard {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    font-size: 22px;
    color: #205c36;
    font-weight: bold;
}

#leaf {
    position: absolute;
    font-size: 50px;
    cursor: pointer;
    transition: 0.1s;
}

/* Case */
.case-container {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.case-block {
    display: flex;
    align-items: center;
    gap: 40px;
}

.case-img {
    width: 300px;
    border-radius: 12px;
}

.case-text h2 {
    font-size: 32px;
    color: #1c6d39;
    margin-bottom: 10px;
}

.case-text p {
    font-size: 20px;
    line-height: 1.6;
    color: #2f5f40;
}

/* Card */
.card-container {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.card-buttons {
    position: absolute;
    left: 20px;
    bottom: 20px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-buttons a {
    padding: 6px 16px;
    font-size:40px;
    border-radius: 8px;
    color: #316e34;
    text-decoration: none;

    backdrop-filter: blur(2px);
    transition: all 0.25s ease;
}

.card-buttons a:hover {
    background:rgba(255, 255, 255, 1);
    border: 1.5px solid #1e4121;
    color: #316e34;
    transform: translateY(-2px);
}

