:root {
    --primary-color: #4a6cf7;
    --primary-dark: #3151e1;
    --secondary-color: #2c3e50;
    --accent-color: #ff6b6b;
    --accent-hover: #ff5252;
    --text-color: #333;
    --light-gray: #f8fafc;
    --dark-gray: #4a5568;
    --success-color: #2ecc71;
    --white: #ffffff;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 页面布局 */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    max-width: 100%;
}

/* 侧边栏样式 */
.sidebar {
    width: 220px;
    min-width: 220px;
    background-color: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
    overflow-y: auto;
    padding: 20px 0;
}

.nav-menu {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    margin-bottom: 5px;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(74, 108, 247, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-link i {
    margin-right: 10px;
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

.nav-link span {
    font-size: 0.95em;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    padding: 20px;
    position: relative;
    width: calc(100% - 220px);
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: 15px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    overflow: hidden;
}

/* 新的区域容器，用于包裹所有指南步骤 */
.guide-sections-container {
    padding: 0 20px;
    position: relative;
}

header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    color: var(--white);
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    margin-bottom: 30px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 指南部分 */
.guide-section {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border-top: 3px solid transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: calc(0.1s * var(--section-index, 1));
    margin-bottom: 25px;
    padding: 25px 25px 25px 40px;
}

.guide-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-color);
}

.guide-section:nth-child(1) { --section-index: 1; }
.guide-section:nth-child(2) { --section-index: 2; }
.guide-section:nth-child(3) { --section-index: 3; }
.guide-section:nth-child(4) { --section-index: 4; }
.guide-section:nth-child(5) { --section-index: 5; }

.step-number {
    position: absolute;
    top: 15px;
    left: -20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), #ff8f8f);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    transition: var(--transition);
    z-index: 5;
}

.guide-section:hover .step-number {
    transform: rotate(360deg) scale(1.1);
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
    display: inline-block;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.guide-section:hover h2::after {
    transform: scaleX(1);
}

p {
    margin-bottom: 12px;
    font-size: 0.95em;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* 添加图片容器和图片样式 */
.image-container {
    margin: 20px 0;
    text-align: center;
}

.guide-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--text-secondary);
    font-style: italic;
}

/* 步骤列表样式 */
.step-list {
    margin: 20px 0;
    padding-left: 25px;
}

.step-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* 高亮文本样式 */
.highlight {
    background-color: rgba(255, 107, 107, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
    color: var(--accent-color);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    background-color: var(--white);
    margin-top: 20px;
}

footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

/* 首页卡片 */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 20px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.card-text {
    font-size: 0.9em;
    color: var(--dark-gray);
    margin-bottom: 15px;
    flex: 1;
}

/* 步骤卡片样式 */
.step-card {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border-top: 3px solid transparent;
    overflow: hidden;
    padding: 20px;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover::before {
    opacity: 1;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    border-top-color: var(--accent-color);
}

.card-icon {
    margin-bottom: 15px;
    font-size: 2em;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.step-card:hover .card-icon {
    transform: scale(1.1);
}

.card-action {
    margin-top: auto;
    padding-top: 15px;
}

.card-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--accent-color), #ff8f8f);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.4);
}

/* 不同类型的信息框样式 */
.info-box, .warning-box, .tip-box, .success-box {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
}

.info-box i, .warning-box i, .tip-box i, .success-box i {
    font-size: 1.5em;
    margin-right: 15px;
    margin-top: 2px;
}

.info-box {
    background-color: rgba(100, 181, 246, 0.15);
    border-left: 4px solid #64b5f6;
}

.warning-box {
    background-color: rgba(255, 152, 0, 0.15);
    border-left: 4px solid #ff9800;
}

.tip-box {
    background-color: rgba(126, 87, 194, 0.15);
    border-left: 4px solid #7e57c2;
}

.success-box {
    background-color: rgba(76, 175, 80, 0.15);
    border-left: 4px solid #4caf50;
}

.info-box i {
    color: #64b5f6;
}

.warning-box i {
    color: #ff9800;
}

.tip-box i {
    color: #7e57c2;
}

.success-box i {
    color: #4caf50;
}

/* 导航按钮样式 */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-button {
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.nav-button.primary {
    background: linear-gradient(135deg, var(--accent-color), #ff8f8f);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.nav-button.primary::after {
    content: '→';
    margin-left: 5px;
}

.nav-button.secondary {
    background-color: #f5f5f5;
    color: var(--text-primary);
}

.nav-button.secondary::before {
    content: '←';
    margin-right: 5px;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.nav-button.primary:hover {
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

/* 添加折叠状态的样式 */
.guide-section.collapsed {
    padding: 15px 25px 15px 40px;
    transition: all 0.3s ease;
}

.guide-section.collapsed h2 {
    margin-bottom: 0;
}

.guide-section.collapsed p:first-of-type {
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

/* 高亮状态 */
.guide-section.highlight {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

/* 修改回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #ff8f8f;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* 修复移动端布局 */
@media (max-width: 992px) {
    .wrapper {
        flex-direction: row;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(0);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.collapsed {
        transform: translateX(-220px);
    }
    
    .sidebar-toggle {
        display: block;
        position: fixed;
        left: 220px;
        top: 20px;
        width: 30px;
        height: 30px;
        background-color: var(--white);
        border-radius: 0 4px 4px 0;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        cursor: pointer;
        transition: left 0.3s ease;
    }
    
    .sidebar-toggle.collapsed {
        left: 0;
    }
    
    .sidebar-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background-color: var(--dark-gray);
        margin: 4px auto;
        transition: all 0.3s ease;
    }
    
    .main-content {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        transform: translateX(0);
        max-height: 60px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .sidebar.expanded {
        max-height: 500px;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .guide-section {
        padding: 20px 15px 20px 25px;
    }
    
    .step-number {
        left: -20px;
        width: 30px;
        height: 30px;
        font-size: 1.2em;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .image-container {
        margin: 15px 0;
    }
}

/* 新增移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--dark-gray);
    margin: 4px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
    }
    
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1050;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        padding-top: 60px;
    }
    
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
} 