@charset "utf-8";
/* =============================================================
   个人求职/作品集网站 · 全站外部样式表 style.css
   学号：20250102  姓名：李四
   课程：《Web网页制作》综合实战大作业

   【教学说明】本文件按 CSS 知识点分段编排，注释即教案：
     1. 页面属性与全局文本
     2. 选择器种类：标签 / 类 / ID / 后代 / 群组 / 伪类
     3. 链接四态 a:link / a:visited / a:hover / a:active
     4. 列表美化：去项目符号 + 浮动，做成水平导航栏
     5. 盒模型：margin / border / padding / width
     6. 浮动图文混排：float + clear
     7. 表格美化：边框合并、斑马纹、合并单元格
     8. 表单控件美化
   ============================================================= */

/* ---------- 1. 页面属性与全局文本（对应考证：页面属性设置） ---------- */
body {
	background-color: #f4f8fd;            /* 页面背景颜色 */
	background-image: url(../images/scene/bg_tile.gif);
	background-repeat: repeat;
	color: #233044;                       /* 默认文本颜色 */
	font-family: "微软雅黑", "Hiragino Sans GB", "宋体", sans-serif;
	font-size: 14px;
	line-height: 1.9;                     /* 行高：图文排版的基础 */
	margin: 0;
	padding: 0;
}

/* ---------- 2. 选择器种类示范 ---------- */
/* 标签选择器 */
p { margin: 0 0 12px 0; text-indent: 2em; }   /* 首行缩进 2 字符 */
p.noindent { text-indent: 0; }                 /* 类选择器覆盖标签选择器 */
h1, h2, h3 { font-family: "微软雅黑", sans-serif; }  /* 群组选择器 */

