/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft Yahei', 'Inter', sans-serif;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
    /* 白色渐变背景 */
    background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
    background-attachment: fixed;
}

/* 容器样式 - 保证全屏适配 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

/* Logo链接 - 完全贴边 */
.logo-link {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    padding-left: 10px;
}

.header-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #8BC34A;
    /* 科技感渐变文字 */
    background: linear-gradient(90deg, #8BC34A, #0cc0df);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin: 0 10px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #8BC34A;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8BC34A;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: #8BC34A;
}

.nav-menu a.active::after {
    width: 100%;
}

/* 登录/注册按钮样式 */
.auth-buttons {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.login-btn,
.register-btn {
    padding: 8px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.login-btn {
    background: transparent;
    color: #8BC34A;
    border: 2px solid #8BC34A;
}

.login-btn:hover {
    background: rgba(22, 93, 255, 0.1);
    transform: translateY(-2px);
}

.register-btn {
    background: linear-gradient(90deg, #8BC34A, #0cc0df);
    color: white;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 93, 255, 0.3);
    color: white !important;
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 登录/注册模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.modal h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.form-group label {
    min-width: 90px;
    margin-bottom: 0;
    margin-right: 15px;
    color: #666;
    font-size: 14px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: #8BC34A;
    outline: none;
}

.modal-content-register {
    max-width: 500px;
}

/* 服务条款弹窗 */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.service-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.service-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.close-service-modal {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    line-height: 1;
}

.close-service-modal:hover {
    color: #333;
}

.service-modal-body {
    padding: 25px;
    overflow-y: auto;
    line-height: 1.8;
    color: #666;
    font-size: 14px;
}

.service-modal-body p {
    margin-bottom: 10px;
}

.service-modal-body strong {
    color: #333;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.modal-btn.primary {
    background: linear-gradient(90deg, #8BC34A, #0cc0df);
    color: white;
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 93, 255, 0.3);
}

.modal-btn.secondary {
    background: transparent;
    color: #8BC34A;
    border: 2px solid #8BC34A;
}

.modal-btn.secondary:hover {
    background: rgba(22, 93, 255, 0.1);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.form-footer a {
    color: #8BC34A;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.form-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #999;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.form-divider span {
    padding: 0 15px;
}

/* 底部样式 */
footer {
    background: #1a1a2e;
    padding: 60px 0 20px;
    width: 100%;
    color: #ccc;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #8BC34A;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    text-decoration: none;
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #8BC34A;
}

.footer-col p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #8BC34A;
    transform: translateY(-3px);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #8BC34A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 99;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0cc0df;
    transform: translateY(-5px);
}

/* 响应式样式 */
@media (max-width: 992px) {
    .carousel-item h1 {
        font-size: 36px;
    }

    .carousel-item p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {

    /* 移动端导航 */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: left 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .auth-buttons {
        flex-direction: column;
        width: 80%;
        margin-top: 20px;
        gap: 15px;
    }

    .login-btn,
    .register-btn {
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    /* 轮播图适配 */
    .carousel {
        height: calc(100vh - 80px);
        min-height: 400px;
    }

    .carousel-item h1 {
        font-size: 28px;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        margin-bottom: 30px;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 18px;
    }

    .carousel-item h1 {
        font-size: 24px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group label {
        text-align: left;
        margin-bottom: 8px;
    }

    .modal-content-register {
        max-width: 400px;
    }
}


/*logo svg 样式*/
@font-face {
    font-family: 'icomoon';
    src: url('/static/site/fonts/icomoon.eot?h0nn3p');
    src: url('/static/site/fonts/icomoon.eot?h0nn3p#iefix') format('embedded-opentype'),
        url('/static/site/fonts/icomoon.ttf?h0nn3p') format('truetype'),
        url('/static/site/fonts/icomoon.woff?h0nn3p') format('woff'),
        url('/static/site/fonts/icomoon.svg?h0nn3p#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

[class^="icon-"],
[class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    /*  line-height: 1;*/

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-logo:before {
    content: "\e900";
}

.icon-tab:before {
    content: "\ea45";
}

.icon-sort-numeric-asc:before {
    content: "\ea4a";
}

.icon-sort-numberic-desc:before {
    content: "\ea4b";
}

.icon-icon-arrow-right:before {
    content: "\ea50";
}

.icon-icon-arrow-left:before {
    content: "\ea51";
}
