/* 全局样式 */
:root {
    --primary-color: #1e5631;
    --secondary-color: #8b0000;
    --accent-color: #d4af37;
    --bg-color: #f5f5f5;
    --text-color: #333;
    --light-text: #f5f5f5;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: #fff;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --glow-color: rgba(212, 175, 55, 0.5);
}

@font-face {
    font-family: 'ZCOOL XiaoWei';
    src: url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&display=swap');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ZCOOL XiaoWei', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M15,15 L85,15 L85,85 L15,85 Z" stroke="%23d4af3730" fill="none" stroke-width="0.5"/></svg>');
    background-size: 30px 30px;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 40px 0;
    position: relative;
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 20px var(--shadow-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 0;
}

.logo-area {
    position: relative;
    height: 120px;
    margin-bottom: 20px;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--glow-color);
    overflow: hidden;
}

.taiji {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-circle::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    animation: rotate 30s linear infinite;
}

h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px var(--shadow-color);
}

.subtitle {
    font-size: 1.2em;
    color: var(--secondary-color);
    font-weight: lighter;
    letter-spacing: 5px;
    position: relative;
    display: inline-block;
}

.subtitle::before,
.subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--accent-color);
}

.subtitle::before {
    left: -40px;
}

.subtitle::after {
    right: -40px;
}

/* 导航样式 */
nav {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

nav li {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    color: var(--light-text);
    font-size: 1.1em;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-speed) ease;
}

nav li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

nav li:hover::after {
    width: 70%;
}

nav li.active {
    background-color: rgba(255, 255, 255, 0.1);
}

nav li.active::after {
    width: 90%;
}

/* 内容区域样式 */
main {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 20px var(--shadow-color);
    min-height: 600px;
    position: relative;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--accent-color);
    position: relative;
}

h2 span {
    font-size: 0.7em;
    opacity: 0.7;
    font-weight: normal;
}

/* 原型入口卡片样式 */
.prototype-entries {
    margin-bottom: 30px;
}

.prototype-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff, #f9f9f9);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border-left: 4px solid var(--primary-color);
}

.prototype-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.card-info {
    flex-grow: 1;
}

.card-info h3 {
    margin: 0 0 5px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.card-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.card-action {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    margin-left: 15px;
}

.card-action span {
    margin-right: 8px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.module {
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 10px var(--shadow-color);
    background-color: white;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.module-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.module-header h3 {
    margin: 0;
    font-size: 1.3em;
    background: linear-gradient(90deg, #f5f5f5, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.module-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.module.expanded .module-content {
    max-height: 1000px;
    padding: 20px;
}

.expand-icon {
    transition: transform var(--transition-speed) ease;
}

.module.expanded .expand-icon {
    transform: rotate(45deg);
}

.function {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(30, 86, 49, 0.2);
}

.function:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.function-name {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1em;
    position: relative;
    padding-left: 20px;
}

.function-name::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.3em;
}

.function-desc {
    color: #666;
    line-height: 1.6;
    text-align: justify;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #777;
    position: relative;
}

.divider-yin-yang {
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="19" fill="white" stroke="%23d4af37" stroke-width="1"/><path d="M20,1 a19,19 0 0,1 0,38 a9.5,9.5 0 0,1 0,-19 a9.5,9.5 0 0,0 0,-19" fill="%231e5631"/><circle cx="20" cy="10.5" r="2" fill="%23d4af37"/><circle cx="20" cy="29.5" r="2" fill="%231e5631" stroke="white" stroke-width="0.5"/></svg>');
    margin: 0 auto 15px;
}

/* 浮动菜单 */
#floating-menu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.menu-item {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: all var(--transition-speed) ease;
    position: relative;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-color);
}

.menu-item i {
    font-size: 1.3em;
}

.menu-item span {
    position: absolute;
    right: 60px;
    background-color: rgba(30, 86, 49, 0.9);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
}

.menu-item:hover span {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .module-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: 20px 0;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    nav li {
        font-size: 0.9em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    main {
        padding: 20px;
    }
    
    .menu-item span {
        display: none;
    }
} 