/* style.css - 150%布局版本 */
body, button, input, textarea, select { font-family: 'Times New Roman', serif; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* 基础字体大小 */
}

body {
/*    font-family: 'Inter', sans-serif; */
    line-height: 1.8; /* 增加行高 */
    color: #333;
    background-color: #f8f9fa;
    font-size: 1.125rem; /* 增加基础字体大小 (18px) */
}

.container {
    width: 100%;
    max-width: 1800px; /* 从1200px增加到1800px */
    margin: 0 auto;
    padding: 0 30px; /* 增加水平内边距 */
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1); /* 增加阴影强度 */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0; /* 增加导航栏内边距 */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px; /* 增加内边距 */
}

.logo {
    font-size: 36px; /* 增加logo大小 (24px -> 36px) */
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 45px; /* 增加间距 (30px -> 45px) */
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 24px; /* 增加字体大小 (16px -> 24px) */
    transition: color 0.3s;
    position: relative;
    letter-spacing: 0.5px; /* 增加字母间距 */
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3498db;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -7.5px; /* 增加下划线距离 */
    left: 0;
    width: 100%;
    height: 3px; /* 增加下划线粗细 */
    background-color: #3498db;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 36px; /* 增加图标大小 */
    color: #2c3e50;
    cursor: pointer;
    padding: 10px;
}

/* Hero Section */
.hero {
    padding: 175px 0 75px; /* 增加内边距 (150px 0 80px -> 225px 0 120px) */
    background: linear-gradient(135deg, #FFE9C3 0%, #FFE9C3 100%);
    color: white;
    text-align: left;
    margin-top: 20px; /* 为固定导航栏增加空间 */
    color: #000; /* 新增：将颜色改为黑色 */
}

.hero h1 {
    font-size: 72px; /* 增加标题大小 (48px -> 72px) */
    margin-bottom: 30px; /* 增加底部间距 */
    font-weight: 700;
    line-height: 1.2;
    color: #000; /* 新增：将颜色改为黑色 */
}

.hero p {
    font-size: 30px; /* 增加字体大小 (20px -> 30px) */
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

/* Modules Section */
.modules {
    padding: 40px 0; /* 增加内边距 */
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* 增加卡片最小宽度 */
    gap: 45px; /* 增加间距 */
    margin-top: 30px; /* 增加顶部间距 */
}

.module-card {
    background: white;
    border-radius: 15px; /* 增加圆角 */
    padding: 75px; /* 增加内边距 */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* 增加阴影强度 */
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-15px); /* 增加悬停上移距离 */
    box-shadow: 0 23px 45px rgba(0, 0, 0, 0.15); /* 增加悬停阴影 */
}

.module-icon {
    width: 105px; /* 增加图标容器大小 (70px -> 105px) */
    height: 105px;
    background: linear-gradient(135deg, #FFE9C3 0%, #FFE9C3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px; /* 增加底部间距 */
}

.module-icon i {
    font-size: 45px; /* 增加图标大小 (30px -> 45px) */
    color: white;
}

.module-card h3 {
    font-size: 28px; /* 增加字体大小 (22px -> 33px) */
    margin-bottom: 22px; /* 增加底部间距 */
    color: #2c3e50;
    line-height: 1.3;
}

.module-card p {
    color: #666;
    margin-bottom: 45px; /* 增加底部间距 */
    flex-grow: 1;
    font-size: 1.2rem; /* 增加字体大小 */
    line-height: 1.8;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #FFE9C3 0%, #FFE9C3 100%);
    color: #000;
    padding: 18px 45px; /* 增加内边距 */
    border-radius: 8px; /* 增加圆角 */
    text-decoration: none;
    font-weight: 500;
    font-size: 1.25rem; /* 增加字体大小 */
    transition: opacity 0.3s, transform 0.3s;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

.btn:hover {
    opacity: 0.9;
    transform: scale(1.05); /* 增加悬停缩放效果 */
}

/* Server Section */
.server {
    padding: 120px 0; /* 增加内边距 */
    background-color: #f1f5f9;
}

.server h2 {
    text-align: center;
    font-size: 50px; /* 增加字体大小 (36px -> 54px) */
    margin-bottom: 75px; /* 增加底部间距 */
    color: #2c3e50;
    line-height: 1.2;
}

.server-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(375px, 1fr)); /* 增加卡片最小宽度 */
    gap: 45px; /* 增加间距 */
}

.info-card {
    background: white;
    padding: 45px; /* 增加内边距 */
    border-radius: 15px; /* 增加圆角 */
    text-align: center;
    box-shadow: 0 8px 23px rgba(0, 0, 0, 0.08); /* 增加阴影强度 */
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-10px); /* 增加悬停效果 */
}

