/*
 * CSS 样式：现实编织者之笔 - 游戏介绍页
 * 风格：现代赛博朋克，霓虹色调，流畅交互
 * 适用范围：配合之前生成的HTML介绍页使用
 */

/* --- CSS 变量定义 --- */
:root {
    --primary-color: #00f0ff; /* Neon Cyan */
    --secondary-color: #00b4d8; /* Light Blue */
    --background-color: #0a0a0a; /* Dark Charcoal */
    --text-color: #e0e0e0; /* Light Gray */
    --card-background: #1a1a1a; /* Dark Gray Card */
    --border-color: #005f73; /* Deep Cyan Border */
    --input-background: #222; /* Dark Input Background */
    --button-hover-bg: #00d8e0; /* Lighter Cyan for Hover */
    --button-hover-text: #000; /* Black Text on Hover */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern Sans-serif */
    --font-family-code: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace; /* Monospace for Code */
}

/* --- 全局样式 --- */
body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- 容器样式 --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1); /* Neon glow effect */
    border: 1px solid var(--border-color);
}

/* --- 标题样式 --- */
h1, h2, h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--primary-color); /* Neon text shadow */
}
h1 {
    font-size: 2.5em; /* Larger title */
}
h2 {
    font-size: 1.8em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
h3 {
    font-size: 1.4em;
    margin-top: 30px;
}

/* --- 段落与列表样式 --- */
p, ul, li {
    margin-bottom: 15px;
}
ul {
    padding-left: 30px; /* Indent lists */
}
li {
    margin-bottom: 10px;
}
strong {
    color: var(--primary-color); /* Highlight important terms */
}

/* --- 内容区块样式 --- */
.section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: rgba(26, 26, 26, 0.6); /* Semi-transparent background for sections */
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* --- 表单元素样式 --- */
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--secondary-color);
}
input[type="text"],
input[type="number"],
textarea {
    width: calc(100% - 20px); /* Full width minus padding */
    padding: 10px;
    background-color: var(--input-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1em;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}

/* --- 状态显示样式 --- */
.stat-display {
    display: flex;
    justify-content: space-between; /* Space out label and value */
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: var(--input-background);
    border: 1px solid var(--border-color);
    border-radius: 5px;
}
.stat-display span {
    font-weight: bold;
    color: var(--primary-color);
}

/* --- 按钮样式 --- */
button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; /* Smooth transitions */
    margin-right: 10px;
}
button:hover {
    background-color: var(--button-hover-bg);
    color: var(--button-hover-text);
    transform: translateY(-2px); /* Subtle lift effect */
}
button:active {
    transform: translateY(0); /* Reset transform on click */
}

/* --- 配置输出区域样式 --- */
.config-output {
    background-color: var(--input-background);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    font-family: var(--font-family-code); /* Monospace for code-like text */
    white-space: pre-wrap; /* Preserve whitespace and wrap lines */
    word-break: break-word; /* Break long words */
    max-height: 300px;
    overflow-y: auto; /* Scrollable if content exceeds max-height */
    border-left: 5px solid var(--primary-color); /* Accent border */
}
.config-output.hidden {
    display: none; /* Hide when not active */
}

/* --- 页脚样式 --- */
.footer {
    text-align: center;
    margin-top: auto; /* Push footer to the bottom */
    padding: 20px;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}
.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}
.footer a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* --- 响应式设计 --- */
@media (max-width: 768px) {
    .container {
        width: 95%; /* Wider container on smaller screens */
        padding: 15px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
    button {
        width: 100%; /* Full width buttons on small screens */
        margin-bottom: 10px;
        margin-right: 0;
    }
    .form-group {
        margin-bottom: 15px;
    }
    .stat-display {
        flex-direction: column; /* Stack label and value vertically */
        align-items: flex-start;
    }
    .stat-display span {
        margin-top: 5px;
    }
}