/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* 3D背景网格 */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.floating-elements::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    top: 60%;
    right: 10%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* 顶部导航 */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1;
}

.brand-subtitle {
    font-size: 12px;
    color: #64748b;
    line-height: 1;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.nav-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.nav-btn.primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.nav-btn.primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* 主要内容区域 */
.main-content {
    display: grid;
    grid-template-columns: 300px 1fr 320px;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 94px 24px 24px;
    min-height: calc(100vh - 70px);
}

/* 左侧信息面板 */
.info-panel {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    height: fit-content;
}

.panel-header {
    margin-bottom: 32px;
}

.main-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.2;
}

.main-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    transform: translateY(-1px);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* 中央3D可视化区域 */
.visualization-area {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.tech-modules {
    position: relative;
    width: 100%;
    height: 500px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 60px;
    align-items: center;
    justify-items: center;
    padding: 40px;
}

.tech-module {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    width: 200px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.tech-module:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #3b82f6;
}

.server-module {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
}

.terminal-module {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.domain-module {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.detection-module {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #f472b6;
}

.module-icon {
    width: 32px;
    height: 32px;
    color: #3b82f6;
    margin-bottom: 12px;
}

.module-icon svg {
    width: 100%;
    height: 100%;
}

.module-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.module-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
}

.stat-value {
    color: #1e293b;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.module-action {
    font-size: 12px;
    color: #3b82f6;
    cursor: pointer;
    margin-top: auto;
}

.module-action:hover {
    text-decoration: underline;
}

/* 中央连接节点 */
.central-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: auto;
}

.node-core {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    animation: coreRotate 10s linear infinite;
}

@keyframes coreRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.core-icon {
    width: 32px;
    height: 32px;
    color: white;
}

.core-icon svg {
    width: 100%;
    height: 100%;
}

.pulse-ring {
    position: absolute;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.pulse-ring {
    width: 100px;
    height: 100px;
}

.pulse-ring.delay-1 {
    width: 120px;
    height: 120px;
    animation-delay: 0.5s;
}

.pulse-ring.delay-2 {
    width: 140px;
    height: 140px;
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.node-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

/* 连接线 */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.connections-svg {
    width: 100%;
    height: 100%;
    viewBox: "0 0 800 600";
    preserveAspectRatio: "xMidYMid meet";
}

/* 右侧状态面板 */
.status-panel {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    height: fit-content;
}

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

.status-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #059669;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.metric-card:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.metric-icon {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    flex-shrink: 0;
}

.metric-icon svg {
    width: 100%;
    height: 100%;
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
}

.metric-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.recent-activity {
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
}

.recent-activity h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.activity-time {
    font-size: 12px;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

.activity-desc {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

/* 修复底部显示问题 */
body {
    padding-bottom: 20px;
}

.main-content {
    min-height: calc(100vh - 90px);
    padding-bottom: 40px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 280px 1fr 300px;
        gap: 20px;
        padding: 94px 20px 40px;
    }
    
    .tech-module {
        width: 180px;
        min-height: 140px;
        padding: 16px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 800px;
        padding-bottom: 40px;
    }
    
    .info-panel,
    .status-panel {
        order: 1;
    }
    
    .visualization-area {
        order: 2;
        height: 500px;
        margin-bottom: 20px;
    }
    
    .tech-modules {
        height: 400px;
        gap: 40px;
        padding: 30px;
    }
    
    .tech-module {
        width: 160px;
        min-height: 140px;
        padding: 16px;
    }
    
    .central-node {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
    }
    
    .connections-svg {
        viewBox: "0 0 600 400";
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .main-content {
        padding: 94px 16px 40px;
    }
    
    .info-panel,
    .status-panel,
    .visualization-area {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .main-title {
        font-size: 20px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-modules {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        height: 350px;
        padding: 20px;
    }
    
    .tech-module {
        width: 140px;
        min-height: 120px;
        padding: 12px;
    }
    
    .module-label {
        font-size: 13px;
    }
    
    .node-core {
        width: 60px;
        height: 60px;
    }
    
    .core-icon {
        width: 24px;
        height: 24px;
    }
    
    .visualization-area {
        height: 400px;
    }
    
    .connections-svg {
        viewBox: "0 0 500 350";
    }
}

@media (max-width: 480px) {
    .logo-section {
        gap: 8px;
    }
    
    .brand-name {
        font-size: 18px;
    }
    
    .brand-subtitle {
        font-size: 11px;
    }
    
    .main-content {
        padding: 94px 12px 40px;
    }
    
    .tech-modules {
        grid-template-columns: 1fr;
        gap: 20px;
        height: 500px;
        padding: 15px;
    }
    
    .tech-module {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
        min-height: 140px;
    }
    
    .feature-item {
        padding: 12px;
    }
    
    .action-buttons {
        gap: 8px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .visualization-area {
        height: 550px;
        padding: 16px;
    }
    
    .central-node {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .connections-svg {
        viewBox: "0 0 400 500";
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-panel,
.visualization-area,
.status-panel {
    animation: fadeInUp 0.6s ease-out;
}

.info-panel {
    animation-delay: 0.1s;
}

.visualization-area {
    animation-delay: 0.2s;
}

.status-panel {
    animation-delay: 0.3s;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 防红链接生成器区域样式 */
.generator-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.generator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.generator-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.generator-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.generator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.card-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.card-header p {
    color: #64748b;
    font-size: 16px;
}

.notice-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #92400e;
    font-size: 14px;
}

.notice-box i {
    font-size: 18px;
    color: #f59e0b;
}

.input-section {
    margin-bottom: 30px;
}

.input-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-label i {
    margin-right: 6px;
    color: #3b82f6;
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.url-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.url-input:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.color-section {
    margin-bottom: 24px;
}

.color-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    font-size: 14px;
}

.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-radio {
    display: none;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-radio:checked + .color-option {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    transform: scale(1.1);
}

.generate-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.result-section {
    margin-top: 30px;
    animation: fadeInUp 0.5s ease;
}

.result-card {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #3b82f6;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

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

.result-label {
    font-weight: 600;
    color: #1e40af;
    font-size: 14px;
}

.result-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.result-url {
    background: rgba(59, 130, 246, 0.1);
    padding: 16px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #1e40af;
    word-break: break-all;
    margin-bottom: 16px;
    user-select: all;
}

.copy-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.qr-section {
    text-align: center;
}

.qr-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    font-size: 14px;
}

.qr-title i {
    margin-right: 6px;
    color: #3b82f6;
}

.qr-container {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

.qr-tip {
    color: #6b7280;
    font-size: 12px;
    margin: 0;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #374151;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.modal-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.modal-footer {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.link-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

.link-btn:hover {
    color: #1d4ed8;
}

/* Toast样式 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    z-index: 1001;
    animation: toastSlideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast.info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .generator-section {
        padding: 60px 0;
    }
    
    .generator-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .card-header h2 {
        font-size: 24px;
    }
    
    .header-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .modal-content {
        padding: 24px 20px;
        margin: 0 10px;
    }
    
    .color-options {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .generator-card {
        border-radius: 16px;
    }
    
    .url-input {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .color-option {
        width: 35px;
        height: 35px;
    }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 导航栏管理员按钮样式 */
.admin-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: white !important;
    border: none !important;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}