.info-card i {
    font-size: 60px; /* 增加图标大小 (40px -> 60px) */
    color: #FFE9C3;
    margin-bottom: 30px; /* 增加底部间距 */
}

.info-card h3 {
    font-size: 30px; /* 增加字体大小 (20px -> 30px) */
    margin-bottom: 22px; /* 增加底部间距 */
    color: #2c3e50;
    line-height: 1.3;
}

.info-card p {
    color: #666;
    font-size: 1.125rem; /* 增加字体大小 */
    line-height: 1.8;
}

/* About Section */
.about {
    padding: 120px 0; /* 增加内边距 */
}

.about h2 {
    text-align: center;
    font-size: 54px; /* 增加字体大小 (36px -> 54px) */
    margin-bottom: 75px; /* 增加底部间距 */
    color: #2c3e50;
    line-height: 1.2;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* 增加最小宽度 */
    gap: 75px; /* 增加间距 */
    align-items: center;
}

.about-text p {
    margin-bottom: 30px; /* 增加底部间距 */
    color: #666;
    font-size: 1.375rem; /* 增加字体大小 (17px -> 22px) */
    line-height: 2; /* 增加行高 */
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 450px; /* 增加宽度 (300px -> 450px) */
    height: 450px; /* 增加高度 */
    background: linear-gradient(135deg, #FFE9C3 0%, #FFE9C3 100%);
    border-radius: 15px; /* 增加圆角 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder i {
    font-size: 150px; /* 增加图标大小 (100px -> 150px) */
    color: white;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding:50px 0; /* 增加内边距 */
    text-align: center;
    position: fixed; /* 新增：固定定位 */
    bottom: 0; /* 新增：固定在底部 */
    left: 0; /* 新增：左对齐 */
    width: 100%; /* 新增：全宽度 */
    z-index: 1000; /* 新增：确保在最上层 */
}

.footer p {
    margin-bottom: 0px; /* 增加底部间距 */
    opacity: 0.8;
    font-size: 1.125rem; /* 增加字体大小 */
}

.icp {
    font-size: 1.125rem; /* 增加字体大小 (14px -> 18px) */
    margin-bottom: 20px; /* 增加底部间距 */
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px; /* 增加间距 */
    margin-top: 2px; /* 增加顶部间距 */
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.125rem; /* 增加字体大小 */
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px; /* 移动端基础字体大小 */
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 84px; /* 调整顶部位置 */
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 30px 0; /* 增加内边距 */
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); /* 增加阴影强度 */
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s, opacity 0.3s;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu li {
        margin: 22px 0; /* 增加间距 */
    }
    
    .nav-menu a {
        font-size: 1.5rem; /* 调整移动端字体大小 */
    }
    
    .hero {
        padding: 100px 0 60px; /* 调整移动端内边距 */
    }
    
    .hero h1 {
        font-size: 2.5rem; /* 调整移动端标题大小 */
    }
    
    .hero p {
        font-size: 1.25rem; /* 调整移动端字体大小 */
    }
    
    .module-grid {
        grid-template-columns: 1fr;
        gap: 40px; /* 调整移动端间距 */
    }
    
    .module-card {
        padding: 40px; /* 调整移动端内边距 */
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px; /* 调整移动端间距 */
    }
    
    .image-placeholder {
        width: 320px; /* 调整移动端图片容器大小 */
        height: 320px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px; /* 调整移动端间距 */
    }
    
    .container {
        padding: 0 20px; /* 调整移动端容器内边距 */
    }
}

/* 针对更大屏幕的优化 */
@media (min-width: 1920px) {
    html {
        font-size: 18px; /* 在大屏幕上增加基础字体大小 */
    }
    
    .container {
        max-width: 1600px; /* 增加最大宽度 */
    }
}

/* Server page specific navigation */
.server .navbar .nav-menu a[href="server.html"],
.server .navbar .nav-menu a[href*="server"] {
    color: #3498db;
}

.server .navbar .nav-menu a[href="server.html"]::after,
.server .navbar .nav-menu a[href*="server"]::after {
    content: '';
    position: absolute;
    bottom: -7.5px; /* 调整下划线距离 */
    left: 0;
    width: 100%;
    height: 3px; /* 调整下划线粗细 */
    background-color: #3498db;
}

