/* ========================================
   自定义美化样式
   ======================================== */

/* 导航栏美化 */
.navbar-inverse {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700 !important;
    font-size: 24px !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: #ffd700 !important;
    transform: scale(1.05);
}

.navbar-nav > li > a {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav > li > a:hover {
    color: #ffd700 !important;
    background: rgba(255,255,255,0.1) !important;
}

.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav > li > a:hover::after {
    width: 80%;
}

.navbar-nav > li.active > a {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
}

.navbar-toggle {
    border-color: rgba(255,255,255,0.3) !important;
}

.navbar-toggle .icon-bar {
    background-color: white !important;
}

.navbar-toggle:hover {
    background-color: rgba(255,255,255,0.2) !important;
}

.navbar-right li a {
    padding: 15px 12px !important;
}

/* ========================================
   项目代码页面美化
   ======================================== */

.project-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.project-title h3 {
    margin: 0;
    font-weight: 600;
}

.code-section {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.code-section label {
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
}

.code-section p {
    line-height: 1.8;
    color: #495057;
}

.code-section pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.danger-box {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.info-box {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.section-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #667eea, transparent);
    margin: 30px 0;
}

.btn-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.funny-text {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    border-radius: 8px;
    color: white;
    line-height: 1.8;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ========================================
   首页美化
   ======================================== */

.col-sm-9 .panel-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 600;
    border-radius: 8px 8px 0 0 !important;
}

.col-sm-9 .panel-heading a {
    color: white !important;
    text-decoration: underline;
}

.col-sm-9 .panel-default {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    border: none;
}

.col-sm-9 .table {
    margin-bottom: 0;
}

.col-sm-9 .table thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
}

.col-sm-9 .table tbody tr {
    transition: all 0.3s ease;
}

.col-sm-9 .table tbody tr:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.col-sm-9 .table tbody tr td a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.col-sm-9 .table tbody tr td a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.notice-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    line-height: 1.8;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.story-box {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #495057;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    line-height: 1.8;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.expand-btn {
    background: #667eea;
    color: white !important;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: #764ba2;
    transform: scale(1.05);
}

/* 分页美化 */
DIV.meneame {
    PADDING: 10px;
    MARGIN: 15px 0;
    COLOR: #667eea;
    TEXT-ALIGN: center;
}

DIV.meneame A {
    BORDER: 2px solid #667eea;
    PADDING: 8px 15px;
    BACKGROUND: white;
    COLOR: #667eea;
    MARGIN: 0 5px;
    TEXT-DECORATION: none;
    BORDER-RADIUS: 6px;
    TRANSITION: all 0.3s ease;
    DISPLAY: inline-block;
}

DIV.meneame A:hover {
    BACKGROUND: #667eea;
    COLOR: white;
    TRANSFORM: translateY(-2px);
    BOX-SHADOW: 0 4px 8px rgba(102, 126, 234, 0.3);
}

DIV.meneame SPAN.current {
    BORDER: 2px solid #667eea;
    PADDING: 8px 15px;
    FONT-WEIGHT: bold;
    COLOR: white;
    MARGIN: 0 5px;
    BACKGROUND: #667eea;
    BORDER-RADIUS: 6px;
    DISPLAY: inline-block;
}

DIV.meneame SPAN.disabled {
    BORDER: 2px solid #e0e0e0;
    PADDING: 8px 15px;
    COLOR: #999;
    MARGIN: 0 5px;
    BORDER-RADIUS: 6px;
    DISPLAY: inline-block;
}


/* ========================================
   侧边栏美化 (menus.html)
   ======================================== */

.sidebar-panel {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-panel:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.sidebar-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 600;
    padding: 12px 15px;
    border: none !important;
    position: relative;
}

.sidebar-heading a {
    color: white !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.sidebar-heading a:hover {
    color: #ffd700 !important;
}

.sidebar-icon {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.create-btn {
    float: right;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-block;
}

.create-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.sidebar-body {
    padding: 0;
    background: #fafbfc;
}

.sidebar-nav {
    margin: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav li a {
    padding: 12px 15px;
    color: #495057;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.sidebar-nav li a:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    color: #667eea;
    padding-left: 20px;
    text-decoration: none;
}

.sidebar-nav li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #667eea;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-nav li a:hover::before {
    transform: scaleY(1);
}

.project-icon,
.module-icon,
.feature-icon {
    margin-right: 8px;
    font-size: 16px;
}

.project-title {
    font-weight: 500;
}

.project-id {
    float: right;
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ========================================
   模块页面美化 (module.html)
   ======================================== */

.page-icon {
    font-size: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

.module-table {
    margin-bottom: 0;
}

.module-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding: 12px 15px;
    font-size: 14px;
}

.table-icon {
    margin-right: 6px;
    font-size: 14px;
}

.module-row {
    transition: all 0.3s ease;
}

.module-row:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    transform: translateX(5px);
}

.module-name {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.module-badge {
    display: inline-block;
    margin-right: 6px;
    font-size: 16px;
}

.module-desc {
    color: #6c757d;
    font-size: 13px;
}

.module-date {
    color: #6c757d;
    font-size: 13px;
}

.module-actions {
    white-space: nowrap;
}

.action-btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-icon {
    margin-right: 4px;
    font-size: 14px;
}

.config-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.config-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.delete-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 87, 108, 0.3);
    color: white;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar-panel {
        margin-bottom: 15px;
    }
    
    .module-actions {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .action-btn {
        display: block;
        text-align: center;
        margin: 0;
    }
}


/* ========================================
   配置代码页面美化 (project_setcode.html)
   ======================================== */

.setcode-form {
    padding: 20px;
    background: #fafbfc;
}

.setcode-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.section-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
}

.label-icon {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.label-hint {
    font-size: 13px;
    color: #6c757d;
    font-weight: 400;
    margin-left: 5px;
}

.project-name-display h2 {
    color: #667eea;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
    border-radius: 6px;
}

.module-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.module-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.module-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.module-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.module-title {
    font-size: 15px;
    font-weight: 600;
    color: #495057;
}

.module-icon {
    font-size: 16px;
    margin-right: 6px;
}

.expand-link {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 15px;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.expand-link:hover {
    background: rgba(102, 126, 234, 0.2);
    text-decoration: none;
}

.expand-link.expanded {
    background: #667eea;
    color: white;
}

.module-settings {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
    border-left: 3px solid #667eea;
}

.settings-header {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
}

.settings-icon {
    font-size: 16px;
    margin-right: 6px;
}

.settings-content {
    padding-left: 10px;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    padding: 8px 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + .radio-text {
    color: #667eea;
    font-weight: 600;
}

.radio-text {
    font-size: 14px;
    color: #495057;
}

.input-group-custom {
    margin-bottom: 12px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.input-custom {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-custom:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.module-description {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

.description-header {
    font-size: 14px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 10px;
}

.desc-icon {
    font-size: 16px;
    margin-right: 6px;
}

.description-content {
    background: white;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin: 0;
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.custom-textarea {
    width: 100%;
    min-height: 180px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    resize: vertical;
}

.custom-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.custom-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.form-actions {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-primary-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary-custom {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(108, 117, 125, 0.3);
}

.btn-secondary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.4);
}

.btn-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .setcode-form {
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .project-name-display h2 {
        font-size: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
    }
}


/* ========================================
   项目内容页面美化 (project_view.html)
   ======================================== */

.btn-header-action {
    float: right;
    background: rgba(255,255,255,0.2);
    color: white !important;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-header-action:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-icon {
    margin-right: 4px;
    font-size: 14px;
}

.project-info-section {
    padding: 20px;
    background: #fafbfc;
}

.project-title-box {
    background: white;
    border-left: 4px solid #667eea;
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.project-title-box h3 {
    margin: 0;
    color: #495057;
    font-size: 20px;
    font-weight: 600;
}

.title-icon {
    font-size: 22px;
    margin-right: 10px;
    vertical-align: middle;
}

.filter-section {
    background: white;
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.filter-icon {
    font-size: 16px;
    margin-right: 6px;
}

.domain-select {
    padding: 8px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.domain-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-hint {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

.download-section {
    display: flex;
    justify-content: flex-end;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
    display: inline-block;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.download-icon {
    font-size: 16px;
    margin-right: 6px;
}

.cookie-helper-section {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.helper-header {
    font-size: 15px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 10px;
}

.helper-icon {
    font-size: 18px;
    margin-right: 8px;
}

.cookie-code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    overflow-x: auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.content-table {
    margin-bottom: 0;
}

.content-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding: 12px 10px;
    font-size: 13px;
}

.th-icon {
    font-size: 14px;
    margin-right: 4px;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.content-row {
    transition: all 0.3s ease;
}

.content-row:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
}

.time-cell {
    font-size: 13px;
    color: #6c757d;
}

.content-cell,
.header-cell {
    font-size: 13px;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-list li {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.content-list li:last-child {
    border-bottom: none;
}

.key-label {
    font-weight: 600;
    color: #667eea;
    margin-right: 6px;
}

.value-text {
    color: #495057;
    word-break: break-all;
}

.action-cell {
    text-align: center;
}

.delete-link {
    color: #dc3545;
    text-decoration: none;
    font-size: 13px;
    
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.delete-link:hover {
    background: rgba(220, 53, 69, 0.1);
    text-decoration: none;
}

.action-icon {
    font-size: 14px;
    margin-right: 4px;
}

.batch-actions {
    background: white;
    border-top: 2px solid #e9ecef;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.batch-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin: 0;
    cursor: pointer;
}

.batch-icon {
    font-size: 16px;
    margin-right: 4px;
}

.batch-delete-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(245, 87, 108, 0.3);
    display: inline-block;
}

.batch-delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 87, 108, 0.4);
    color: white;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .btn-header-action {
        float: none;
        display: block;
        margin: 5px 0;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .domain-select {
        width: 100%;
    }
    
    .download-section {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .download-btn {
        width: 100%;
        text-align: center;
    }
    
    .batch-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .batch-delete-btn {
        width: 100%;
        text-align: center;
    }
}


/* ========================================
   模块配置页面美化 (module_set.html)
   ======================================== */

.module-set-form {
    padding: 20px;
    background: #fafbfc;
}

.module-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-group-custom {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.form-group-custom:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
}

.input-modern {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.textarea-modern {
    width: 100%;
    min-height: 100px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
}

.textarea-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.code-editor {
    width: 100%;
    min-height: 400px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Courier New', 'Consolas', monospace;
    background: #2d3748;
    color: #e2e8f0;
    resize: vertical;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.code-editor:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.param-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.param-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.param-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.param-item-saved {
    background: white;
}

.param-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.param-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.param-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.param-input:focus {
    border-color: #667eea;
    outline: none;
}

.btn-add-param {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-param:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-delete-param {
    color: #dc3545;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-delete-param:hover {
    background: rgba(220, 53, 69, 0.1);
    text-decoration: none;
}

.param-item-add {
    margin-top: 10px;
}

.btn-add-new {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.btn-add-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.add-icon {
    font-size: 16px;
    margin-right: 6px;
}

.radio-group-modern {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label-modern {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.radio-label-modern:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.radio-label-modern input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.radio-label-modern input[type="radio"]:checked + .radio-text {
    color: #667eea;
    font-weight: 600;
}

.radio-label-modern:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.form-actions-modern {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-primary-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary-modern {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(108, 117, 125, 0.3);
}

.btn-secondary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.4);
}

.error-icon {
    font-size: 18px;
    margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .module-set-form {
        padding: 15px;
    }
    
    .form-group-custom {
        padding: 15px;
    }
    
    .code-editor {
        min-height: 300px;
        font-size: 12px;
    }
    
    .radio-group-modern {
        flex-direction: column;
    }
    
    .radio-label-modern {
        width: 100%;
    }
    
    .form-actions-modern {
        flex-direction: column;
    }
    
    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
    }
    
    .param-item {
        flex-wrap: wrap;
    }
}



/* ========================================
   创建页面美化 (module_create.html & project_create.html)
   ======================================== */

.create-form {
    padding: 20px;
    background: #fafbfc;
}

.create-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.required-mark {
    color: #dc3545;
    font-weight: 700;
    margin-left: 4px;
}

.input-large {
    font-size: 16px;
    padding: 15px;
}

.textarea-large {
    min-height: 120px;
    font-size: 15px;
}

.welcome-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.welcome-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-box h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.welcome-box p {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
}

.code-hint-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.hint-header {
    font-size: 15px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 10px;
}

.hint-icon {
    font-size: 18px;
    margin-right: 8px;
}

.hint-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hint-list li {
    padding: 6px 0 6px 24px;
    color: #856404;
    font-size: 13px;
    line-height: 1.6;
    position: relative;
}

.hint-list li:before {
    content: "•";
    position: absolute;
    left: 8px;
    font-weight: bold;
    color: #ffc107;
}

.param-desc {
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
    margin-left: 8px;
}

.info-box-create {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-header {
    font-size: 16px;
    font-weight: 600;
    color: #0c5460;
    margin-bottom: 15px;
}

.info-icon {
    font-size: 20px;
    margin-right: 8px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: #0c5460;
    font-size: 14px;
    border-bottom: 1px solid rgba(23, 162, 184, 0.2);
}

.info-list li:last-child {
    border-bottom: none;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    line-height: 1.5;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

/* 表单验证样式 */
.input-modern.error,
.textarea-modern.error {
    border-color: #dc3545;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.input-modern.success,
.textarea-modern.success {
    border-color: #28a745;
}

/* 加载动画 */
.btn-primary-modern.loading {
    position: relative;
    color: transparent;
}

.btn-primary-modern.loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .create-form {
        padding: 15px;
    }
    
    .welcome-box {
        padding: 20px;
    }
    
    .welcome-icon {
        font-size: 36px;
    }
    
    .welcome-box h3 {
        font-size: 20px;
    }
    
    .welcome-box p {
        font-size: 14px;
    }
    
    .input-large {
        font-size: 14px;
        padding: 12px;
    }
    
    .btn-large {
        padding: 12px 30px;
        font-size: 15px;
    }
}



/* ========================================
   用户设置页面美化 (user_*.html)
   ======================================== */

/* 黑名单管理页面 */
.blacklist-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 15px 20px;
    margin: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon-box {
    font-size: 24px;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
    color: #0c5460;
    font-size: 14px;
    line-height: 1.6;
}

.blacklist-table {
    margin-bottom: 0;
}

.blacklist-row {
    transition: all 0.3s ease;
}

.blacklist-row:hover {
    background: rgba(102, 126, 234, 0.05);
}

.project-id {
    font-weight: 600;
    color: #667eea;
}

.ip-cell, .url-cell {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #495057;
}

.date-cell {
    color: #6c757d;
    font-size: 13px;
}

.add-blacklist-section {
    background: white;
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section-header {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.header-icon {
    font-size: 20px;
    margin-right: 8px;
}

.blacklist-form .form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
    flex-wrap: wrap;
}

.form-label-inline {
    min-width: 120px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.input-inline {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.field-hint {
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
}

.form-actions-inline {
    margin-top: 20px;
}

.tip-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    border-radius: 6px;
    display: flex;
    gap: 12px;
}

.tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
    color: #856404;
    font-size: 13px;
    line-height: 1.6;
}

.global-filter-section {
    margin: 20px;
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    border-radius: 6px;
    overflow: hidden;
}

.warning-header {
    background: #dc3545;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
}

.warning-icon {
    font-size: 20px;
    margin-right: 8px;
}

.warning-content {
    padding: 15px 20px;
    color: #721c24;
}

.warning-content p {
    margin: 8px 0;
    font-size: 14px;
}

.danger-text {
    font-weight: 600;
    color: #dc3545;
}

/* 个人设置页面 */
.notice-badge {
    float: right;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: normal;
}

.settings-form {
    padding: 20px;
    background: #fafbfc;
}

.settings-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.title-icon {
    font-size: 20px;
    margin-right: 8px;
}

.form-group-settings {
    margin-bottom: 20px;
}

.settings-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.input-with-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-with-toggle input {
    flex: 1;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.toggle-label {
    font-size: 13px;
    color: #6c757d;
}

.telegram-guide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    color: white;
}

.guide-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.guide-icon {
    font-size: 20px;
    margin-right: 8px;
}

.guide-content {
    padding-left: 10px;
}

.guide-step {
    margin: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

.tg-link {
    color: #ffd700;
    text-decoration: underline;
}

.tg-link:hover {
    color: #ffed4e;
}

.password-hint {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hint-icon {
    font-size: 18px;
}

.form-actions-settings {
    padding: 20px;
    text-align: center;
}

.membership-info {
    margin-top: 20px;
}

.vip-card, .member-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.vip-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.member-card {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.vip-badge, .member-badge {
    background: rgba(0,0,0,0.2);
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.vip-content, .member-content {
    padding: 25px;
}

.vip-greeting, .member-greeting {
    font-size: 16px;
    margin-bottom: 15px;
    color: #495057;
}

.vip-benefits, .member-benefits {
    margin: 15px 0;
}

.benefit-item {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #495057;
    font-size: 14px;
}

.benefit-icon {
    color: #28a745;
    font-weight: bold;
    flex-shrink: 0;
}

.vip-note, .member-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

.email-whitelist {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.whitelist-header {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
}

.whitelist-desc {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.email-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.email-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.email-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.email-icon {
    font-size: 18px;
}

.email-address {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #495057;
}

/* 邀请码页面 */
.invite-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fafbfc;
    flex-wrap: wrap;
    gap: 20px;
}

.invite-stats {
    flex: 1;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.stat-icon {
    font-size: 48px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.btn-generate-invite {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
    display: inline-block;
}

.btn-generate-invite:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.invite-info-box {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 20px;
    margin: 20px;
    border-radius: 6px;
    display: flex;
    gap: 15px;
}

.info-icon-large {
    font-size: 32px;
    flex-shrink: 0;
}

.info-text-large {
    flex: 1;
    color: #0c5460;
}

.info-list-inline {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.info-list-inline li {
    padding: 5px 0 5px 20px;
    position: relative;
    font-size: 14px;
}

.info-list-inline li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #17a2b8;
    font-weight: bold;
}

.invite-table {
    margin-bottom: 0;
}

.th-hint {
    font-size: 12px;
    font-weight: normal;
    color: #6c757d;
    margin-left: 8px;
}

.invite-row {
    transition: all 0.3s ease;
}

.invite-row:hover {
    background: rgba(102, 126, 234, 0.05);
}

.invite-code-cell {
    padding: 15px 20px;
}

.code-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.code-icon {
    font-size: 24px;
}

.code-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    letter-spacing: 1px;
}

.btn-copy-code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-copy-code.copied {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.copy-icon {
    margin-right: 4px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-hint {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blacklist-form .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-label-inline {
        min-width: auto;
    }
    
    .input-inline {
        width: 100%;
        max-width: none;
    }
    
    .input-with-toggle {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .email-list {
        grid-template-columns: 1fr;
    }
    
    .invite-header-section {
        flex-direction: column;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .btn-generate-invite {
        width: 100%;
        text-align: center;
    }
}



/* ========================================
   模块查看页面美化 (module_view.html)
   ======================================== */

.module-view-container {
    padding: 0;
    background: #fafbfc;
}

.module-view-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.module-icon-large {
    font-size: 64px;
    background: rgba(255,255,255,0.2);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.module-header-info {
    flex: 1;
}

.module-view-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.module-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.meta-item {
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 20px;
}

.meta-icon {
    font-size: 16px;
    margin-right: 6px;
}

.meta-item strong {
    color: white;
    margin-left: 5px;
}

.module-view-section {
    background: white;
    margin: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.module-view-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.section-icon {
    font-size: 28px;
    margin-right: 12px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.module-description-box {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 6px;
    padding: 20px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.description-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #495057;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: transparent;
    border: none;
    padding: 0;
}

.params-info-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.info-badge {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.badge-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.badge-text {
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

.params-list-view {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.param-item-view {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.param-item-view:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.param-check {
    font-size: 20px;
    color: #28a745;
    font-weight: bold;
    flex-shrink: 0;
}

.param-name-view {
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    font-family: 'Courier New', monospace;
}

.no-params-box {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #17a2b8;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.no-params-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.no-params-text {
    font-size: 16px;
    font-weight: 600;
    color: #0c5460;
}

.module-view-actions {
    padding: 20px;
    text-align: center;
    background: white;
    border-radius: 0 0 8px 8px;
}

.btn-back {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(108, 117, 125, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.4);
}

.btn-back .btn-icon {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .module-view-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .module-icon-large {
        width: 80px;
        height: 80px;
        font-size: 48px;
    }
    
    .module-view-title {
        font-size: 22px;
    }
    
    .module-meta {
        justify-content: center;
        gap: 10px;
    }
    
    .meta-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .module-view-section {
        margin: 15px;
        padding: 20px;
    }
    
    .section-icon {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .params-list-view {
        grid-template-columns: 1fr;
    }
    
    .no-params-box {
        padding: 30px 20px;
    }
    
    .no-params-icon {
        font-size: 48px;
    }
    
    .no-params-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .module-view-header {
        padding: 15px;
    }
    
    .module-icon-large {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    
    .module-view-title {
        font-size: 18px;
    }
    
    .module-view-section {
        margin: 10px;
        padding: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .description-content {
        font-size: 13px;
    }
    
    .info-badge {
        flex-direction: column;
        text-align: center;
    }
    
    .badge-text {
        font-size: 13px;
    }
    
    .param-item-view {
        padding: 12px 15px;
    }
    
    .param-name-view {
        font-size: 14px;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
    }
}
