:root {
    /* 将森林绿改为商务蓝 */
    --primary-color: #2563eb;  /* 明亮的蓝色 */
    --primary-hover: #1d4ed8;  /* 深蓝色 */
    --gradient-start: #60a5fa; /* 浅蓝色 */
    --gradient-middle: #2563eb; /* 主蓝色 */
    --gradient-end: #1e40af;   /* 深蓝色 */
    
    --text-color: #333;
    --border-color: #ddd;
    --background-light: #f0f9ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

body {
    background: linear-gradient(135deg, 
        #1e3a8a 0%,
        #1e40af 40%,
        #2563eb 100%
    );
    min-height: 100vh; /* 改为最小高度，允许内容超出时滚动 */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden; /* 只隐藏水平滚动条 */
    overflow-y: auto; /* 允许垂直滚动 */
    justify-content: center;
}

/* 优化背景网格效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: center center;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
    animation: backgroundMove 150s linear infinite;
}

/* 添加柔和的光晕效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* 优化浮动点效果 */
.tech-dot {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: float 20s infinite linear;
}

/* 修改点的大小和透明度 */
.tech-dot:nth-child(3n) {
    width: 2px;
    height: 2px;
    opacity: 0.7;
}

.tech-dot:nth-child(3n+1) {
    width: 3px;
    height: 3px;
    opacity: 0.5;
}

.tech-dot:nth-child(3n+2) {
    width: 1px;
    height: 1px;
    opacity: 0.3;
}

/* 优化动画效果 */
@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

/* 移除之前的连接线效果 */
.tech-lines {
    display: none;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.system-title {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 500;
    text-shadow: 1px 1px 2px var(--shadow-color);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background: var(--background-light);
    transform: translateY(-2px);
}

.nav-links a.highlight {
    color: white;
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.nav-links a.highlight:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: var(--background-light);
}

.arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 0.5rem;
}

.dropdown-menu a:hover {
    background: var(--background-light);
    transform: translateX(5px);
}

.main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5% 1rem;
    flex: 1;
    margin-top: 0;
    min-height: 0;
    gap: 3rem;
}

/* 左侧内容区域 */
.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 50%;
}

/* 右侧内容区域 */
.right-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 50%;
}

.ai-graphic {
    flex: 1;
    max-width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    width: 100%;
}

.circle-container {
    width: 350px;
    height: 350px;
    position: relative;
    animation: fadeInScale 0.8s ease-out;
    margin: 0 auto;
}

.circle-item {
    position: absolute;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb);
    border-radius: 12px;
    font-size: 12px;
    text-align: center;
    padding: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    font-weight: 500;
    z-index: 1;
    color: white;
    cursor: pointer;
}

/* 简化的悬停效果 */
.circle-item:hover {
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4),
                inset 0 0 0 2px rgba(255, 255, 255, 0.4);
    z-index: 2;
    filter: brightness(1.1);
}

/* 删除之前的所有其他效果 */
.circle-item::before {
    display: none;
}