/* ===== 新增：分辨率自适应系统 ===== */

/* 动态根字体大小 - 基于屏幕宽度 */
:root {
  font-size: calc(12px + 0.208vw); /* 动态计算字体大小，在1K~2K间平滑过渡 */
}

/* 1K分辨率适配 (1920x1080及以下) */
@media (max-width: 1920px) {
  :root {
    font-size: 12px; /* 1K分辨率基础字体大小 */
  }
  
  .container {
    max-width: 1400px; /* 1K下调整最大宽度，保持比例 */
    transform: scale(0.9); /* 整体轻微缩放 */
    transform-origin: top center; /* 缩放原点在顶部居中 */
  }
  
  /* 微调导航栏在缩放后的位置 */
  .navbar {
    transform: none; /* 导航栏不缩放 */
  }
  
  /* 调整英雄区域间距 */
  .hero {
    padding: 150px 0 60px;
  }
  
  .hero h1 {
    font-size: 3.5rem; /* 使用相对单位 */
  }
  
  /* 调整卡片间距 */
  .module-grid {
    gap: 30px;
  }
  
  .module-card {
    padding: 50px;
  }
  
  /* 调整模块图标大小 */
  .module-icon {
    width: 80px;
    height: 80px;
  }
  
  .module-icon i {
    font-size: 36px;
  }
  
  /* 调整按钮大小 */
  .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
  }
  
  /* 服务器信息卡片调整 */
  .server-info {
    gap: 30px;
  }
  
  .info-card {
    padding: 35px;
  }
  
  .info-card i {
    font-size: 48px;
  }
  
  /* 关于区域调整 */
  .about-content {
    gap: 50px;
  }
  
  .image-placeholder {
    width: 350px;
    height: 350px;
  }
  
  .image-placeholder i {
    font-size: 120px;
  }
  
  /* 页脚调整 */
  .footer {
    padding: 40px 0;
  }
}

/* 2K分辨率保持原样 (1921px及以上) */
@media (min-width: 1921px) {
  :root {
    font-size: 16px; /* 2K分辨率使用原16px基础大小 */
  }
  
  .container {
    max-width: 1800px; /* 保持2K的原设置 */
    transform: none; /* 取消缩放 */
  }
  
  /* 确保所有2K样式被应用 */
  .hero h1 {
    font-size: 72px;
  }
  
  .module-grid {
    gap: 45px;
  }
  
  .module-card {
    padding: 75px;
  }
  
  .module-icon {
    width: 105px;
    height: 105px;
  }
  
  .module-icon i {
    font-size: 45px;
  }
  
  .image-placeholder {
    width: 450px;
    height: 450px;
  }
  
  .image-placeholder i {
    font-size: 150px;
  }
}

/* 超高分辨率适配 (2560px及以上) */
@media (min-width: 2560px) {
  :root {
    font-size: 18px; /* 在4K及以上进一步放大 */
  }
  
  .container {
    max-width: 2000px;
  }
  
  /* 确保缩放不影响超高分辨率 */
  .container {
    transform: none;
  }
}

/* 防止缩放导致的布局问题 */
.container {
  transition: transform 0.3s ease;
}

/* 确保缩放时内边距和边框不被影响 */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* 修复移动端适配 */
@media (max-width: 768px) {
  /* 移动端不使用缩放 */
  .container {
    transform: none;
  }
  
  /* 移动端使用原字体大小计算 */
  html {
    font-size: 14px;
  }
  
  /* 调整移动端容器内边距 */
  .container {
    padding: 0 15px;
  }
  
  /* 调整移动端英雄区域 */
  .hero {
    padding: 100px 0 40px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  /* 移动端模块卡片 */
  .module-card {
    padding: 30px;
  }
  
  /* 移动端关于区域 */
  .image-placeholder {
    width: 280px;
    height: 280px;
  }
  
  .image-placeholder i {
    font-size: 100px;
  }
}

/* 小屏幕设备优化 (宽度小于1200px) */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    transform: none; /* 小屏幕取消缩放 */
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1.3rem;
  }
  
  .module-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  
  .server-info {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* 防止文本缩放导致换行问题 */
h1, h2, h3, p, a, li, span, button, input, textarea, select {
  word-wrap: break-word;
  overflow-wrap: break-word;
}