/* CyberHawk平台与X黑手网站集成样式 */

/* 主容器样式 */
.cyberhawk-main {
    padding: 40px 20px;
    color: #00ffe1;
    position: relative;
    min-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* 粒子背景容器 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
    overflow: hidden;
}

/* CyberHawk容器 */
.cyberhawk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* CyberHawk头部样式 */
.cyberhawk-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.cyberhawk-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.cyberhawk-logo i {
    font-size: 2.5rem;
    margin-right: 15px;
    color: #00ffe1;
    text-shadow: 0 0 10px rgba(0, 255, 225, 0.7);
}

.cyberhawk-logo h1 {
    font-size: 3rem;
    color: #00ffe1;
    text-shadow: 0 0 10px rgba(0, 255, 225, 0.7);
    margin: 0;
    letter-spacing: 2px;
}

.cyberhawk-tagline {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0;
}

/* 搜索区域样式 */
.cyberhawk-search-container {
    max-width: 700px;
    margin: 0 auto 40px;
}

.cyberhawk-search-box {
    display: flex;
    align-items: center;
    background-color: rgba(26, 26, 46, 0.7);
    border: 2px solid #30336b;
    border-radius: 50px;
    padding: 5px 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cyberhawk-search-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 255, 225, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: searchScan 3s linear infinite;
}

@keyframes searchScan {
    0% {
        left: -100%;
        transform: translateZ(0);
    }
    100% {
        left: 100%;
        transform: translateZ(0);
    }
}

.cyberhawk-search-box:focus-within {
    box-shadow: 0 0 15px rgba(0, 255, 225, 0.5);
    border-color: #00ffe1;
}

.cyberhawk-search-box .search-icon {
    color: #00ffe1;
    font-size: 1.2rem;
    margin: 0 10px;
}

.cyberhawk-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 15px;
    font-size: 1rem;
    outline: none;
}

.cyberhawk-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cyberhawk-search-box .primary-btn {
    background-color: #00ffe1;
    color: #1a1a2e;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cyberhawk-search-box .primary-btn:hover {
    background-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.cyberhawk-search-tips {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* 工具区域样式 */
.cyberhawk-tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.cyberhawk-tool-section {
    background-color: rgba(26, 26, 46, 0.7);
    border-radius: 10px;
    border: 1px solid #30336b;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyberhawk-tool-section:hover {
    box-shadow: 0 0 20px rgba(0, 255, 225, 0.5);
    transform: translateY(-5px);
    border-color: #00ffe1;
}

.cyberhawk-section-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30336b;
}

.cyberhawk-section-header i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #00ffe1;
}

.cyberhawk-section-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #ffffff;
}

.cyberhawk-section-content {
    padding: 20px 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.cyberhawk-section-content button {
    background-color: rgba(48, 51, 107, 0.7);
    color: #00ffe1;
    border: 1px solid #30336b;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-align: center;
}

.cyberhawk-section-content button i {
    margin-right: 8px;
}

.cyberhawk-section-content button:hover {
    background-color: rgba(0, 255, 225, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 终端模拟器样式 */
.cyberhawk-terminal-container {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: 1px solid #30336b;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.cyberhawk-terminal-header {
    background-color: #1a1a2e;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #30336b;
}

.cyberhawk-terminal-header span {
    color: #ffffff;
    font-weight: bold;
}

.cyberhawk-terminal-controls {
    display: flex;
}

.terminal-btn {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-left: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-btn i {
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.terminal-btn:hover i {
    opacity: 1;
}

.terminal-btn.minimize {
    background-color: #ffbd2e;
}

.terminal-btn.maximize {
    background-color: #28c940;
}

.terminal-btn.close {
    background-color: #ff5f56;
}

.cyberhawk-terminal-content {
    padding: 15px;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    height: 300px;
    overflow-y: auto;
    will-change: transform;
}

.terminal-line {
    margin-bottom: 5px;
    line-height: 1.5;
}

.terminal-user {
    color: #00ffe1;
    font-weight: bold;
}

.terminal-path {
    color: #9c88ff;
}

.terminal-command {
    color: #ffffff;
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background-color: #00ff00;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .cyberhawk-tools-container {
        grid-template-columns: 1fr;
    }
    
    .cyberhawk-section-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .cyberhawk-logo h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .cyberhawk-section-content {
        grid-template-columns: 1fr;
    }
    
    .cyberhawk-logo {
        flex-direction: column;
    }
    
    .cyberhawk-logo i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .cyberhawk-logo h1 {
        font-size: 2rem;
    }
}

/* 确保与X黑手网站样式兼容 */
.cyberhawk-main a {
    color: #00ffe1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cyberhawk-main a:hover {
    color: #ffffff;
}

/* 激活状态的导航项 */
nav ul li a.active {
    color: #00ffe1;
    border-bottom: 2px solid #00ffe1;
}

/* 确保下拉菜单在CyberHawk页面正常工作 */
.dropdown-content {
    z-index: 1000;
}

/* 页脚样式调整 */
.footer {
    margin-top: 50px;
    background-color: rgba(26, 26, 46, 0.9);
    border-top: 1px solid #30336b;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #00ffe1;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #00ffe1;
}

.contact-info li {
    display: flex;
    align-items: center;
    color: #ffffff;
}

.contact-info li i {
    margin-right: 10px;
    color: #00ffe1;
}

.footer-bottom {
    border-top: 1px solid #30336b;
    padding-top: 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    max-width: 300px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-logo h1 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin: 0;
}

.footer-logo h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 5px 0;
}

.footer-logo p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.footer-text h3 {
    color: #00ffe1;
    margin: 0 0 5px;
}

.footer-text p {
    color: #ffffff;
    margin: 0;
    font-size: 0.9rem;
}

.footer-copyright {
    text-align: center;
    color: #ffffff;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 0 15px;
    }
}
