﻿html {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    background: #fff;
    overflow-y: auto;
}


.txt-disable {
    background: #ddd;
}

.tcenter {
    text-align: center;
}

/*iframe 里面的 container*/
.subframe-container {
    padding: 10px;
}

#divLoading {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #f3f3f3;
    z-index: 100000000;
    opacity: 1;
}

.v-flex {
    display: flex;
    align-items: center;

    .v-flex-1 {
        flex: 1;
    }
}

.global-head-img {
    width: 44px;
    height: 44px;
}


.table-global {
    width: 82%;
    margin: 0 auto;
    margin-top: 10px;
}

.table-global tr td {
    padding: 5px;
}

.table-global .update-col {
    border: 1px solid #f1f1f1;
    padding: 5px 7px;
    border-radius: 2px;
    position: relative;
}

.table-global .update-col input,
textarea {
    outline: none;
    border: none;
    width: 100%;
    resize: none;
    font-family: inherit;
}

.color999 {
    color: #999;
}

.color333 {
    color: #333;
}

.font12 {
    font-size: 12px;
}

.font13 {
    font-size: 13px;
}

.textright {
    text-align: right;
}

.margintop40 {
    margin-top: 40px;
}

.margin-right-20 {
    margin-right: 20px;
}

.padding-10 {
    padding: 10px;
}

.primary-btn {
    background-color: #007ffa;
    box-shadow: none;
    width: 90px;
    height: 30px;
    line-height: 30px;
    cursor: pointer;
    color: white;
    outline: none;
    border-radius: 4px;
    border: none;
}

.primary-btn-default {
    background-color: #edeff3;
    color: #333;
}

.primary-btn-color {
    border: 1px solid #f1f1f1;
    background-color: #fff;
    color: #666;
    border-radius: 4px;
    font-size: 14px;
    height: 36px;
    line-height: 36px;
}

.primary-btn-color:hover {
    background-color: #4c94ff;
    color: #fff;
}

.primary-btn-f1 {
    background-color: #007ffa;
    color: #fff;
}

.primary-btn-f1:hover {
    background-color: #4c94ff;
    color: #fff;
}


.flex-column {
    display: flex;
    flex-direction: column;
}

.flex {
    display: flex;
}

