: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;
    touch-action: pan-y;
}

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

/* 首页样式 */
#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: #29302d;
    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: #00181922;
    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;
    animation: slideUp 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    transform: translateY(20px);    
}

.announcement-content.hide {
    animation: slideDown 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
    will-change: transform, opacity;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@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: 4.5rem;
    transition: transform 0.5s ease;
}

.about-card {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    margin-bottom: 110px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-size: 1.3em;
    line-height: 1.6;
}

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

.tutorial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #3d3d3d;
    transition: transform 0.3s ease;
}

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

.tutorial-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

#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%;
    }

    .about-card {
        padding: 20px;
        max-width: 90%;
        font-size: 1.1em;
        line-height: 1.6;
    }
}

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

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

.back-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 255, 157, 0.1);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 255, 157, 0.2);
}

.back-button:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}
.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;
}

.button {
  margin: 0;
  height: auto;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
}

/* button styling */
.button {
  --border-right: 6px;
  --text-stroke-color: rgba(255,255,255,0.6);
  --animation-color: #37FF8B;
  --fs-size: 1em;
  letter-spacing: 3px;
  text-decoration: none;
  font-size: var(--fs-size);
  font-family: "Arial";
  position: relative;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-stroke-color);
}
/* this is the text, when you hover on button */
.hover-text {
  position: absolute;
  box-sizing: border-box;
  content: attr(data-text);
  color: var(--animation-color);
  width: 0%;
  inset: 0;
  border-right: var(--border-right) solid var(--animation-color);
  overflow: hidden;
  transition: 0.5s;
  -webkit-text-stroke: 1px var(--animation-color);
}
/* hover */
.button:hover .hover-text {
  width: 100%;
  filter: drop-shadow(0 0 23px var(--animation-color))
}

@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;
}

/* 底部链接容器 */
.footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 5px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 100;
}

.footer-links {
    margin: 0 20px;
    border-right: 5px solid transparent;    
}

.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.1);
    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);
}

/* 动态背景效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 255, 157, 0.1) 0%, 
        transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: pulse 8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00e68a;
}

html {
    scroll-behavior: smooth;
}


/* 动态背景效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 255, 157, 0.1) 0%, 
        transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: pulse 8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00e68a;
}

html {
    scroll-behavior: smooth;
}

/* 增强内联元素样式 */
code {
    background: rgba(0, 255, 157, 0.1);
    color: var(--accent-color);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 157, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.3);
}

strong {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.3);
}

del {
    color: rgba(255, 255, 255, 0.5);
    text-decoration-color: var(--accent-color);
}

em {
    color:  #00ff9d;
    font-style: italic;
    text-shadow: 0 0 8px rgb(0, 0, 0);
    transition: all 0.3s ease;
}

em:hover, i:hover {
    color: var(--accent-color);
    text-shadow: 0 0 12px rgba(0, 255, 157, 0.6);
}

/* 动态背景效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 255, 157, 0.1) 0%, 
        transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: pulse 8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00e68a;
}

html {
    scroll-behavior: smooth;
}
/* 动态背景效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 255, 157, 0.1) 0%, 
        transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: pulse 8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 4px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00e68a;
}

html {
    scroll-behavior: smooth;
}

/* 列表项优化样式 */
ul {
    list-style-type: none;
    padding-left: 1.5em;
}

li {
    position: relative;
    padding: 0.5em 0;
    margin: 0.3em 0;
    transition: all 0.3s ease;
}

li::before {
    content: "→";
    position: absolute;
    left: -1.2em;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

li:hover {
    transform: translateX(10px);
    color: var(--accent-color);
}

li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

li code {
    transition: all 0.3s ease;
}

li:hover code {
    background: rgba(0, 255, 157, 0.2);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.3);
}