.circle-item:nth-child(1) { 
    transform: translate(140px, -140px); 
    background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb);
    color: white;
    border: none;
}
.circle-item:nth-child(2) { 
    transform: translate(240px, -70px);
    background: radial-gradient(circle at 70% 30%, #3b82f6, #1d4ed8);
    color: white;
    border: none;
}
.circle-item:nth-child(3) { 
    transform: translate(240px, 70px);
    background: radial-gradient(circle at 30% 70%, #2563eb, #1e40af);
    color: white;
    border: none;
}
.circle-item:nth-child(4) { 
    transform: translate(140px, 140px);
    background: radial-gradient(circle at 70% 70%, #1d4ed8, #1e3a8a);
    color: white;
    border: none;
}
.circle-item:nth-child(5) { 
    transform: translate(-10px, 140px);
    background: radial-gradient(circle at 30% 30%, #3b82f6, #1e40af);
    color: white;
    border: none;
}
.circle-item:nth-child(6) { 
    transform: translate(-110px, 70px);
    background: radial-gradient(circle at 70% 30%, #2563eb, #1e3a8a);
    color: white;
    border: none;
}
.circle-item:nth-child(7) { 
    transform: translate(-110px, -70px);
    background: radial-gradient(circle at 30% 70%, #60a5fa, #2563eb);
    color: white;
    border: none;
}
.circle-item:nth-child(8) { 
    transform: translate(-10px, -140px);
    background: radial-gradient(circle at 70% 70%, #3b82f6, #60a5fa);
    color: white;
    border: none;
}

.center-ai {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, var(--gradient-start), var(--gradient-middle));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
    box-shadow: 
        0 0 30px rgba(96, 165, 250, 0.4),
        0 0 60px rgba(96, 165, 250, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
    backdrop-filter: blur(8px);
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 40px rgba(32, 191, 107, 0.4); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.login-container {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    margin: 0;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(20px);
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.login-tab {
    padding: 15px 25px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    position: relative;
    user-select: none;
    font-size: 16px;
}

.login-tab:hover {
    color: var(--primary-color);
}

.login-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.input-group {
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(32, 191, 107, 0.1);
}

.login-button {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-button:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.footer {
    text-align: center;
    padding: 0.5rem;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    background: transparent;
    line-height: 1.4;
    margin-top: auto;
    flex-shrink: 0;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .header {
        padding: 0.8rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .system-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-links a,
    .dropdown-toggle {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0.5rem;
        width: 100%;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        transform: none;
        display: block;
    }

    .dropdown-menu a {
        text-align: center;
        margin: 0;
        padding: 0.8rem;
    }

    .main-content {
        margin-top: 0;
        flex-direction: column-reverse; /* 让登录窗口在上方 */
        padding: 1rem;
        min-height: auto;
        gap: 1rem; /* 减少间距 */
    }
    
    .left-content {
        max-width: 100%;
        align-items: center;
        text-align: center;
        order: 2; /* 确保标题在下方 */
    }
    
    .right-content {
        max-width: 100%;
        order: 1; /* 确保登录窗口在上方 */
    }

    .login-container {
        margin-top: 0.5rem; /* 减少顶部间距，因为现在在顶部 */
        width: 100%;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .input-group input {
        padding: 12px 14px;
    }

    .login-button {
        padding: 12px;
    }

    .footer {
        padding: 1rem;
        font-size: 12px;
    }

    @media (hover: none) {
        .nav-links a:hover,
        .dropdown-toggle:hover,
        .dropdown-menu a:hover,
        .login-button:hover,
        .login-container:hover {
            transform: none;
        }

        .nav-links a:active,
        .dropdown-toggle:active,
        .dropdown-menu a:active,
        .login-button:active {
            opacity: 0.7;
        }
    }

    .ai-graphic {
        display: none;
    }
}

@media (max-width: 480px) {
    .system-title {
        font-size: 1.2rem;
    }

    .login-container {
        padding: 1.2rem;
        width: 95%;
    }

    .login-header h2 {
        font-size: 1.3rem;
    }

    .input-group {
        margin-bottom: 1rem;
    }

    .footer {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    body {
        min-height: 100vh; /* 改为最小高度，允许滚动 */
        overflow-x: hidden; /* 只隐藏水平滚动条 */
        overflow-y: auto; /* 允许垂直滚动 */
    }
    
    .header {
        padding: 0.5rem;
    }

    .main-content {
        padding: 0.5rem;
        min-height: auto;
        flex: 1;
    }

    .login-container {
        padding: 1rem;
        margin-top: 1rem;
    }

    .login-header {
        margin-bottom: 1rem;
    }

    .input-group {
        margin-bottom: 0.8rem;
    }

    .footer {
        padding: 0.3rem;
        font-size: 10px;
    }
    
    .ai-graphic {
        margin-top: 2rem;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e1e1e1;
        --border-color: #404040;
        --background-light: rgba(255, 255, 255, 0.05);
    }

    .header,
    .login-container,
    .footer {
        background: rgba(30, 30, 30, 0.95);
    }

    .dropdown-menu {
        background: rgba(40, 40, 40, 0.95);
    }

    .input-group input {
        background: rgba(0, 0, 0, 0.2);
        color: var(--text-color);
    }

    .input-group input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
}

.contact-info {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
}

.contact-info a,
.contact-info span,
.contact-info button {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.contact-info .highlight {
    background: var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.contact-info .highlight:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.contact-info .dropdown {
    position: relative;
    display: inline-block;
}

.contact-info .dropdown-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.contact-info .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-info .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.contact-info .dropdown-menu a {
    color: var(--text-color);
    padding: 8px 16px;
    display: block;
    transition: all 0.3s;
}

.contact-info .dropdown-menu a:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.contact-info .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-info {
        position: static;
        flex-direction: row; /* 改为水平排列，确保按钮可见 */
        align-items: center;
        justify-content: center;
        padding: 1rem;
        background: rgba(0,0,0,0.1);
        gap: 10px; /* 按钮之间的间距 */
        flex-wrap: wrap; /* 允许换行 */
        border-radius: 8px;
        margin: 1rem;
    }

    .contact-info .dropdown {
        width: auto; /* 改为自动宽度，适应内容 */
        flex: 1; /* 允许弹性调整 */
        min-width: 120px; /* 最小宽度确保按钮可见 */
    }

    .contact-info .dropdown-toggle {
        width: 100%;
        justify-content: center;
        padding: 8px 12px; /* 增加内边距 */
    }

    .contact-info .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 4px;
        display: none;
    }

    .contact-info .dropdown:hover .dropdown-menu {
        display: block;
    }

    .contact-info .highlight {
        text-align: center;
        flex: 1; /* 允许弹性调整 */
        min-width: 120px; /* 最小宽度确保按钮可见 */
    }

    .contact-info .more-services-btn {
        flex: 1; /* 允许弹性调整 */
        min-width: 120px; /* 最小宽度确保按钮可见 */
        padding: 8px 12px; /* 增加内边距 */
    }

    .contact-info span {
        text-align: center;
        margin-top: 8px;
    }
}

.system-title-container {
    color: white;
    margin-top: -2rem; /* 向上移动标题 */
    margin-bottom: 1rem; /* 减少底部间距 */
    margin-left: 0;
    text-align: left;
    width: 100%;
}

.system-title-container h1 {
    font-size: 2.8rem;
    margin-bottom: 8px; /* 减少标题和副标题之间的间距 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3),
                 0 0 20px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #ffffff;
}

.system-title-container p {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-left: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

@media (max-width: 768px) {
    .system-title-container {
        margin-left: 0;
        margin-top: -1.5rem; /* 平板端向上移动 */
        margin-bottom: 0.5rem; /* 进一步减少小屏幕上的底部间距 */
        text-align: center;
    }

    .system-title-container h1 {
        font-size: 2rem;
        margin-bottom: 5px; /* 减少小屏幕上标题和副标题的间距 */
    }

    .system-title-container p {
        font-size: 1.2rem;
        margin-bottom: 0; /* 移除副标题的底部间距 */
    }
}

@media (max-width: 768px) {
    .ai-graphic {
        margin-top: 0.5rem; /* 减少AI动画区域的顶部间距 */
    }
    
    .circle-container {
        width: 280px; /* 稍微减小尺寸 */
        height: 280px;
    }
    
    .circle-item {
        width: 75px; /* 稍微减小圆圈大小 */
        height: 75px;
        font-size: 9px; /* 稍微减小字体 */
        padding: 6px;
    }
    
    .ai-graphic img {
        width: 250px;
        height: 250px;
    }
    .ai-graphic img[src*="placeholder"] {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .system-title-container {
        margin-top: -1rem; /* 手机端向上移动 */
        margin-bottom: 0.3rem; /* 手机端进一步减少间距 */
    }
    
    .system-title-container h1 {
        font-size: 1.8rem; /* 手机端稍微减小标题字体 */
        margin-bottom: 3px;
    }
    
    .system-title-container p {
        font-size: 1rem; /* 手机端稍微减小副标题字体 */
    }
    
    .circle-container {
        width: 220px; /* 手机端进一步减小 */
        height: 220px;
    }
    
    .circle-item {
        width: 60px; /* 手机端进一步减小圆圈 */
        height: 60px;
        font-size: 8px;
        padding: 4px;
    }
    
    /* 确保contact-info在手机端正常显示 */
    .contact-info {
        flex-direction: column; /* 手机端改为垂直排列 */
        gap: 8px;
        padding: 0.8rem;
    }
    
    .contact-info .highlight,
    .contact-info .more-services-btn,
    .contact-info .dropdown {
        width: 100%;
        min-width: auto;
    }
    
    .ai-graphic img {
        width: 200px;
        height: 200px;
    }
}

/* 滑块验证器样式 */
.slider-container {
    margin: 20px 0;
    background-color: #f5f5f5;
    position: relative;
    border-radius: 6px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    user-select: none;
    color: #666;
    overflow: hidden;
    z-index: 11;
    border: 1px solid #e5e5e5;
}

.slider-mask {
    position: absolute;
    left: 0;
    top: 0;
    height: 40px;
    border-radius: 6px;
    background-color: rgba(37, 99, 235, 0.1);
    width: 0;
    transition: width 0.3s;
    z-index: 12;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 40px;
    background: var(--primary-color);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transition: background .2s;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 13;
    touch-action: none;
}

.slider-text {
    position: relative;
    z-index: 10;
}

/* 添加滑块激活状态样式 */
.slider:active {
    cursor: grabbing;
    background: var(--primary-hover);
}

.slider-container.success .slider {
    background: #52ccba;
}

.slider-container.success .slider-mask {
    background-color: rgba(82, 204, 186, 0.1);
}

/* 拼图验证样式 */
.verify-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.verify-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 320px;
}

.verify-image-container {
    position: relative;
    width: 280px;
    height: 200px;
    margin: 20px auto;
    background: #f5f5f5;
    overflow: hidden;
}

.verify-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verify-puzzle-slot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.verify-puzzle {
    position: absolute;
    width: 40px;
    height: 40px;
    background-size: 280px 200px;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.verify-puzzle:hover {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.verify-title {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

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

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

/* 添加动画效果 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.circle-item {
    animation: fadeInScale 0.8s ease-out backwards;
}

.circle-item:nth-child(1) { animation-delay: 0.1s; }
.circle-item:nth-child(2) { animation-delay: 0.2s; }
.circle-item:nth-child(3) { animation-delay: 0.3s; }
.circle-item:nth-child(4) { animation-delay: 0.4s; }
.circle-item:nth-child(5) { animation-delay: 0.5s; }
.circle-item:nth-child(6) { animation-delay: 0.6s; }
.circle-item:nth-child(7) { animation-delay: 0.7s; }
.circle-item:nth-child(8) { animation-delay: 0.8s; }

/* 添加视频菜单相关样式 */
.video-menu {
    min-width: 200px; /* 确保菜单宽度足够 */
}

.video-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 16px !important;
}

.video-icon {
    color: var(--primary-color);
    font-size: 14px;
}

/* 错误提示样式 */
.error-message {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border-left: 4px solid #d32f2f;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 密码可见性切换按钮样式 */
.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: all 0.2s;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.eye-icon {
    font-size: 16px;
    opacity: 0.7;
}

/* 调整输入框内边距，为密码切换按钮留出空间 */
.password-group input[type="password"],
.password-group input[type="text"] {
    padding-right: 40px;
}

/* 更多服务按钮样式 - 参考启动识别端按钮 */
.more-services-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.more-services-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* 更多服务弹窗样式 */
.more-services-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.more-services-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.more-services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
}

.more-services-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.more-services-close {
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.more-services-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.more-services-content {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 22px;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-name {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .more-services-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .more-services-header {
        padding: 16px 20px;
    }
    
    .more-services-header h3 {
        font-size: 18px;
    }
    
    .more-services-content {
        padding: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 8px;
    }
    
    .service-item {
        padding: 10px 6px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .service-item:hover {
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15), 0 3px 8px rgba(0, 0, 0, 0.1);
    }
    
    .service-icon {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .service-name {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .service-item {
        padding: 8px 4px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .service-item:hover {
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    
    .service-icon {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .service-name {
        font-size: 10px;
    }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .error-message {
        background-color: rgba(211, 47, 47, 0.2);
        color: #ff6b6b;
    }
    
    .password-toggle {
        color: #aaa;
    }
    
    .more-services-container {
        background: rgba(30, 30, 30, 0.95);
        color: var(--text-color);
    }
    
    .more-services-header {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    }
    
    .service-item {
        background: rgba(40, 40, 40, 0.8);
        color: var(--text-color);
    }
    
    .service-item:hover {
        background: rgba(60, 60, 60, 0.8);
    }
} 