
/* 字体引入 */
@import url('https://fonts.googleapis.com/css2?family=Didot:wght@400;700&family=Inter:wght@300;400;500;600&family=Ma+Shan+Zheng&display=swap');

/* CSS变量 */
:root {
  --red: #c41e3a;
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}

/* 联系方式 */
.contacts-list {
  column-gap: 2rem;
  row-gap: 0.75rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-icon {
  flex-shrink: 0;
  color: var(--black);
}

.contact-email {
  color: var(--black);
}

.font-didot {
  font-family: 'Didot', 'Times New Roman', serif;
}

.font-chinese-signature {
  font-family: 'Ma Shan Zheng', cursive;
}

.text-red {
  color: var(--red);
}

.border-red {
  border-color: var(--red);
}

.bg-red {
  background-color: var(--red);
}

/* 杂志引号样式 */
.magazine-quote {
  position: relative;
  padding-left: 24px;
}

.magazine-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 48px;
  color: var(--red);
  opacity: 0.3;
  font-family: 'Didot', serif;
}

/* 页码样式 */
.page-number {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
}

/* 技能条样式 */
.skill-line {
  height: 1px;
  background: #e0e0e0;
  position: relative;
}

.skill-fill {
  height: 100%;
  background: var(--black);
  transition: width 0.8s ease;
}

/* 时间轴样式 */
.timeline-dotted {
  border-left: 1px dashed #ccc;
  padding-left: 20px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -4px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* 奖项徽章 */
.award-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--red);
  color: white;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 黑白图片滤镜 */
.bw-img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.bw-img:hover {
  filter: grayscale(0%);
}

/* 个人主页图片黑白滤镜 */
.bw-portal {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.bw-portal:hover {
  filter: grayscale(0%);
}

/* 手机端个人主页默认彩色 */
@media (max-width: 768px) {
  .bw-portal {
    filter: grayscale(0%);
  }
}

/* 章节标签 */
.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

/* 布局工具类 */
.max-w-6xl {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pl-6 {
  padding-left: 1.5rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-y-10 > * + * {
  margin-top: 2.5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-1 {
  flex: 1;
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.block {
  display: block;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.w-32 {
  width: 8rem;
}

.h-32 {
  height: 8rem;
}

.w-24 {
  width: 6rem;
}

.h-24 {
  height: 6rem;
}

.w-full {
  width: 100%;
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border-width: 1px;
  border-style: solid;
}

.border-black {
  border-color: var(--black);
}

.border-gray-300 {
  border-color: var(--gray-300);
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}

.border-gray-200 {
  border-top-color: var(--gray-200);
}

.border-l-2 {
  border-left-width: 2px;
  border-left-style: solid;
}

.overflow-hidden {
  overflow: hidden;
}

.object-cover {
  object-fit: cover;
}

.grayscale {
  filter: grayscale(100%);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1.6;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.8;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-normal {
  font-weight: 400;
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.normal-case {
  text-transform: none;
}

.italic {
  font-style: italic;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.hover\:text-red:hover {
  color: var(--red);
}

.transition-colors {
  transition: color 0.2s ease;
}

.group:hover .group-hover\:bg-gray-200 {
  background-color: var(--gray-200);
}

.bg-gray-100 {
  background-color: var(--gray-100);
}

.text-gray-400 {
  color: var(--gray-400);
}

.text-gray-500 {
  color: var(--gray-500);
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-\[4\/5\] {
  aspect-ratio: 4 / 5;
}

/* 响应式 */
@media (max-width: 767px) {
  .contacts-list {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-item {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .md\:text-8xl {
    font-size: 6rem;
    line-height: 1;
  }
  
  .md\:text-left {
    text-align: left;
  }
  
  .md\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* 容器 */
.container {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}
