:root {
             --bg-color: #fff;
            --text-color: #2c3e50;
            --text-color-secondary: #3a5169;
            --primary-color: #2563eb;
            --primary-light: #3b82f6;
            --primary-dark: #1d4ed8;
            --secondary-color: #6c63ff;
            --success-color: #4CAF50;
            --warning-color: #FFC107;
            --danger-color: #f44336;
            --border-color: #eaecef;
            --code-bg-color: #f8f8f8;
            --content-width: 900px;
            --navbar-height: 100px;
            --card-bg: #ffffff;
            --footer-bg: #2c3e50;
            
            /* 新增：不同区域的max-width变量 */
            --hero-max-width: 800px;
            --card-max-width: 1000px;
            --feature-max-width: 1200px;
            --tools-max-width: 1200px;
        }

        html[data-theme="dark"] {
            --bg-color: #1d1e1f;
            --text-color: #adbac7;
            --text-color-secondary: #768390;
            --border-color: #444c56;
            --code-bg-color: #2d333b;
            --card-bg: #2a2d3e;
            --footer-bg: #1b1f22;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: var(--bg-color);
            color: var(--text-color);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
            font-size: 16px;
            line-height: 1.6;
            transition: background 0.2s, color 0.2s;
        }

        a {
            color: var(--primary-color);
            text-decoration: none;
            transition: color 0.2s ease;
            cursor: pointer;
        }
        a:hover {
            text-decoration: none;
        }

        /* 优化后的容器样式 - 移除grid，使用flex列布局 */
        .container {
            margin: 0 auto;
            padding: 0 0rem;
            
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* 为不同区块添加宽度限制 */
        .content-section {
            width: 100%;
            max-width: var(--card-max-width);
            margin-bottom: 2rem;
        }

        .hero-section {
            width: 100%;
            max-width: var(--hero-max-width);
            margin-bottom: 2rem;
            padding: 0 10px;
        }

        .feature-section {
            width: 100%;
            max-width: var(--feature-max-width);
            margin-bottom: 2rem;
            padding: 0 10px;
        }

        .tools-section {
            width: 100%;
            max-width: var(--tools-max-width);
            margin-bottom: 2rem;
        }

        /* 导航栏 */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--navbar-height);
            background-color: var(--bg-color);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 2rem;
        }

        .navbar .nav-container {
            max-width: var(--feature-max-width);
            display: flex;
            align-items: center;
        }

        .navbar .brand {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text-color);
            padding-right: 50px;
        }

        .navbar .brand:hover {
            text-decoration: none;
        }

        .navbar .nav-links {
            display: flex;
            margin-left: auto;
            gap: 2rem;
        }

        .navbar .nav-link {
            color: var(--text-color-secondary);
            font-weight: 500;
            padding: 0.5rem 0;
            border-bottom: 2px solid transparent;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .navbar .nav-link:hover,
        .navbar .nav-link.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
            text-decoration: none;
        }
        @media (max-width: 640px) {
            .navbar { padding: 0 1rem; }
            .nav-link span { display: none; }
        }

        /* 返回首页按钮 */
        .home-button {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1000;
            background-color: var(--primary-color);
            color: white;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 4px 12px rgba(33, 145, 243, 0.3);
            transition: 0.3s;
            cursor: pointer;
        }
        .home-button:hover {
            background-color: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 6px 18px rgba(33,150,243,0.4);
            text-decoration: none;
        }
        @media (max-width: 480px) {
            .home-button { width: 50px; height: 50px; font-size: 1.2rem; bottom: 20px; right: 20px; }
            .navbar .brand{
                font-size:2rem;
            }
            .brand span{
                display: none;
            }
        }


        /* ===== 主内容撑开导航栏 ===== */
        .main-content {
            margin-top: var(--navbar-height);
            padding: 2rem 0 0 0;
            min-height: calc(100vh - var(--navbar-height));
        }

        /* Hero 区域 */
        .hero {
            text-align: center;
            padding: 2rem 0 1rem 0;
            width: 100%;
        }
        .hero h1 {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            color: var(--text-color);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .hero .description {
            font-size: 1.2rem;
            color: var(--text-color-secondary);
            max-width: 700px;
            margin: 0 auto 1rem auto;
        }

                
        /* 软件卡片容器 */
        .software-card {
            background-color: var(--bg-color);
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
            margin-bottom: 40px;
            border: 1px solid var(--border-color);
            transition: box-shadow 0.3s;
            width: 100%;
        }
        .software-card:hover {
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
        }

        /* 特性小卡片网格 */
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap: 20px;
            margin: 30px 0;
            width: 100%;
        }
        .feature-item-sm {
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 20px 15px;
            text-align: center;
            transition: 0.2s;
        }
        .feature-item-sm:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.05);
        }
        .feature-icon {
            width: 46px;
            height: 46px;
            background: var(--text-color-secondary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1rem;
            margin: 0 auto 15px;
            box-shadow: 0 4px 10px rgba(170, 170, 170, 0.1);
        }
        .feature-title {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 8px;
        }
        .feature-link {
            font-weight: 500;
            margin-bottom: 8px;
            padding-top: 12px;
            font-size:13px;
        }
        .feature-desc {
            color: var(--text-color-secondary);
            font-size: 11px;
            line-height: 1.5;
        }

        /* 代码区 & 按钮 */
        .code-tabs {
            display: flex;
            gap: 10px;
            margin: 25px 0 10px;
            padding-bottom: 10px;
        }
        .tab-btn {
            background: transparent;
            border: none;
            padding: 8px 22px;
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--text-color-secondary);
            border-radius: 30px;
            transition: 0.2s;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .tab-btn i { font-size: 1rem; }
        .tab-btn.active {
            background: var(--primary-color);
            color: white;
        }
        .tab-btn:not(.active):hover {
            background: rgba(0, 87, 248, 0.08);
            color: var(--primary-color);
        }

        textarea.t1 {
            width: 100%;
            min-height: 200px;
            max-height: 300px;
            background: var(--code-bg-color);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 16px;
            font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
            font-size: 12px;
            line-height: 1.2;
            color: var(--text-color);
            resize: vertical;
            outline: none;
            transition: border 0.2s;
            margin-top: 5px;
        }
        textarea.t1:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(0, 70, 168, 0.15);
        }

        .action-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 16px;
            margin: 15px 0 20px;
            opacity: 0.9;
        }
        .action-bar span.sep {
            color: var(--border-color);
            font-weight: 300;
        }
        .action-link {
            color: var(--text-color-secondary);
            font-size: 0.9rem;
            cursor: pointer;
            transition: color 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        .action-link:hover {
            color: var(--primary-color);
            text-decoration: none;
        }

        /* VIP 码面板 */
        .vip-panel {
            background: rgba(0,0,0,0.02);
            border-left: 4px solid var(--primary-color);
            padding: 18px 22px;
            border-radius: 12px;
            margin: 20px 0 25px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 25px;
        }
        .vip-label {
            display: flex;
            align-items: center;
            gap: 10px;
            padding-bottom: 10px;
            font-weight: 500;
        }
        .vip-input {
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: 40px;
            padding: 10px 20px;
            width: 260px;
            font-family: monospace;
            color: var(--text-color);
            outline: none;
        }
        .vip-input:focus { border-color: var(--primary-color); }
        .hint-text {
            font-size: 0.8rem;
            color: var(--text-color-secondary);
            margin-left: 10px;
        }
        .hint-text i { margin-right: 4px; }

        /* 主要加密按钮 */
        .encrypt-btn {
            background: var(--primary-color);
            border: none;
            color: white;
            padding: 14px 32px;
            font-size: 1.2rem;
            border-radius: 60px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            box-shadow: 0 6px 14px rgba(0, 73, 168, 0.3);
            transition: 0.2s;
            border: 1px solid transparent;
            margin-bottom: 20px;
        }
        .encrypt-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 73, 168, 0.4);
        }

        /* 示例隐形代码区域 */
        .demo-invisible {
            background: var(--code-bg-color);
            border-radius: 10px;
            padding: 16px;
            margin: 20px 0;
            border: 1px dashed var(--border-color);
            font-size: 0.9rem;
            word-break: break-all;
            line-height: 1.4;
            color: var(--text-color-secondary);
        }

        .inline-action {
            border-bottom: 2px solid var(--primary-color);
            cursor: pointer;
            font-weight: 500;
            color: var(--primary-color);
        }

        /* 推荐资源网格 */
        .recommendations-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px;
            margin-top: 30px;
        }
        .rec-item {
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: 30px;
            padding: 8px 16px;
            text-align: center;
            transition: 0.2s;
            font-size: 0.9rem;
        }
        .rec-item a {
            color: var(--text-color-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .rec-item:hover {
            border-color: var(--primary-color);
            background: rgba(0, 90, 168, 0.02);
        }

        /* 加载动画 */
        #loading {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: var(--bg-color);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.4s;
        }
        #loading.hidden { opacity: 0; visibility: hidden; }
        .circular-progress {
            width: 70px; height: 70px; position: relative; margin-bottom: 15px;
        }
        .circular-progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
        .circular-progress circle { fill: none; stroke-width: 6; stroke-linecap: round; }
        .circular-progress circle.bg { stroke: rgba(173,173,173,0.2); }
        .circular-progress circle.progress { stroke: var(--primary-color); stroke-dasharray: 188.4; stroke-dashoffset: 188.4; transition: 0.2s; }
        .progress-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 14px; color: var(--text-color-secondary); }

        .page-content { display: none; }
        .page-content.visible { display: block; }

        /* 页脚 */
        .footer {
            background: var(--footer-bg);
            color: white;
            padding: 3rem 0 2rem;
            margin-top: 0px;
        }
        .footer-content {
            max-width: 1200px; margin: 0 auto; padding: 0 2rem;
            display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
            font-size: 13px;
        }
        .footer-section h3 { color: white; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 8px; }
        .footer-links { list-style: none; }
        .footer-links li { margin-bottom: 0.5rem; color: #adbac7; display: flex; align-items: center; gap: 6px; }
        .footer-links a { color: #adbac7; }
        .footer-links a:hover { color: white; }
        .copyright { text-align: center; padding-top: 2rem; color: #768390; font-size: 0.9rem;  width: 100%; }

        .icon-highlight { color: var(--text-color-secondary); }
        
        /* 工具区域标题样式 */
        .section-title {
            font-size: 2rem;
            margin-bottom: 1.5rem;
            color: var(--text-color);
            text-align: center;
        }

        .tool-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 0.4rem 1.1rem;
            background-color: var(--primary-color);
            color: white;
            border-radius: 6px;
            font-weight: 500;
            transition: all 0.2s ease;
            font-size: 11px;
        }

        .tool-link:hover {
            background-color: var(--primary-dark);
            text-decoration: none;
            box-shadow: 0 4px 12px rgba(37,99,235, 0.3);
        }

        .demo-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 0.2rem 0.6rem;
            background-color: var(--primary-color);
            color: white;
            border-radius: 6px;
            font-weight: 500;
            transition: all 0.2s ease;
            font-size: 10px;
            cursor: pointer;
        }

        .demo-btn:hover {
            background-color: var(--primary-dark);
            text-decoration: none;
            box-shadow: 0 4px 12px rgba(37,99,235, 0.3);
        }


        /* 解决固定导航栏遮挡锚点内容 */
section[id] {
    scroll-margin-top: 100px;
}

/* 配置选项区 */
        .config-area {
            background: rgba(84, 84, 84, 0.00);
            border-radius: 12px;
            padding: 20px;
            margin: 20px 0;
            border: 1px solid var(--border-color);
        }

        .config-item {
            margin: 15px 0;
            padding: 10px;
            background: var(--bg-color);
            border-radius: 8px;
            border-left: 0px solid var(--primary-color);
        }

        .config-item label {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            color: var(--text-color);
            cursor: pointer;
        }

        .config-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: var(--primary-color);
        }

        .config-desc {
            margin-left: 28px;
            font-size: 0.9rem;
            color: var(--text-color-secondary);
        }

        

        /* 联系方式区域 */
        .contact-panel {
            padding: 3rem 0 5rem 0;
            background-color: rgba(0, 0, 0, 0.01);
            text-align: center;
            width: 100%;
            border-top: 1px solid var(--border-color);
        }

        .contact-methods {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
            margin-top: 2rem;
        }

        .contact-method {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            padding: 1.5rem;
            background: var(--bg-color);
            border-radius: 12px;
            min-width: 200px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .contact-icon {
            width: 60px;
            height: 60px;
            background:var(--text-color-secondary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
        }

        @media (max-width: 1080px) {
            .navbar .brand{
                font-size: 1rem;
                display: none;
            }
            .brand span{
                display: none;
            }
            .navbar .nav-link span{
                font-size: 0.5rem;
            }
            
            .hero{
                padding: 1rem 0 1rem 0;
            }
            .hero h1{
                font-size: 32px;
            }
        }
        