/* 自媒体人素材网 - 主样式文件 */

@import url('https://at.alicdn.com/t/webfont_5w0j5w7k7gh.css');

:root {
  --dark-bg: #1a1a1a;
  --primary-color: #00c853;
  --transition: all 0.3s ease;
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ============ 导航栏 ============ */
.navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 200, 83, 0.1);
}
.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
}
.logo img { height: 50px; width: auto; }

/* 汉堡按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    color: #333;
}
.mobile-menu-toggle i { transition: transform 0.3s ease; }
.mobile-menu-toggle.active i { transform: rotate(90deg); }

/* 主菜单 */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}
.nav-link:hover {
    background: rgba(0, 200, 83, 0.1);
    color: #3B82F6;
}

/* ============ 电脑端下拉菜单 ============ */
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: white;
    box-shadow: 0 10px 35px rgba(0,0,0,0.16);
    border-radius: 12px;
    overflow: hidden;
    z-index: 9999;
    border: 1px solid rgba(0, 200, 83, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s ease;
}
.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
    transition: all 0.2s;
}
.dropdown-content a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    padding-left: 24px !important;
}
.dropdown:hover > .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    top: calc(100% + 4px);
}
.dropdown:hover > .nav-link::after {
    content: " ▴";
    margin-left: 6px;
    font-size: 10px;
    color: #3B82F6;
}

/* ============ 移动端样式 ============ */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    .mobile-menu-toggle { display: block; }

    .nav-menu {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 12px 12px;
        padding: 10px 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
    }
    .nav-menu.active {
        max-height: 700px;
        opacity: 1;
        visibility: visible;
        padding: 20px 0;
    }
    .nav-menu > li { width: 100%; }
    .nav-link {
        padding: 16px 25px;
        border-radius: 0;
    }

    /* 移动端下拉菜单 */
    .dropdown-content {
        position: static;
        transform: none !important;
        left: auto !important;
        box-shadow: none;
        border-radius: 0;
        background: #f8f9fa;
        display: none;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
    }
    .dropdown.active .dropdown-content {
        display: block;
        max-height: 500px;
        opacity: 1;
        padding: 8px 0;
    }
    .dropdown-content a {
        padding: 14px 25px 14px 50px !important;
        color: #555;
    }

    /* 移动端箭头 */
    .dropdown > .nav-link::after {
        content: " ▾";
        float: right;
        margin-top: 4px;
    }
    .dropdown.active > .nav-link::after {
        content: " ▴";
    }
}
    
    /* 工具箱图标 */
    .dropdown-content a[href*="capcut"]:before {
      content: "✂️";
      margin-right: 8px;
    }
    
    .dropdown-content a[href*="bilibili"]:before {
      content: "📹";
      margin-right: 8px;
    }
    
    .dropdown-content a[href*="fontawesome"]:before {
      content: "🔤";
      margin-right: 8px;
    }
    
    .dropdown-content a[href*="iconfont"]:before {
      content: "🎨";
      margin-right: 8px;
    }
    
    .dropdown-content a[href*="icons8"]:before {
      content: "🖼️";
      margin-right: 8px;
    }
    
    .dropdown-content a[href*="feathericons"]:before {
      content: "🪶";
      margin-right: 8px;
    }
    
    .dropdown-content a[href*="flaticon"]:before {
      content: "🏷️";
      margin-right: 8px;
    }
    
    /* 小箭头 */
    .dropbtn::after {
      content: "▼";
      margin-left: 6px;
      font-size: 11px;
      transition: 0.3s;
      opacity: 0.8;
    }

/* Hero区域样式 */
.hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #fafafa 100%);
  padding: 120px 0 80px;
  text-align: center;           /* 让行内元素（如文字）水平居中 */
  color: #020101;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* 标题 - 渐变文字并确保居中 */
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 auto 20px;                 /* 上下间距 + 水平居中 */
  max-width: 100%;               /* 防止超宽时破坏布局 */
  background: linear-gradient(135deg, var(--primary-color), #00e676);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;                /* 确保 margin auto 生效（关键！） */
}

/* 副标题 - 文字居中 + 限制宽度后自动居中 */
.hero-subtitle {
  font-size: 1.4rem;
  line-height: 1.6;
  color: hsl(49, 94%, 55%);                /* 原代码写的是 #ffffff，显然在浅色背景上看不见，改成深色 */
  margin: 0 auto 50px;           /* 关键：上下间距 + 水平自动居中 */
  max-width: 680px;              /* 你原来想限制宽度，这里写全 */
  display: block;
}
/* 页脚样式 - 白色背景版 */
.footer {
  background: hsl(36, 87%, 57%);      /* 纯白背景 */
  color: hsl(0, 0%, 1%);            /* 主文字色改为深灰黑 */
  padding: 60px 0 30px;
  border-top: 1px solid #e5e5e5;  /* 可选：浅灰上边框，避免太突兀 */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);  /* 标题仍保持品牌主色，或改成 #222 如果想更稳重 */
}

.footer-section p,
.footer-section li {
  color: #555555;            /* 正文改为中等深灰，更舒服的可读性 */
  line-height: 1.8;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
}

.footer-section a {
  color: #444444;            /* 链接默认深灰 */
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-color);  /* 悬停时仍高亮为品牌色 */
}

.footer-bottom {
  border-top: 1px solid #e5e5e5;  /* 底部分隔线也改成浅灰 */
  padding-top: 30px;
  text-align: center;
  color: #888888;            /* 版权文字保持浅灰 */
}

/* 可选：如果你仍想保留 CSS 变量的方式，便于后续切换暗亮模式 */
:root {
  --light-footer-bg: #ffffff;
  --light-footer-text: #333333;
  --light-footer-muted: #555555;
  --light-footer-border: #e5e5e5;
}

/* 亮色模式下使用变量（如果你有暗亮模式切换可以这样写） */
.footer {
  background: var(--light-footer-bg);
  color: var(--light-footer-text);
}

.footer-section p,
.footer-section li,
.footer-section a {
  color: var(--light-footer-muted);
}

.footer-bottom,
.footer {
  border-color: var(--light-footer-border);
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}
