:root {
    --primary-color: #2a2a2a;
    --accent-color: #00ff9d;
    --text-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 87vh;
    position: relative;
}

/* 首页样式 */
#home-page {
    display: none; /* 初始状态下隐藏首页 */
    width: 100%;
    padding: 140px;
    transition: transform 0.5s ease;
}

.intro-section {
    flex: 1;
    padding-right: 60px;
    border-right: 2px solid #3d3d3d;
}

.button-section {
    flex: 0 0 300px;
    padding-left: 60px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nav-button {
    background: #1a1a1a;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 18px 30px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-align: left;
}

.nav-button:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateX(10px);
}

.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(22 26 20 / 70%);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
}

.announcement-content {
    background: #1f1f1f;
    width: max-content;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #3d3d3d;
    color: var(--text-color);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
    margin: auto; 
    margin-top: 257px;
    text-align: center;
}

@media (max-width: 768px) {
    .announcement-content {
        margin-left: 37px;
    }
}
.btn-accept {
    margin-top: 20px;
    background: transparent;
    color: var(--accent-color);
    padding: 10px 24px;
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

/* 教程索引页样式 */
#tutorial-page {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    padding: 40px;
    transition: transform 0.5s ease;
}
#about-page {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    padding: 40px;
    transition: transform 0.5s ease;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tutorial-card {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #3d3d3d;
    transition: transform 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-5px);
}

#tools-page {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    padding: 40px;
    transition: transform 0.5s ease;
}
#tools-page.slide-in {
    transform: translateX(-100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    #home-page {
        flex-direction: column;
        padding: 20px;
    }

    .intro-section {
        padding-right: 0;
        border-right: none;
        border-bottom: 2px solid #3d3d3d;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .button-section {
        padding-left: 0;
        flex: 0 0 auto;
    }

    .nav-button {
        width: 100%;
    }
}

/* 过渡动画 */
.slide-out {
    transform: translateX(-100%);
}

.slide-in {
    transform: translateX(-100%);
}

.back-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 500;
    color: var(--accent-color);
    background-color: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 255, 157, 0.3);
}

.btn::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}
.bottom-image {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
    opacity: 0.5;
}
    
/* 底部链接动画 */
.footer-link {
    position: relative;
    color: rgb(0, 189, 73) !important;
    text-decoration: none;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: currentColor;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-link:hover {
    color: #00ff9d !important;
    transform: translateY(-2px);
}

.footer-link:hover::after {
    width: 100%;
    left: 0;
}

:root {
    --green-color: #4CAF50; 
    --yellow-color: #FFEB3B; 
    --red-color: #F44336; 
    --circle-size: 30px; 
    --circle-margin: 20px; 
    --transition-duration: 0.3s; 
}

.circle {
    width: var(--circle-size);
    height: var(--circle-size);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin: var(--circle-margin) auto;
    transition: transform var(--transition-duration), box-shadow var(--transition-duration); 
    cursor: pointer; 
}

.tooltip {
    position: relative;
    display: inline-block;
}
.tooltip .tooltip-content {
    position: absolute;
    bottom: -333%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    min-width: 159px;
    text-align: center;
}
.tooltip:hover .tooltip-content {
    opacity: 1;
}
/* 箭头 */
.tooltip .tooltip-arrow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.8);
}

.circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
}

.green {
    background-color: var(--green-color);
}

.yellow {
    background-color: var(--yellow-color);
}

.red {
    background-color: var(--red-color);
}

.passwordModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    background: #1f1f1f;
    width: 320px;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #3d3d3d;
    margin: 15% auto;
    animation: modalShow 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
}

hr {
    border: none;
    height: 1px;
    background-color: rgba(85, 182, 145, 0.63);
    margin: 20px 0;
    position: relative;
}

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

.modal-header h3 {
    color: var(--accent-color);
    font-size: 1.4em;
    margin-bottom: 5px;
}

.password-input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: #2a2a2a;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.password-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.2);
    outline: none;
}

.modal-footer {
    margin-top: 20px;
    text-align: right;
}

.btn-confirm {
    background: transparent;
    color: var(--accent-color);
    padding: 10px 24px;
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.error-message {
    color: #ff4650;
    font-size: 0.9em;
    height: 20px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(255, 70, 80, 0.2);
}