/* 全局变量 */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --cyber-green: #10b981;
    --cyber-blue: #3b82f6;
    --cyber-purple: #8b5cf6;
    --dark-bg: #0f172a;
    --darker-bg: #0a0f1f;
    --darkest-bg: #050811;
    --card-bg: rgba(15, 23, 42, 0.7);
    --light: #f8f9fa;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: rgba(148, 163, 184, 0.2);
    --success: #10b981;
    --danger: #ef4444;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--primary));
    --gradient-cyber: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(94, 129, 255, 0.3);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景装饰 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 20%);
    z-index: -1;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 头部 */
.header {
    background: rgba(5, 8, 17, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: 0.5px;
}

/* 主视觉区域 */
.hero-section {
    position: relative;
    padding: 6rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 25%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    margin-bottom: 2rem;
}

.badge-cyber {
    background: var(--gradient-cyber);
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.badge-cyber::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.badge-cyber:hover::before {
    left: 100%;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.75rem;
}

.title-line {
    display: block;
}

.title-part {
    display: inline-block;
    color: var(--text-primary);
}

.title-highlight {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.title-highlight::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(99, 102, 241, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.7;
}

/* 主视觉特性 */
.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon-cyber {
    width: 65px;
    height: 65px;
    background: var(--glass-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.7rem;
    color: var(--accent);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-item:hover .feature-icon-cyber {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.2);
}

.feature-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* 主视觉CTA */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cyber-btn {
    border-radius: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 0;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.cyber-btn .cyber-btn-inner {
    display: block;
    padding: 1.1rem 2.2rem;
    background: var(--gradient-primary);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.cyber-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.6);
}

.cyber-btn:hover .cyber-btn-inner {
    background: var(--gradient-secondary);
}

.btn-secondary {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary .cyber-btn-inner {
    background: var(--gradient-secondary);
}

.btn-secondary:hover {
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6);
}

/* 主视觉图形 */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.cyber-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 1rem;
}

.grid-line {
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 4px;
    animation: pulseGrid 3s infinite;
}

.grid-line:nth-child(2n) {
    animation-delay: 0.5s;
}

.grid-line:nth-child(3n) {
    animation-delay: 1s;
}

.cyber-card {
    background: var(--glass-bg);
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

.cyber-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.card-header-cyber {
    background: rgba(5, 8, 17, 0.8);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cyber-green);
    box-shadow: 0 0 10px var(--cyber-green);
}

.card-header-cyber h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.card-content {
    padding: 9.0rem;
}

.encryption-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* 粒子效果 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.particle:nth-child(1) {
    width: 10px;
    height: 10px;
    top: 20%;
    left: 10%;
    animation: float 8s infinite ease-in-out;
}

.particle:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 60%;
    right: 15%;
    animation: float 10s infinite ease-in-out 1s;
}

.particle:nth-child(3) {
    width: 8px;
    height: 8px;
    bottom: 30%;
    left: 20%;
    animation: float 7s infinite ease-in-out 0.5s;
}

.particle:nth-child(4) {
    width: 12px;
    height: 12px;
    top: 40%;
    right: 25%;
    animation: float 9s infinite ease-in-out 1.5s;
}

.particle:nth-child(5) {
    width: 6px;
    height: 6px;
    bottom: 20%;
    right: 10%;
    animation: float 6s infinite ease-in-out 2s;
}



.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.advantage-card {
    background: var(--glass-bg);
    border-radius: 22px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.advantage-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.advantage-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.advantage-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* 加密工具区域 */
.encryption-tool {
    padding: 6rem 0;
}

.tool-container {
    max-width: 950px; /* 增加容器宽度 */
    margin: 0 auto;
}

.tool-container .cyber-card {
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card-header-cyber h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

/* 结果展示 */
.result-content {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.result-content i {
    font-size: 2.75rem;
}

.result-content .result-text {
    flex: 1;
}

.result-content .result-text h4 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.3rem;
}

.result-content .result-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 标签页 */
.cyber-tabs {
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2.5rem;
}

.cyber-tabs .nav-link {
    border: none;
    color: var(--text-secondary);
    padding: 1.4rem 2.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0;
    font-size: 1.15rem;
}

.cyber-tabs .nav-link.active {
    color: var(--primary);
    background-color: transparent;
}

.cyber-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.cyber-tabs .nav-link:hover {
    color: var(--accent);
}

/* 上传区域 */
.upload-area-cyber {
    border: 2px dashed var(--glass-border);
    border-radius: 25px;
    padding: 5rem 3rem; /* 增加内边距 */
    text-align: center;
    transition: all 0.4s ease;
    background: rgba(5, 8, 17, 0.6);
    cursor: pointer;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.upload-area-cyber:hover {
    background: rgba(5, 8, 17, 0.8);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.upload-area-cyber i {
    font-size: 5rem; /* 增大图标 */
    color: var(--primary);
    margin-bottom: 2rem; /* 增加下边距 */
    display: block;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.upload-area-cyber h3 {
    font-size: 2rem; /* 增大标题 */
    font-weight: 700;
    margin-bottom: 1.5rem; /* 增加下边距 */
}

.upload-area-cyber p {
    color: var(--text-secondary);
    max-width: 85%; /* 调整最大宽度 */
    margin: 0 auto;
    font-size: 1.2rem; /* 增大字体 */
    line-height: 1.7;
}

/* 警告框 */
.alert {
    border-radius: 20px;
    border: none;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.alert::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
}

.alert-success::before {
    background: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
}

.alert-danger::before {
    background: var(--danger);
}


.architecture-container {
    max-width: 1100px; /* 增加容器宽度 */
    margin: 0 auto;
}

.architecture-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem; /* 增加间距 */
    justify-content: center;
}

.architecture-step {
    flex: 1;
    min-width: 320px; /* 增加最小宽度 */
    display: flex;
    gap: 1.75rem;
    align-items: center;
    padding: 2rem; /* 增加内边距 */
    background: var(--glass-bg);
    border-radius: 22px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.architecture-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step-number-cyber {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.step-content h3 {
    font-size: 1.4rem; /* 增大标题 */
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.1rem; /* 增大字体 */
}

/* 动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-15px) translateX(10px);
    }
    50% {
        transform: translateY(10px) translateX(-15px);
    }
    75% {
        transform: translateY(-10px) translateX(15px);
    }
}

@keyframes pulseGrid {
    0%, 100% {
        border-color: rgba(99, 102, 241, 0.2);
    }
    50% {
        border-color: rgba(99, 102, 241, 0.5);
    }
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 4rem 0 3rem;
    background: rgba(5, 8, 17, 0.95);
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
}

.footer p {
    margin: 0.6rem 0;
    font-size: 1.05rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-grid {
        gap: 3rem;
    }
    
    .tool-container {
        max-width: 850px;
    }
    
    .architecture-container {
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 5rem 0;
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .hero-title {
        font-size: 2.6rem;
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .upload-area-cyber {
        padding: 4rem 2.5rem; /* 调整内边距 */
    }
    
    .upload-area-cyber i {
        font-size: 4.5rem;
    }
    
    .result-content {
        flex-direction: column;
        text-align: center;
    }
    
    .architecture-step {
        min-width: 100%;
    }
    
    .tool-container {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-item {
        flex-direction: row;
        text-align: left;
        gap: 1.25rem;
    }
    
    .feature-text {
        text-align: left;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cyber-tabs .nav-link {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }
    
    .upload-area-cyber {
        padding: 3.5rem 2rem; /* 调整内边距 */
    }
    
    .upload-area-cyber i {
        font-size: 4rem;
    }
    
    .upload-area-cyber h3 {
        font-size: 1.7rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-card {
        padding: 2rem 1.75rem;
    }
    
    .advantage-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .advantage-card h3 {
        font-size: 1.4rem;
    }
    
    .tool-container {
        max-width: 100%;
    }
    
    .architecture-container {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-badge {
        margin-bottom: 1.5rem;
    }
    
    .badge-cyber {
        padding: 0.5rem 1.3rem;
        font-size: 0.85rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta .cyber-btn .cyber-btn-inner {
        padding: 1rem 1.8rem;
        font-size: 1rem;
    }
    
    .card-header-cyber {
        padding: 1.25rem;
    }
    
    .card-header-cyber h2 {
        font-size: 1.5rem;
    }
    
    .upload-area-cyber {
        padding: 3rem 1.75rem;
    }
    
    .upload-area-cyber i {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    
    .upload-area-cyber h3 {
        font-size: 1.5rem;
    }
    
    .upload-area-cyber p {
        font-size: 1rem;
    }
    
    .alert {
        padding: 1.5rem;
    }
    
    .step-number-cyber {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-content h3 {
        font-size: 1.3rem;
    }
    
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer p {
        font-size: 1rem;
    }
}