/* style.css - 统一样式 */
:root {
    --primary-color: #2c3e50; /* 深蓝色，代表专业严谨 */
    --accent-color: #3498db;  /* 亮蓝色，用于高亮 */
    --bg-color: #f4f7f9;
    --card-bg: #ffffff;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--bg-color);
    margin: 0;
}

/* 导航栏 */
nav {
    background-color: var(--primary-color);
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { color: white; font-weight: bold; font-size: 1.3rem; }
nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
nav ul li { margin-left: 30px; }
nav ul li a { 
    color: #ecf0f1; 
    text-decoration: none; 
    font-weight: 500; 
    transition: 0.3s;
    padding-bottom: 5px;
}
nav ul li a:hover, nav ul li a.active { 
    color: var(--accent-color); 
    border-bottom: 2px solid var(--accent-color); 
}

/* 内容容器 */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 通用卡片样式 */
.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

h2 { border-left: 5px solid var(--accent-color); padding-left: 15px; color: var(--primary-color); }

/* ================= 轮播图核心样式 ================= */
.slider-area {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide-pane {
    min-width: 100%;
    display: flex;
    gap: 30px;
    align-items: center; /* 垂直居中对齐 */
    padding: 10px 5px;
    box-sizing: border-box;
}

/* 左侧图片区 (对应之前 HTML 的 slide-left) */
.slide-left, .image-side {
    flex: 1.2;
    min-height: 350px; 
    display: flex;
    gap: 10px;
    background-color: #f9f9f9; 
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}

/* 新增：两张图并排显示的网格容器 */
.img-grid {
    display: flex;
    gap: 15px;
    width: 100%;
    padding: 10px;
}

.img-item {
    flex: 1;
    text-align: center;
}

.img-item img {
    width: 100%;
    height: auto !important; /* 覆盖之前的固定高度 */
    object-fit: contain !important;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.img-caption {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
    font-weight: 500;
}

/* 单张图片属性 (维持原样) */
.slide-left img:not(.img-item img), .image-side img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    border-radius: 10px;
}

/* 垂直堆叠模式 */
.v-stack {
    flex-direction: column;
}
.v-stack img {
    height: calc(50% - 5px); 
    object-fit: cover; 
}

/* 水平并排模式 */
.h-stack {
    flex-direction: row;
}
.h-stack img {
    width: calc(50% - 5px); 
    object-fit: cover; 
}

/* 右侧文字区 (对应之前 HTML 的 slide-right) */
.slide-right, .text-side {
    flex: 1;
    padding: 10px 0;
}

.slide-right h4, .text-side h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.tech-tag {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 8px;
    vertical-align: middle;
}

.slide-right p, .text-side p {
    margin: 0;
    word-break: break-word; 
    font-size: 1rem;
    color: #555;
}

/* 轮播控制 */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-btn {
    background: white;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--accent-color);
    color: white;
}

.dots-container {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--accent-color);
    width: 20px;
    border-radius: 4px;
}

/* ================= 其他原有样式 ================= */
footer { text-align: center; padding: 40px; color: #7f8c8d; font-size: 0.9rem; }

.framework-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}
.framework-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.05rem;
    color: #444;
}
.framework-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-size: 1.2rem;
}
.framework-list b { color: var(--primary-color); }