.flex-align {
    display: flex;
    align-items: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-ali-center {
    align-items: center;
}

.flex-1 {
    flex: 1;
}

.label {
    display: inline;
    padding: 5px 15px;
    font-size: 16px;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25em;
}

.label-default {
    background-color: #777;
}

.label-primary {
    background-color: #337ab7;
}

.label-success {
    background-color: #5cb85c;
}

.label-info {
    background-color: #5bc0de;
}

.label-warning {
    background-color: #f0ad4e;
}

.label-danger {
    background-color: #d9534f;
}


/*搜索框*/
.search-box {
    position: relative;

    input[type=text] {
        outline: none;
        border: none;
        padding: 7px 20px;
        border-radius: 15px;
        background: #ddd;
        font-size: 12px;
        width: 200px;
    }

    img {
        width: 24px;
        height: 24px;
        position: absolute;
        right: 5px;
        top: 2px;
    }
}

.layer-popup {
    display: none;
    padding: 20px;

    .btn-box {
        text-align: center;
        margin-top: 50px;

        button {
            width: 80px;
        }
    }
}

.popup-labtory-details {
    .thumb {
        text-align: center;
        margin-bottom: 20px;

        img {
            width: 80%;
        }
    }

    .description {
        text-indent: 2em;
        padding: 15px;
    }
}

.v-nav {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    margin-left: 10px;
    align-items: center;

    .btn-box {
        border-right: 1px solid #ddd;
        margin-right: 10px;
        padding-right: 10px;

        button {
            width: 60px;
        }
    }

    a {}

    span {
        margin-left: 2px;
        margin-right: 4px;
    }
}

.labtory-container {
    .bga {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: #211414;
        opacity: 0;
        transition: opacity 1.2s;
    }

    .btn-container {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;

        .btn-box {
            width: 52px;
            padding: 7px;
            opacity: 1;
            display: flex;
            flex-direction: column;
            margin: 0 auto;
            align-items: center;
            height: 100%;
            justify-content: center;
            position: absolute;
            left: 50%;
            margin-left: -26px;
            opacity: 0;
            transition: opacity 0.5s;

            a {
                background: white;
                padding: 6px 12px;
                border-bottom: 1px solid #bba9a9;
                width: 70px;
            }

            &:hover {
                color: #1E9FFF;
            }
        }
    }

    .brand-title {
        margin-top: 30px;
    }

    .brand-item {
        text-align: center;
        background: white;
        padding: 10px;
        cursor: pointer;
        border-radius: 10px;
        width: 100%;
        height: 180px;
        box-shadow: 3px 3px 3px 3px rgba(216, 215, 215, 0.5);
        border: 2px solid transparent;
        position: relative;

        img {
            height: 150px;
            max-width: 100%;
        }

        .img-name {
            display: inline-block;
            text-align: center;
            margin-top: 5px;
            font-size: 18px;
            width: 280px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        &:hover {

            .bga {
                opacity: 0.5;
            }

            .btn-container {
                display: block;
            }

            .btn-box {
                opacity: 1;
            }
        }

        .brand-item-select {
            border: 2px solid #1E9FFF;
        }
    }
}

/*覆盖 Layui 样式*/
.layui-layer-close2 {
    right: -17px !important;
    top: -17px !important;
}

//.layui-tab {
//    .layui-tab-content {
//        .layui-tab-item {
//            position: absolute;
//            visibility: hidden;
//            display: unset !important;
//        }

//        .layui-show {
//            position: unset;
//            visibility: visible;
//            display: unset !important;
//        }
//    }
//}

.layui-tab-content {
    position: relative;
    height: 100%;
    /* 或者固定高度，例如 100vh */

    .layui-tab-item {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        visibility: hidden;
        display: unset !important;
    }

    .layui-show {
        visibility: visible;
        z-index: 1;
    }
}


.txt-copy {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 1px;
    height: 1px;
}

/* =========================================
   Modern & Kid-Friendly Redesign Styles
   Theme: Playful Learning
   ========================================= */

@color-primary: #4FACFE;
@color-secondary: #00F2FE;
@color-accent: #FF5858;
@color-yellow: #FFD700;
@color-text: #2c3e50;
@color-bg: #F0F4F8;

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 20px 60px;
    text-align: center;
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    border-radius: 0 0 50% 50% / 40px;
    margin-bottom: 60px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(161, 196, 253, 0.3);

    h1 {
        font-size: 3.5rem;
        font-weight: 800;
        color: #3f658b;
        margin-bottom: 20px;
        animation: fadeInUp 0.8s ease-out;
    }

    .hero-slogan {
        font-size: 1.5rem;
        color: #34495e;
        margin-bottom: 15px;
        animation: fadeInUp 0.8s ease-out 0.2s backwards;
    }

    .hero-desc {
        font-size: 1.1rem;
        color: #536b84;
        max-width: 600px;
        margin: 0 auto 40px;
        animation: fadeInUp 0.8s ease-out 0.4s backwards;
    }

    .cta-button {
        display: inline-block;
        padding: 15px 40px;
        background: #fff;
        color: @color-primary;
        font-size: 1.2rem;
        font-weight: bold;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        animation: bounceIn 1s ease 0.6s backwards;

        &:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            color: @color-accent;
        }
    }

    /* Decorative Background Elements */
    .decoration {
        position: absolute;
        opacity: 0.6;
        z-index: 0;
        animation: float 6s ease-in-out infinite;

        &.cloud-1 {
            top: 10%;
            left: 5%;
            font-size: 4rem;
            animation-delay: 0s;
        }

        &.cloud-2 {
            top: 20%;
            right: 10%;
            font-size: 3rem;
            animation-delay: 2s;
        }

        &.star-1 {
            bottom: 30%;
            left: 15%;
            font-size: 2rem;
            color: @color-yellow;
            animation-delay: 1s;
        }

        &.balloon-1 {
            top: 15%;
            right: 25%;
            font-size: 5rem;
            animation-delay: 3s;
        }
    }
}

/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;

    h2 {
        text-align: center;
        font-size: 2.5rem;
        color: @color-primary;
        margin-bottom: 50px;
        position: relative;
        display: inline-block;
        left: 50%;
        transform: translateX(-50%);

        &::after {
            content: '';
            display: block;
            width: 60%;
            height: 4px;
            background: @color-accent;
            margin: 10px auto 0;
            border-radius: 2px;
        }
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }

    .feature-card {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        padding: 30px;
        border-radius: 20px;
        text-align: center;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);

        &:hover {
            transform: translateY(-10px);
            border-color: @color-primary;
            box-shadow: 0 15px 30px rgba(79, 172, 254, 0.2);

            .icon {
                animation: wiggle 0.5s ease-in-out infinite;
            }
        }

        .icon {
            font-size: 3.5rem;
            margin-bottom: 20px;
            display: inline-block;
        }

        h3 {
            font-size: 1.4rem;
            color: @color-text;
            margin-bottom: 15px;
        }

        p {
            color: #666;
            line-height: 1.6;
        }
    }
}

/* Stats / Fun Section */
.fun-section {
    background: #fff;
    padding: 60px 20px;
    margin-bottom: 60px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    text-align: center;

    .fun-grid {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        max-width: 1000px;
        margin: 0 auto;
    }

    .fun-item {
        margin: 20px;

        .number {
            font-size: 3rem;
            font-weight: 900;
            color: @color-accent;
            display: block;
        }

        .label {
            font-size: 1.1rem;
            color: #888;
            background: none;
            /* Override existing label class */
            padding: 0;
        }
    }
}

/* Partners Section */
.partners-section {
    text-align: center;
    padding-bottom: 80px;

    h2 {
        font-size: 2rem;
        color: #333;
        margin-bottom: 40px;
    }

    .partners-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        max-width: 1000px;
        margin: 0 auto;
    }

    .partner-badge {
        background: #fff;
        padding: 10px 25px;
        border-radius: 50px;
        font-size: 0.9rem;
        color: #555;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        border: 1px solid #eee;
        transition: all 0.3s;

        &:hover {
            transform: scale(1.1);
            background: @color-secondary;
            color: #fff;
            border-color: transparent;
        }
    }
}