/* 基础设置 */
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --light-color: #f1faee;
    --dark-color: #1d3557;
    --success-color: #2a9d8f;
    --max-width: 1200px;
    --terminal-bg: #2e3440;
    --terminal-text: #eceff4;
    --terminal-prompt: #88c0d0;
    --terminal-command: #a3be8c;
    --terminal-highlight: #ebcb8b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
    background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    width: 100%;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #c1121f;
}

/* 导航栏 */
header {
    background-color: var(--light-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* 英雄区域 */
.hero {
    color: var(--light-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    position: relative;
    flex: 1;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
}

/* 终端样式 */
.terminal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="3" cy="3" r="0.7" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    opacity: 0.2;
}

.terminal-window {
    width: 90%;
    max-width: 800px;
    background-color: var(--terminal-bg);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 60px);
}

.terminal-window:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.terminal-header {
    background-color: #3b4252;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #4c566a;
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    position: relative;
    transition: all 0.2s ease;
}

.terminal-button:hover {
    transform: scale(1.1);
}

.terminal-button.close {
    background-color: #bf616a;
}

.terminal-button.minimize {
    background-color: #ebcb8b;
}

.terminal-button.maximize {
    background-color: #a3be8c;
}

.terminal-title {
    font-family: 'Roboto Mono', monospace;
    color: var(--terminal-text);
    font-size: 14px;
    opacity: 0.8;
    flex-grow: 1;
    text-align: center;
}

.terminal-body {
    padding: 15px;
    font-family: 'Roboto Mono', monospace;
    color: var(--terminal-text);
    flex: 1;
    overflow-y: auto;
    background: linear-gradient(rgba(46, 52, 64, 1) 0%, rgba(46, 52, 64, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
    line-height: 1.5;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: var(--terminal-bg);
}

.terminal-body::-webkit-scrollbar-thumb {
    background-color: #4c566a;
    border-radius: 20px;
}

.terminal-line {
    display: flex;
    margin-top: 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.terminal-prompt {
    color: var(--terminal-prompt);
    margin-right: 10px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
}

.terminal-command {
    color: var(--terminal-command);
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.terminal-output {
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 2px solid rgba(136, 192, 208, 0.3);
    font-size: 14px;
    line-height: 1.5;
}

.terminal-output p {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.5;
}

.terminal-highlight {
    color: var(--terminal-highlight);
    font-weight: 500;
    position: relative;
    padding: 0 3px;
    background-color: rgba(235, 203, 139, 0.15);
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.5;
}

.terminal-cursor {
    display: inline-block;
    width: 9px;
    height: 17px;
    background-color: var(--terminal-text);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-top: -2px;
}

.logo-ascii {
    color: var(--primary-color);
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    margin: 0 auto 20px;
    display: block;
    text-shadow: 0 0 5px rgba(230, 57, 70, 0.7);
    width: 100%;
    overflow: hidden;
}

.logo-ascii pre {
    overflow: hidden;
    white-space: pre;
    margin: 0;
    font-size: 10px;
    line-height: 1;
    width: 100%;
    display: inline-block;
    transform: scale(0.9);
}

.terminal-btn {
    background-color: var(--terminal-command);
    color: var(--terminal-bg);
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    border: none;
    padding: 12px 35px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.terminal-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    background-color: var(--terminal-highlight);
    transition: all 0.3s ease;
    z-index: -1;
}

.terminal-btn:hover {
    background-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.terminal-btn:hover::before {
    height: 100%;
}

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

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* 关于我们 */
.about {
    padding: 80px 0;
}

.about h2, .services h2, .contact h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-size: 32px;
}

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

.about-text {
    flex: 1;
    padding-right: 40px;
}

.about-image {
    flex: 1;
}

.placeholder-img {
    background-color: #ddd;
    height: 300px;
    border-radius: 10px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

/* 服务 */
.services {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: #555;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
}

.contact p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    color: #555;
}

.contact-info {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.contact-icon {
    font-size: 24px;
    margin-right: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form input, .contact-form textarea {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* 页脚 */
footer {
    background-color: var(--terminal-bg);
    color: var(--terminal-text);
    padding: 8px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Roboto Mono', monospace;
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

footer .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

footer p {
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0.7;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer p::before, footer p::after {
    content: "//";
    color: var(--terminal-prompt);
    margin: 0 10px;
    opacity: 0.5;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="3" cy="3" r="0.7" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 500px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .contact-item {
        margin: 10px 0;
    }
} 