/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}
body {
  background: #f8fafc;
  color: #333;
  font-size: 14px;
}
a {
  text-decoration: none;
  color: inherit;
}
ul,li { list-style: none; }
input,textarea,button {
  border: none;
  outline: none;
  font-size: 14px;
}
button { cursor: pointer; }

/* 渐变主色 */
:root {
  --primary-blue: #369aff;
  --primary-purple: #6666ff;
  --light-bg: #ffffff;
  --text-gray: #666;
  --border-gray: #e5e7eb;
}
.gradient-blue-purple {
  background: linear-gradient(135deg, #6366f1 0%, #369aff 100%);
}
.btn-primary {
  background: linear-gradient(90deg, #369aff, #6366f1);
  color: #fff;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  background: #36c0ff;
  color: #fff;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 16px;
  transition: opacity 0.2s;
}
.btn-secondary:hover { opacity: 0.9; }
.copyright{
  text-align: center;
}
/* 登录页布局 */
.login-wrap {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 12%;
  background-image: url("../images/login-bg.jpg");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% auto;
}
.login-card {
  display: flex;
  width: 520px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(54, 154, 255, 0.15);
}
.login-left {
  width: 35%;
  padding: 60px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-left h2 {
  font-size: 28px;
  margin-bottom: 16px;
}
.login-left p {
  line-height: 1.8;
  opacity: 0.9;
}
.login-right {
  width: 65%;
  background: #fff;
  padding: 40px 32px;
}
.login-right h3 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 28px;
  color: #333;
}
.form-item {
  margin-bottom: 16px;
}
.form-item input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  padding: 0 12px;
}
.form-tip {
  display: flex;
  align-items: center;
  margin: 12px 0 24px;
  gap: 6px;
  font-size: 12px;
  color: var(--text-gray);
}
.form-tip a { color: var(--primary-purple); }
.login-btn {
  width: 100%;
}

/* 后台通用布局（侧边栏+主内容） */
.admin-wrap {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 300px;
  padding: 60px 40px;
  background: #f3f8ff;
  min-width: 300px;
}
.admin-header{
  display: flex;
  overflow: hidden;
}
.admin-header img:nth-of-type(1){
  width: 300px;
}
.admin-header img:nth-of-type(2){
  flex: 1;
}
.sidebar-logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 40px;
}
.user-info {
  text-align: center;
}
.user-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  margin: 0 auto 12px;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #666666;
}
.user-tel {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  margin-bottom: 20px;
}
.user-desc {
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 20px;
  font-size: 18px;
}
.user-desc span:last-child{
  color: #48cbff;
}
.user-desc .tag-cert {
  background: #48cbff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff !important;
}

