﻿/* ===============================
   全局基础设置
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.8;
}

strong {
  color: #1d4ed8;
}

p, ul li {
  font-size: 18px ;
  line-height: 1.8 ; 
  margin-bottom: 20px ;
}

ul {
  margin-left: 20px;
}


/* ===============================
   标题样式
================================= */
.main-title {
  font-size: 36px;
  color: #4f46e5;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
}

.sub-title {
  font-size: 24px;
  color: #4338ca;
  border-left: 4px solid #6366f1;
  padding-left: 10px;
  margin: 50px 0 20px 0;
}

.section-title {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 600;
  text-align: center;
  color: #2c3e50;
  margin: 40px 0 30px;
}


/* ===============================
   导航栏
================================= */
.navbar-custom {
  background-color: #2c3e50;
  padding: 20px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.navbar-custom h1 {
  font-size: 1.5rem;
  margin: 0;
}

.navbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.navbar-links a {
  color: #ecf0f1;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.navbar-links a:hover {
  background-color: #34495e;
}

.navbar-user {
  margin-left: auto;
  font-size: 0.95rem;
}

.btn-auth {
  background-color: #3498db;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  margin-left: 10px;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-auth.logout {
  background-color: #2ecc71;
}


/* ===============================
   内容区域布局
================================= */
.content {
  padding: 30px;
}

.section-container {
  max-width: 1000px;
  margin: 10px auto 30px;
  padding: 2.5rem 15px;
  background-color: #f0f0f0;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.3); /* 0.3 表示 30% 透明 */
}

.section-row {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 12px;
  padding: 20px;
  border-radius: 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.section-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}


/* ===============================
   图文内容样式
================================= */
.image-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section-img {
  width: 270px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.section-img:hover {
  transform: scale(1.02);
}

.section-text {
  flex: 1;
  font-size: 1.25rem;
  color: #333333;
  line-height: 1.75;
  padding: 0 10px;
  text-align: justify;

}

.section-text ul li {
    line-height: 1.8;
    margin-bottom: 10px;
}

.section-text h3 {
  color: #1a202c;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.section-text p {
  text-indent: 2em;
  margin-bottom: 1em;
}

.chart-container {
    width: 100%;
    padding: 0 2.5%;
    box-sizing: border-box;
    overflow-x: auto; /* 防止小屏幕内容撑出屏幕 */
}

/* ===============================
   引用与签名
================================= */
blockquote {
  margin: 30px 0;
  padding: 15px 20px;
  background: #f0f4ff;
  border-left: 5px solid #3b82f6;
  font-style: italic;
  color: #555;
}

.signature {
  text-align: right;
  font-size: 1.2em;
  font-weight: 600;
  margin-top: 3rem;
  padding-right: 1rem;
  color: #2c3e50;
}


/* ===============================
   阅读更多链接
================================= */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3182ce;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #2c5282;
}


/* ===============================
   响应式适配
================================= */
@media (max-width: 768px) {
  .navbar-custom {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  .navbar-links {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .navbar-user {
    margin-top: 10px;
  }

  .btn-auth {
    margin: 5px 5px 0 0;
    font-size: 0.85rem;
    padding: 5px 10px;
  }

  .content {
    padding: 15px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-row {
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
  }

  .section-img {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
  }

  .section-text {
    padding: 0 10px;
    text-align: justify;
  }

/* 禁止正文区文字选择 */
.post-content {
  user-select: none;
  -webkit-user-select: none; /* Chrome / Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
}


