/* 1. 基础样式和背景 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 12px;
    background-color: #000000; /* 深棕色背景，与图片相似 */
    color: #f7e0e0; /* 浅色文字 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 2. 标题样式 */
h1 {
    color: #ffeb4d; /* 标题颜色 */
    font-size: 33px;
    padding: 10px 0;
    border-bottom: 2px solid #5a3c3c;
    margin-top: 100px;
    margin-bottom: 30px;
}


/* 3. 线路容器 - 核心布局 */
#circuit-container {
    display: grid;
    gap: 40px; /* 间距 */
    width: 100%;
    max-width: 1000px; /* 限制最大宽度，保证PC端美观 */
    grid-template-columns: repeat(3, 1fr); /* 默认PC端三列 */
}


/* 4. 线路卡片样式 */
.circuit-card {
    background-color: #4d2f2f; /* 卡片背景色 */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.circuit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* 卡片上部内容 */
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* 信号图标 */
.signal-icon {
    font-size: 30px;
    color: #ce4d4d;
    margin-right: 10px;
}

.signal-icon img {
	width: 35px;
	height: 35px;
}

/* 线路名称 */
.circuit-name {
    line-height: 1.2;
}

.circuit-name h3 {
    margin: 0;
    font-size: 20px; /* PC端线路名称大小 */
    color: #ffffff;
}

.circuit-name p {
    margin: 0;
    font-size: 14px; /* PC端 Simple circuit 大小 */
    color: #d4a1a1;
}

/* 信号强度文本 */
.signal-info {
    font-size: 16px; /* PC端信号强度大小 */
    margin-bottom: 15px;
    color: #37d200; /* 强调颜色 */
    font-weight: bold;
}

/* 跳转按钮 */
.enter-btn {
    background-color: #9d3d3d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%; /* 按钮宽度占满卡片 */
    font-size: 15px; /* PC端按钮字体大小 */
}

.enter-btn:hover {
    background-color: #b35151;
}

/* 5. 底部操作按钮区域 */
.action-bar {
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-around;
    gap: 40px;
}

.action-btn {
    flex-grow: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.2s, opacity 0.2s;
    color: #fff;
    background-color: #6a3c3c;
}

.action-btn:hover {
    background-color: #835252;
}

/* 6. 响应式设计（H5端优化） */
@media (max-width: 768px) {
    h1 {
        font-size: 24px;
    }

    #circuit-container {
        /* H5端（手机）改为单列垂直列表，类似图一 */
        grid-template-columns: 1fr; 
        max-width: 500px;
    }

    .circuit-card {
        flex-direction: row; /* H5端内容水平排列 */
        align-items: center;
        justify-content: space-between;
        padding: 10px;
    }

    .card-details {
        display: flex;
        align-items: center;
    }

    /* **移动端字体优化开始** */
    .circuit-name h3 {
        font-size: 17px; /* 缩小线路名称字体 */
    }

    .circuit-name p {
        font-size: 14px; /* 缩小 Simple circuit 字体 */
    }

    .signal-info {
        font-size: 14px; /* 缩小信号强度字体 */
        margin: 0 12px 0 15px;
    }

    .enter-btn {
        font-size: 14px; /* 缩小按钮字体 */
        width: auto;
        margin-left: 12px;
        padding: 8px 10px;
    }
    /* **移动端字体优化结束** */

    .action-bar {
        flex-direction: column; /* H5端按钮垂直堆叠 */
        gap: 15px;
        max-width: 400px;
    }

    .action-btn {
         width: 100%;
    }
	
}

/*--------- **新调整** ---------*/

.header-txt {
	text-align: center;
	margin-bottom: 40px;
}

.header-txt img {
	width: 400px;
}

@media (max-width: 768px) {
	
	h1 {
		margin-top: 20px;
		margin-bottom: 40px;
	}
	
	.header-txt img {
		width: 75%;
	}
	
	#circuit-container {
		gap: 20px; /* 间距 */
	}
	
	.action-bar {
		gap: 20px;
	}
	
}

@media (min-width: 768px) {
	
	.circuit-card { 
		position: relative;
	}
	
	.signal-info { 
		margin-bottom: 10px;
	}
	
	.enter-btn { 
		width: 90px; 
		position: absolute; 
		right: 15px; 
		bottom: 15px;
	}
	
}


.body-app { background: url(images/bg.jpg) top center no-repeat #000; background-size: cover;}
.code-box { display: flex; gap: 30px; font-size: 16px; color: #000;}
.code { padding: 15px 15px 5px 15px; border-radius: 5px; background: #fff;}
.code h3 { margin: 0; padding: 0 0 5px 0; text-align: center; font-size: 18px;}
.code span { display: none;}
.code img { width: 140px; height: 140px;}
@media (max-width: 768px) {
	.body-app { background: url(images/bgm.jpg) bottom center no-repeat #161827; background-size: 100% auto;}
	.code-box { display: flex; flex-direction: column; gap: 20px; text-align: center; font-size: 16px; color: #000;}
	.code { display: flex; align-items: center; padding: 15px 15px 15px 25px; border-radius: 8px; background: #fff;}
	.code h3 { flex: 1; margin: 0; padding: 0; text-align: left; font-size: 18px;}
	.code span { display: inline-block; margin-left: 30px; padding: 5px 10px; color: #fff; display: inline-block; border-radius: 10px; background: #000;}
	.code img { display: none;}
}
