body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 108%; 
    background-color: #fff;
    cursor: url('zhizhen.ico'), auto;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 2000; 
    opacity: 1;
    animation: fadeOutOverlay 2s ease-out forwards;
    pointer-events: none; 
}

@keyframes fadeOutOverlay {
    0% {
        opacity: 1;
        pointer-events: auto;
    }
    99% {
        opacity: 0.01;
        pointer-events: auto;
    }
    100% {
        opacity: 0;
        pointer-events: none;
    }
}


#container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

canvas { display: block; }

@keyframes cardEntryAnimationVerticalExpand {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scaleY(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scaleY(1); }
}

@keyframes elegantSectionSwitchIn {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.glassmorphism-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px;
    max-height: 88vh;
    background-color: rgba(225, 225, 235, 0.4);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    border-radius: 22px;
    padding: 0;
    z-index: 10;
    color: #383838;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: none;
    box-shadow:
        0px 20px 40px rgba(0, 0, 0, 0.33),
        inset 2.5px 2.5px 5px 0px rgba(255, 255, 255, 0.17),
        inset -3.5px -3.5px 7px 0px rgba(0, 0, 0, 0.26),
        inset -5px -5px 10px 0px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transform-origin: center center;
    animation: cardEntryAnimationVerticalExpand 0.55s cubic-bezier(0.4, 0.0, 0.2, 1) 0.5s both;
}

.card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 25px 10px 25px;
    flex-shrink: 0;
}

.card-header img.avatar {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    border: none;
    outline: none;
    box-shadow: none;
    flex-shrink: 0;
    object-fit: contain;
}

.card-header .user-info { flex-grow: 0; }

.card-main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 22px 10px 22px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.card-main-content::-webkit-scrollbar { display: none; }

.card-section {
    display: none;
    animation: elegantSectionSwitchIn 0.5s cubic-bezier(0.645, 0.045, 0.355, 1.000) both;
}
.card-section.is-active { display: block; }

.card-subtitle {
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.custom-main-title {
    font-size: 1.6em;
    font-weight: 600;
    text-align: center;
    color: #2c3e50;
    margin-top: 3px;
    margin-bottom: 14px;
    line-height: 1.15;
}

.coupon-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    padding: 3px 0;
}

.coupon-code-value {
    font-family: inherit;
    font-size: 1.15em;
    font-weight: 500;
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.35);
    padding: 9px 20px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    cursor: url('zhizhen.ico'), auto;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05),
                inset 0 1px 1px rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    text-shadow: none;
    outline: none;
}

.coupon-code-value .shine-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    opacity: 0;
    transform: skewX(-25deg);
    transition: none;
}

.coupon-code-value:hover .shine-effect {
    width: 150%;
    opacity: 1;
    animation: shineAnimation 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s;
}

@keyframes shineAnimation {
    0% { left: -50%; opacity: 0.5; }
    100% { left: 100%; opacity: 0; }
}

.coupon-code-value:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08),
                inset 0 1px 1px rgba(255,255,255,0.3);
}
.coupon-code-value:active {
    transform: translateY(0px) scale(1.01);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.07);
}

.benefits-heading {
    font-weight: 600;
    font-size: 1.05em;
    color: #34495e;
    margin-top: 14px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.custom-benefits-list {
    list-style: none;
    padding-left: 0;
    margin-top: 6px;
    margin-bottom: 14px;
}

.custom-benefits-list li {
    font-size: 1.0em;
    color: #3A506B;
    font-weight: 400;
    padding: 8px 10px 8px 30px;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    transition: background-color 0.2s ease, color 0.2s ease;
    background: none;
    box-shadow: none;
    border-left: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.custom-benefits-list li::after {
    content: '✔';
    color: #5D78FF;
    font-weight: 600;
    font-size: 1.1em;
    margin-left: 8px;
}

.custom-benefits-list li:last-child {
    border-bottom: none;
}

.custom-benefits-list li:hover {
    background-color: rgba(220, 230, 255, 0.7);
    color: #1a2b38;
    transform: none;
    box-shadow: none;
}

.custom-benefits-list li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 5px;
    height: 5px;
    background-color: #5D78FF;
    border-radius: 1px;
    box-shadow: 0 0 4px rgba(93, 120, 255, 0.3);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease;
}
.custom-benefits-list li:hover::before {
    transform: translateY(-50%) rotate(45deg) scale(1.3);
    background-color: #3A58CC;
}

.additional-guidance {
    font-size: 0.95em;
    color: #555;
    font-weight: 400;
    line-height: 1.55;
    background-color: rgba(205, 216, 235, 0.6);
    padding: 10px;
    border-radius: 6px;
    border-left: 4px solid #5D78FF;
    margin-top: 12px;
    margin-bottom: 16px;
    font-style: normal;
}

.action-button.stylish-blue-button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(145deg, #5D78FF, #3A58CC);
    color: white;
    font-size: 1.0em;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: url('zhizhen.ico'), auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.25s ease;
    box-shadow: 0 4px 12px rgba(93, 120, 255, 0.2),
                inset 0 1px 1px rgba(255,255,255,0.15);
    margin-top: 16px;
    box-sizing: border-box;
}

.action-button.stylish-blue-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(93, 120, 255, 0.3),
                inset 0 1px 1px rgba(255,255,255,0.2);
    background: linear-gradient(145deg, #4A67E6, #2945B3);
}

.action-button.stylish-blue-button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(93, 120, 255, 0.18),
                inset 0 1px 2px rgba(0,0,0,0.08);
}

.search-container {
    margin-bottom: 15px;
    margin-top: 5px;
}

#faqSearchInput {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 7px;
    font-size: 0.95em;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.5);
    color: #333;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#faqSearchInput:focus {
    border-color: #5D78FF;
    box-shadow: 0 0 0 2px rgba(93, 120, 255, 0.2);
}