/* 类选择器 */
.highlight { color: #e07b39; font-weight: bold; }
.muted { color: #7a869c; font-size: 12px; }
.center { text-align: center; }
.clearfix { clear: both; }                    /* 清除浮动 */

/* ID 选择器 */
#container { width: 960px; margin: 0 auto; }  /* 居中：上下 0，左右 auto */
#main { width: 690px; float: left; padding: 20px 10px 30px 0; }
#sidebar { width: 240px; float: right; padding: 20px 0 30px 0; }

/* 后代选择器：只作用于 #main 内的 h2 */
#main h2 {
	font-size: 22px;
	color: #1b3a6b;
	border-left: 6px solid #e07b39;
	padding-left: 12px;
	margin: 26px 0 14px 0;
	clear: both;
}
#main h3 { font-size: 17px; color: #1687a7; margin: 20px 0 8px 0; clear: both; }

/* 伪类：首字下沉（图文排版常见手法） */
.lead:first-letter {
	font-size: 32px;
	font-weight: bold;
	color: #1b3a6b;
	float: left;
	line-height: 1;
	margin: 4px 6px 0 0;
}
/* 伪类：段落首行不缩进的引言 */
blockquote.intro {
	background-color: #eaf2fb;
	border-left: 4px solid #1687a7;
	margin: 14px 0;
	padding: 10px 16px;
	color: #33465f;
	text-indent: 0;
}

/* ---------- 3. 链接四态（考证硬性要求：必须四态齐全） ---------- */
a:link    { color: #1b3a6b; text-decoration: none; }
a:visited { color: #6b4a8c; text-decoration: none; }
a:hover   { color: #e07b39; text-decoration: underline; }
a:active  { color: #1687a7; text-decoration: underline; }

/* ---------- 4. 列表美化：无序列表 → 水平导航栏 ---------- */
#nav { background-color: #1b3a6b; border-bottom: 4px solid #e07b39; }
#nav ul {
	list-style-type: none;    /* 去除项目符号（考证考点） */
	margin: 0;
	padding: 0;
	overflow: hidden;         /* 清除子元素浮动，撑开父元素高度 */
}
#nav li { float: left; }     /* 列表项水平排列（考证考点） */
#nav li a {
	display: block;           /* 让整个矩形区域可点击 */
	padding: 13px 25px;
	color: #e8f0fa;
	font-size: 15px;
	border-right: 1px solid #33547f;
}
#nav li a:link, #nav li a:visited { color: #e8f0fa; text-decoration: none; }
#nav li a:hover {
	background-color: #e07b39;
	color: #ffffff;
	text-decoration: none;
}
#nav li a:active { background-color: #1687a7; color: #ffffff; }
/* 第二种列表美化：侧栏自定义方形符号 */
#sidebar ul { list-style-type: square; padding-left: 20px; margin: 0; }
#sidebar li { line-height: 2.1; }

/* ---------- 5. 盒模型：内容 + 内边距 + 边框 + 外边距 ---------- */
#header {
	background-color: #1b3a6b;
	background-image: url(../images/scene/banner.jpg);
	background-repeat: no-repeat;
	background-position: center top;
	color: #ffffff;
	text-align: center;
	padding: 72px 20px 30px 20px;
	border-bottom: 5px solid #e07b39;
}
#header h1 { font-size: 32px; letter-spacing: 5px; margin: 0 0 6px 0; }
#header p { margin: 0; color: #cfe0f5; font-size: 15px; text-indent: 0; }

.card {
	background-color: #ffffff;
	border: 1px solid #d6e0ee;
	padding: 16px 20px;
	margin-bottom: 18px;
}
.card h4 { margin: 0 0 10px 0; color: #1b3a6b; font-size: 16px; }
.side_box {
	background-color: #ffffff;
	border: 1px solid #d6e0ee;
	border-top: 3px solid #1687a7;
	padding: 12px 15px;
	margin-bottom: 16px;
}
.side_box h4 {
	margin: 0 0 8px 0;
	font-size: 16px;
	color: #1b3a6b;
	border-bottom: 1px solid #d6e0ee;
	padding-bottom: 6px;
}

/* ---------- 6. 浮动图文混排（本样例的重点考点） ---------- */
/* 图片左浮动，文字自动环绕其右侧 —— CSS 版图文混排 */
img.float_left {
	float: left;
	margin: 4px 16px 10px 0;
	border: 4px solid #ffffff;
	outline: 1px solid #c3d2e6;
}
img.float_right {
	float: right;
	margin: 4px 0 10px 16px;
	border: 4px solid #ffffff;
	outline: 1px solid #c3d2e6;
}
/* 头像：CSS 实现圆形裁切 */
img.avatar {
	float: left;
	width: 160px;
	height: 160px;
	border: 5px solid #ffffff;
	outline: 2px solid #1b3a6b;
	margin: 4px 20px 12px 0;
}
/* 作品缩略图：CSS 悬停放大边框颜色（CSS 美化） */
img.work_thumb {
	border: 3px solid #ffffff;
	outline: 1px solid #c3d2e6;
}
img.work_thumb:hover { outline: 2px solid #e07b39; }
/* 图注 */
.figure {
	text-align: center;
	font-size: 12px;
	color: #7a869c;
	margin: 6px 0 14px 0;
	text-indent: 0;
}
/* 清除浮动，避免后续段落被环绕 */
.clear { clear: both; height: 0; line-height: 0; }

/* 技能条：纯 CSS 实现的盒模型效果 */
.skill_bar {
	background-color: #e3ecf7;
	border: 1px solid #c3d2e6;
	height: 18px;
	margin: 4px 0 12px 0;
}
.skill_bar span {
	display: block;
	height: 18px;
	background-color: #1687a7;
	color: #ffffff;
	font-size: 12px;
	text-align: right;
	padding-right: 6px;
	line-height: 18px;
}

/* ---------- 7. 表格布局与美化 ---------- */
table.layout {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #d6e0ee;
	background-color: #ffffff;
	margin-bottom: 20px;
}
table.layout td { vertical-align: top; padding: 0; }

table.data {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 2px;             /* 表格间距（考证考点） */
	background-color: #eaf1f9;
	margin-bottom: 20px;
}
table.data caption {
	caption-side: top;
	font-weight: bold;
	color: #e07b39;
	font-size: 15px;
	padding-bottom: 8px;
}
table.data th {
	background-color: #1b3a6b;
	color: #ffffff;
	padding: 9px 10px;               /* 单元格填充（考证考点） */
	border: 1px solid #c3d2e6;
	text-align: left;
}
table.data td {
	background-color: #ffffff;
	padding: 9px 10px;
	border: 1px solid #c3d2e6;
	vertical-align: top;
}
table.data tr.alt td { background-color: #f2f7fd; }  /* 斑马纹 */
table.inner { width: 100%; border-collapse: collapse; }
table.inner td { border: 1px solid #e0e8f3; padding: 6px 8px; background-color: #ffffff; }

/* 作品集表格：每个单元格是一张作品卡 */
table.works {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}
table.works td {
	border: 1px solid #d6e0ee;
	background-color: #ffffff;
	padding: 10px;
	text-align: center;
	vertical-align: top;
	width: 33%;
}
table.works td p { text-indent: 0; margin: 6px 0 0 0; font-size: 13px; }
table.works td p.title { font-weight: bold; color: #1b3a6b; font-size: 14px; }

/* ---------- 8. 表单控件美化 ---------- */
form.contact {
	background-color: #ffffff;
	border: 1px solid #d6e0ee;
	padding: 20px 24px;
}
form.contact fieldset {
	border: 1px solid #d6e0ee;
	margin-bottom: 16px;
	padding: 12px 16px;
}
form.contact legend { font-weight: bold; color: #1b3a6b; padding: 0 8px; }
form.contact p { margin: 10px 0; text-indent: 0; }
form.contact label { display: inline-block; width: 100px; vertical-align: middle; }
form.contact input, form.contact select, form.contact textarea {
	border: 1px solid #b9c9dd;
	background-color: #fbfdff;
	padding: 6px 7px;
	font-size: 14px;
	font-family: inherit;
}
form.contact input:focus, form.contact textarea:focus {
	border-color: #e07b39;
	background-color: #fffaf5;
}
form.contact input[type="text"], form.contact input[type="password"], form.contact select { width: 210px; }
form.contact textarea { width: 380px; vertical-align: middle; }
.btn {
	background-color: #1b3a6b;
	color: #ffffff;
	border: 1px solid #122a50;
	padding: 8px 26px;
	font-size: 14px;
	cursor: pointer;
}
.btn:hover { background-color: #e07b39; border-color: #b9622b; }
.btn_reset { background-color: #1687a7; border-color: #106b85; }
.btn_reset:hover { background-color: #e07b39; border-color: #b9622b; }

/* ---------- 9. 层与轮换图像 ---------- */
#float_layer {
	position: absolute;
	left: 30px;
	top: 130px;
	width: 200px;
	background-color: #fff7ee;
	border: 2px dashed #e07b39;
	padding: 10px 14px;
	font-size: 14px;
	color: #8a4a19;
	z-index: 10;
}
#float_layer.behavior_bg { background-color: #eaf7fb; }
#banner_roll { position: relative; height: 300px; overflow: hidden; border: 1px solid #d6e0ee; background-color: #eaf1f9; }
#banner_roll img { position: absolute; left: 0; top: 0; width: 660px; height: 300px; display: none; }

/* ---------- 10. 页脚 ---------- */
#footer {
	clear: both;
	background-color: #1b3a6b;
	color: #cfe0f5;
	text-align: center;
	padding: 18px 10px;
	font-size: 13px;
	border-top: 5px solid #e07b39;
	margin-top: 20px;
}
#footer p { text-indent: 0; margin: 4px 0; }
#footer a:link, #footer a:visited { color: #ffd2a8; }
#footer a:hover { color: #ffffff; }
