/* CSS Document */


        /* DIV-C 和 DIV-D 样式 - 与DIV-A保持一致 */
        .content-module {
            width: 90%;
            margin: 20px auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            padding: 25px;
            transition: all 0.3s ease;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        .module-header {
            text-align: center;
            margin-bottom: 20px;
            color: #333;
            font-size: 44px;
            font-weight: 600;
        }
        
        .section-header {
            margin: 25px 0 15px 0;
            color: #4a6cf7;
            font-size: 36px;
            font-weight: 600;
            border-bottom: 2px solid #e0e6ff;
            padding-bottom: 8px;
            text-align: center;
        }
        
        /* 按钮样式 - 与DIV-A保持一致 */
        .link-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 10px;
            justify-content: center;
        }
        
        .link-btn {
            padding: 10px 16px;
            background: #f5f7ff;
            border: 1px solid #e0e6ff;
            border-radius: 6px;
            cursor: pointer;
            font-size: 28px;
            transition: all 0.2s ease;
            color: #555;
            white-space: nowrap;
            box-sizing: border-box;
            text-decoration: none;
            display: inline-block;
            text-align: center;
            position: relative;
        }
        
        .link-btn:hover {
            background: #e1e9ff;
            transform: translateY(-1px);
            text-decoration: none;
            color: #333;
        }
        
        /* AI按钮样式 */
        .ai-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #5a6fd8;
        }
        
        .ai-btn:hover {
            background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
            color: white;
        }
        
        .ai-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #ffd700;
            color: #333;
            border-radius: 10px;
            padding: 2px 6px;
            font-size: 12px;
            font-weight: bold;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            gap: 2px;
        }
        
        /* 特殊按钮样式 - 随机深色渐变 */
        .special-btn {
            color: white;
            border: none;
            position: relative;
        }
        
        .special-btn:hover {
            color: white;
            filter: brightness(1.1);
        }
        
        /* DIV-D 内容区域样式 */
        .intro-content {
            line-height: 1.25;
            color: #555;
            max-height: 120px;
            overflow: hidden;
            transition: max-height 0.5s ease;
            font-size: 32px;
        }
        
        .intro-content.expanded {
            max-height: 1000px;
        }
        
        .toggle-intro-btn {
            display: block;
            width: 100%;
            padding: 10px;
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 6px;
            cursor: pointer;
            font-size: 28px;
            color: #4a6cf7;
            text-align: center;
            margin-top: 10px;
            transition: all 0.3s ease;
        }
        
        .toggle-intro-btn:hover {
            background: #e9ecef;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .content-module {
                width: 95%;
                padding: 20px;
            }
            
            .module-header {
                font-size: 36px;
            }
            
            .section-header {
                font-size: 28px;
            }
            
            .link-btn {
                padding: 8px 12px;
                font-size: 24px;
            }
            
            .intro-content {
                font-size: 26px;
                line-height: 1.25;
            }
            
            .toggle-intro-btn {
                font-size: 24px;
            }
            
            .ai-badge {
                font-size: 10px;
                padding: 1px 4px;
            }
        }
        
        @media (max-width: 480px) {
            .module-header {
                font-size: 32px;
            }
            
            .link-btn {
                padding: 7px 10px;
                font-size: 20px;
            }
            
            .intro-content {
                font-size: 22px;
                line-height: 1.25;
            }
            
            .toggle-intro-btn {
                font-size: 20px;
            }
        }
        
        @media (max-width: 360px) {
            .intro-content {
                font-size: 20px;
                line-height: 1.25;
            }
            
            .module-header {
                font-size: 28px;
            }
            
            .section-header {
                font-size: 24px;
            }
            
            .link-btn {
                font-size: 18px;
            }
            
            .toggle-intro-btn {
                font-size: 18px;
            }
        }


        /* DIV-E 用户自定义链接区域样式 */
        .user-links-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
            justify-content: center;
        }
        
        .user-link-btn {
            padding: 10px 16px;
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            border: 1px solid #4facfe;
            border-radius: 6px;
            cursor: pointer;
            font-size: 28px;
            transition: all 0.2s ease;
            color: white;
            white-space: nowrap;
            box-sizing: border-box;
            text-decoration: none;
            display: inline-block;
            text-align: center;
            position: relative;
        }
        
        .user-link-btn:hover {
            filter: brightness(1.1);
            transform: translateY(-1px);
            text-decoration: none;
            color: white;
        }
        
        .delete-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #ff4757;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .delete-badge:hover {
            background: #ff3742;
        }
        
        .add-link-form {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 15px;
            align-items: center;
            justify-content: center;
            width: 100%;
        }
        
        .form-input {
            padding: 10px 12px;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            font-size: 16px;
            box-sizing: border-box;
        }
        
        /* 桌面端布局：链接名称30%，URL 60%，按钮10% */
        .form-input.name {
            width: 30%;
            min-width: 120px;
        }
        
        .form-input.url {
            width: 60%;
            min-width: 200px;
        }
        
        .form-submit-btn {
            padding: 10px 20px;
            background: #4a6cf7;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
            white-space: nowrap;
            width: 10%;
            min-width: 80px;
        }
        
        .form-submit-btn:hover {
            background: #3a5ce5;
        }
        
        .collapsed-forms {
            display: none;
            width: 100%;
        }
        
        .collapsed-forms.show {
            display: block;
        }
        
        .toggle-forms-btn {
            display: block;
            width: 100%;
            padding: 10px;
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            color: #4a6cf7;
            text-align: center;
            margin-top: 10px;
            transition: all 0.3s ease;
        }
        
        .toggle-forms-btn:hover {
            background: #e9ecef;
        }
        
        .count-indicator {
            font-size: 18px;
            color: #666;
            margin-left: 10px;
            font-weight: normal;
        }
        
        .import-export-buttons {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        .import-export-btn {
            padding: 8px 16px;
            background: #28a745;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
        }
        
        .import-export-btn.export {
            background: #17a2b8;
        }
        
        .import-export-btn:hover {
            filter: brightness(1.1);
            transform: translateY(-1px);
        }
        
        .file-input {
            display: none;
        }
        
        /* 弹窗样式 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        
        .modal-content {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            max-width: 400px;
            width: 90%;
            text-align: center;
        }
        
        .modal-title {
            font-size: 20px;
            margin-bottom: 15px;
            color: #333;
        }
        
        .modal-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 20px;
        }
        
        .modal-btn {
            padding: 8px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
        }
        
        .modal-confirm {
            background: #ff4757;
            color: white;
        }
        
        .modal-confirm:hover {
            background: #ff3742;
        }
        
        .modal-cancel {
            background: #f1f2f6;
            color: #333;
        }
        
        .modal-cancel:hover {
            background: #e9ecef;
        }
        
        /* DIV-E 响应式设计 - 手机端 */
        @media (max-width: 768px) {
            .user-link-btn {
                padding: 8px 12px;
                font-size: 24px;
            }
            
            .form-input {
                font-size: 14px;
                padding: 8px 10px;
            }
            
            /* 手机端：三个表单元素各占一行 */
            .add-link-form {
                flex-direction: column;
                align-items: stretch;
            }
            
            .form-input.name,
            .form-input.url {
                width: 100%; /* 手机端堆叠显示 */
                min-width: auto;
            }
            
            .form-submit-btn {
                font-size: 14px;
                padding: 8px 16px;
                width: 100%; /* 手机端按钮占满整行 */
                min-width: auto;
            }
            
            .count-indicator {
                font-size: 16px;
            }
            
            .import-export-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .import-export-btn {
                width: 100%;
                max-width: 200px;
            }
        }
        
        @media (max-width: 480px) {
            .user-link-btn {
                padding: 7px 10px;
                font-size: 20px;
            }
            
            .count-indicator {
                font-size: 14px;
                display: block;
                margin-left: 0;
                margin-top: 5px;
            }
        }