#faqSearchInput::placeholder {
    color: #888;
}


.faq-list {
    margin-top: 0;
}

.faq-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.faq-item h4 {
    font-size: 1.05em;
    font-weight: 600;
    color: #34495e;
    margin-top: 0;
    margin-bottom: 6px;
}

.faq-item p {
    line-height: 1.6;
    color: #555;
    font-size: 0.95em;
    margin: 0;
    font-weight: 400;
}

.faq-list hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0px;
    margin-bottom: 15px;
}
.faq-list .faq-item:last-child hr {
    display: none;
}
.faq-list .faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}


.contact-subheading {
    font-weight: 600;
    font-size: 1.0em;
    color: #34495e;
    margin-bottom: 6px;
    padding-bottom: 3px;
}

.card-contact-wrapper {
    margin-top: 3px;
}
.card-contact {
    font-size: 0.95em;
    color: #3A506B;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 6px;
}
.card-contact:last-child {
    margin-bottom: 0;
}

.card-contact::before {
    content: '⚠';
    color: #5D78FF;
    margin-right: 10px;
    font-weight: bold;
    
}

.card-buttons {
    display: flex;
    padding: 0;
    border-top: none;
    flex-shrink: 0;
}

.card-buttons button {
    padding: 6px 8px 8px 8px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background-color: transparent;
    color: #495057;
    font-size: 0.9em;
    font-weight: 500;
    cursor: url('zhizhen.ico'), auto;
    transition: color 0.2s ease, border-bottom-color 0.2s ease, background-color 0.2s ease;
    flex-grow: 1;
    margin: 0;
    text-align: center;
    outline: none;
    box-sizing: border-box;
}

.card-buttons button:hover {
    color: #1e1e1e;
    background-color: rgba(173, 216, 230, 0.1);
}

.card-buttons button.is-active {
    color: #5D78FF;
    font-weight: 600;
    border-bottom: 2px solid #5D78FF;
    background: linear-gradient(to bottom,
                rgba(135, 206, 250, 0.12) 0%,
                rgba(173, 216, 230, 0.22) 50%,
                rgba(120, 180, 230, 0.32) 100%
              );
}

.card-content .content-button {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(145deg, #FF8C42, #FF602D);
    color: white;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 36, 0.22),
                inset 0 1px 1px rgba(255,255,255,0.18);
    display: inline-block;
}

.card-content .content-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 107, 36, 0.3),
                inset 0 1px 1px rgba(255,255,255,0.22);
}

.card-content .content-button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(255, 107, 36, 0.18),
                inset 0 1px 2px rgba(0,0,0,0.08);
}


@media (max-width: 768px) {
    .glassmorphism-card {
        width: 90%;
        padding: 0 15px 5px 15px;
        max-height: 90vh;
    }

    .card-header img.avatar {
        width: 70px;
        height: 70px;
    }

    .custom-main-title {
        font-size: 1.4em;
        margin-bottom: 12px;
    }

    .coupon-code-value {
        font-size: 1.05em;
        padding: 8px 18px;
    }

    .benefits-heading {
        font-size: 1.0em;
    }

    .custom-benefits-list li {
        font-size: 0.95em;
        padding: 7px 8px 7px 25px;
    }
    .custom-benefits-list li::before {
        left: 6px;
        width: 4px;
        height: 4px;
    }

    .additional-guidance {
        font-size: 0.9em;
        padding: 8px;
    }

    .action-button.stylish-blue-button {
        font-size: 0.95em;
        padding: 9px 14px;
    }

    #faqSearchInput {
        font-size: 0.9em;
        padding: 9px 12px;
    }

    .faq-item h4 {
        font-size: 1.0em;
    }

    .faq-item p {
        font-size: 0.9em;
    }

    .card-buttons button {
        font-size: 0.85em;
        padding: 5px 6px 7px 6px;
    }
}

@media (max-width: 480px) {
    body, html {
        font-size: 100%;
    }

    .glassmorphism-card {
        width: 95%;
        padding: 0 10px 5px 10px;
    }

    .card-header {
        padding: 10px 15px 8px 15px;
    }

    .card-header img.avatar {
        width: 60px;
        height: 60px;
    }

    .custom-main-title {
        font-size: 1.3em;
    }

    .coupon-code-value {
        font-size: 1.0em;
        padding: 7px 15px;
    }
    
    .benefits-heading {
        font-size: 0.95em;
    }

    .custom-benefits-list li {
        font-size: 0.9em;
    }

    .additional-guidance {
        font-size: 0.85em;
        line-height: 1.5;
    }

    .action-button.stylish-blue-button {
        font-size: 0.9em;
    }
    
    #faqSearchInput {
        font-size: 0.85em;
    }

    .faq-item h4 {
        font-size: 0.95em;
    }

    .faq-item p {
        font-size: 0.85em;
    }
     .card-contact {
        font-size: 0.9em;
    }
    .contact-subheading {
        font-size: 0.95em;
    }
}

.icp-footer {
    position: fixed;
    bottom: 15px;
    left: 50%;
    width: auto;
    transform: translateX(-50%);
    z-index: 100;
    padding: 4px 12px;
    background-color: rgba(225, 225, 235, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px; 
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.icp-footer:hover {
    transform: translateX(-50%) translateY(-2px);
    background-color: rgba(225, 225, 235, 0.4);
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.12);
}

.icp-footer a {
    font-size: 0.68em; 
    font-weight: 500;
    color: rgba(120, 120, 130, 0.8); 
    
    text-decoration: none;
    display: block;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: color 0.3s ease;
}

.icp-footer:hover a {
    color: #2c3e50;
}