.admin-main {
  flex: 1;
  background: #ffffff;
  padding: 60px 35px;
}
.main-header {
  height: 120px;
  background-image: url("https://p3-flow-image-sign.byteimg.com/tos-cn-i-a9rns2rl98/city-tech-banner.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #0f5796;
  font-weight: 500;
}
.tip-bar {
  background: #36c0ff;
  color: #fff;
  padding: 16px 24px;
  font-size: 14px;
  margin: 0 0 60px 0;
  border-radius: 10px;
}
.main-content {
  padding: 0 0 40px;
}

/* 首页功能卡片组 */
.func-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.func-card {
  background: #f3f8ff;
  border-radius: 12px;
  height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #6666ff;
  gap: 12px;
  font-weight: bold;
}
.func-card.active {
  background: url("../images/tab-bg.png") no-repeat;
  background-size: 100% 100%;
  color: #fff;
}
.func-icon .iconfont{
  font-size: 50px;
  font-weight: normal;
}

.func-icon .iconfont.icon-fenlei{
  font-size: 60px;
  font-weight: bold;
}

/* 首页数据区块 */
.data-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.data-card {
  background: #f3f8ff;
  border-radius: 12px;
  padding: 28px;
}
.data-title {
  font-size: 16px;
  color: #6666ff;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}
.data-title span:nth-of-type(1){
  padding-left: 15px;
  background: url("../images/title-bg.jpg") no-repeat left center;
}
.data-title span:nth-of-type(2){
  padding: 0 8px;
  border: 1px solid #666666;
  border-radius: 3px;
  color: #666;
  line-height: 24px;
}
.chart-box {
  height: 320px;
  display: flex;
  align-items: end;
  padding: 0 20px;
  gap: 24px;
}
.chart-bar {
  width: 32px;
  background: #369aff;
}
.keyword-ad {
  width: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
}

.keyword-ad img{
  display: block;
}

.admin-main-2{
  width: 1200px;
  margin:  auto;
}

.bread-list{
  margin-bottom: 12px;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
}

/* 分步文稿表单通用 */
.step-nav {
  display: flex;
  gap: 20px;
  margin: 24px 0;
}
.step-item {
  font-size: 34px;
  color: #e6e6e6;
  position: relative;
  border-bottom: 4px solid #e6e6e6;
  flex: 1;
}
.step-item.active { color: var(--primary-purple); font-weight: 600; border-color: #48cbff; }
.form-box {
  background: #fff;
  border-radius: 12px;
  padding: 0;
}
.form-box-title{
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
}
.form-box-title p{
  color: #999;
}
.form-box-title h2{
  color: var(--primary-purple);
}
.form-box-title h2 span{
  font-size: 14px;
  font-weight: normal;
  color: #999999;
  margin-left: 10px;
}
.form-block {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.form-block.start{
  align-items: flex-start;
}
.form-block label {
  display: block;
  font-size: 22px;
  color: #333;
  white-space: nowrap;
  margin-right: 20px;
  font-weight: bold;
  width: 70px;
  min-width: 70px;
}
.form-block input[type="text"] {
  width: 100%;
  height: 48px;
  border: 1px solid #bfbfbf;
  border-radius: 6px;
  padding: 0 12px;
}
.form-block textarea {
  width: 100%;
  height: 260px;
  border: 1px solid #bfbfbf;
  border-radius: 6px;
  padding: 12px;
  resize: vertical;
}
.form-bottom {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.form-bottom .btn-primary{
  background: var(--primary-purple);
  width: 275px;
  padding: 0;
  height: 50px;
}

.form-bottom .btn-secondary{
  width: 275px;
  background: #48cbff;
  padding: 0;
  height: 50px;
}

  /* 历史发布页面 */
.history-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.history-text{
  max-width: 80%;
}
.history-card {
  background: #f3f8ff;
  border-radius: 8px;
  padding: 25px;
  border: 2px solid #f3f8ff;
  transition: all 0.5s;
  width: 48%;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}
.history-card:hover{
  border-color: #6666ff;
}
.history-card-header {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}
span.zdsj{
  position: absolute;
  border: 2px solid #6666ff;
  border-radius: 5px;
  padding: 3px 8px;
  right: 10px;
  top: 10px;
  color: #6666ff;
}
.history-img {
  width: 147px;
  height: 147px;
  background: #e5e7eb;
  min-width: 147px;
}
.history-img img{
  width: 100%;
  height: 100%;
}
.history-text h4 {
  font-size: 22px;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-date {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 10px;
}
.am-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}
.am-pagination li {
  min-width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid var(--border-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.am-pagination .am-active {
  background: var(--primary-purple);
  color: #fff;
  border-color: var(--primary-purple);
}

.por{
  position: relative;
  margin-left: 20px;
}

.por em{
  font-style: normal;
  position: absolute;
  right: 10px;
  top: 14px;
  color: #777;
}

.form-block .por input{
  width: 115px;
}

.history-text p{
  color:#666;
  margin-top:4px
}

.history-text .tag{
  color: #48cbff;
  margin-top: 20px;
}

.history-text .tag span{
  margin-right: 20px;
}

/* 面包屑导航 */
.breadcrumb {
  color: #999;
  margin-bottom: 24px;
  font-size: 13px;
  border-bottom: 1px solid #ebebeb;
  padding-bottom: 18px;
  width: 100%;
}
.breadcrumb a {
  color: #666;
  text-decoration: none;
}
/* 主体左右容器 */
.container-detail {
  margin: 50px auto;
  max-width: 1455px;
  display: flex;
  flex-wrap: wrap;
}
/* 左侧侧边栏 */
.container-detail .sidebar {
  background: #f3f8ff;
  padding: 37px;
  border-radius: 4px;
  width: 400px;
}
.sidebar-item {
  margin-bottom: 30px;
}
.sidebar-label {
  font-size: 13px;
  color: #999999;
  margin-bottom: 8px;
}
.sidebar-text {
  font-size: 18px;
  line-height: 1.6;
}
/* Swiper 轮播容器样式 */
.swiper-box {
  width: 100%;
  height: 220px;
  background: #999;
  border-radius: 2px;
}
.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #888;
  color: #fff;
}
/* 右侧内容区 */
.container-detail .main-content {
  background: #f3f8ff;
  padding: 24px;
  border-radius: 4px;
  flex: 1;
  margin-left: 55px;
}
.content-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
  color: #999;
}

.tag-group a {
  color: #48cbff;
  text-decoration: none;
  margin-left: 8px;
}
h1.title,h2.title {
  font-size: 26px;
  color: #6666ff;
  margin-bottom: 16px;
  font-weight: 600;
}
.sub-title-box {
  background: #fff;
  padding: 12px 16px;
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 13px;
  color: #444;
}
.article-text {
  line-height: 1.8;
  color: #333;
  font-size: 14px;
}
.article-text p {
  margin-bottom: 12px;
}

.index-header{
  position: relative;
}

.index-header .index-header-bg{
  width: 100%;
}

.index-header form{
  position: absolute;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 50px;
  box-shadow: 0 0 1px 0 #d1f1fc;
  display: flex;
  background: #fff;
  align-items: center;
  border-radius: 50px;
  padding: 0 20px;
}

.index-header form img{
  width: 29px;
  display: block;
  height: 29px;
  margin-right: 10px;
  min-width: 29px;
}

.index-header form input{
  flex: 1;
  padding-left: 10px;
  border-left: 1px solid #5fd2ff;
  height: 25px;
  font-size: 18px;
}

.index-header form input::-webkit-input-placeholder{
  color: #999;
}

.admin-main-index{
  max-width: 1500px;
  margin: auto;
}