/* =========================================
   1. 基础设置 & 变量 (Apple Style Variables)
   ========================================= */
:root {
    --bg-color: #f5f5f7;          /* 苹果浅灰背景 */
    --card-bg: #ffffff;           /* 纯白卡片 */
    --text-main: #1d1d1f;         /* 近乎黑色的深灰 */
    --text-sub: #86868b;          /* 说明文字灰 */
    --accent-blue: #0071e3;       /* Apple Blue */
    --accent-hover: #0077ed;      /* 按钮悬停色 */
    --radius-card: 18px;          /* 大圆角 */
    --radius-btn: 980px;          /* 胶囊按钮 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1080px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased; /* 让字体在Mac上更清晰 */
}

a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
ul { list-style: none; }

/* =========================================
   2. 通用布局 (Container & Grid)
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px; /* 移动端左右留白 */
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px); /* 毛玻璃效果 */
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 54px;
}
.logo { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.5px; }
.nav-links a { font-size: 0.9rem; color: var(--text-sub); margin-left: 24px; }
.nav-links a:hover { color: var(--accent-blue); }

/* =========================================
   3. 组件样式 (Hero, Cards, Buttons)
   ========================================= */

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-blue);
    color: white;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn:hover { background-color: var(--accent-hover); transform: scale(1.02); }
.btn-secondary {
    background-color: transparent;
    color: var(--accent-blue);
    border: 1px solid rgba(0, 113, 227, 0.3);
}
.btn-secondary:hover { background-color: rgba(0, 113, 227, 0.05); }

/* 卡片通用样式 */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* =========================================
   4. 首页特定样式 (Hero, Pain Points)
   ========================================= */
.hero {
    text-align: center;
    padding: 100px 0 60px;
}
.hero h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -1.5px; margin-bottom: 16px; color: #1d1d1f; }
.hero p { font-size: 1.5rem; color: var(--text-sub); margin-bottom: 40px; font-weight: 400; }
.hero-btns { display: flex; gap: 16px; justify-content: center; }

/* 痛点模块 */
.pain-points { padding: 60px 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 40px; font-weight: 600; }
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pain-item { text-align: center; padding: 20px; }
.pain-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.pain-item h3 { margin-bottom: 8px; font-size: 1.2rem; }
.pain-item p { color: var(--text-sub); font-size: 0.95rem; }

/* 软件分类模块 */
.categories { padding: 60px 0; background-color: #fff; } /* 白色背景区分 */
.category-card { text-align: center; align-items: center; justify-content: center; min-height: 180px; }
.cat-icon { font-size: 2.5rem; margin-bottom: 16px; }
.cat-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.cat-desc { color: var(--text-sub); font-size: 0.9rem; }

/* =========================================
   5. 分类详情页样式
   ========================================= */
.software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0;
}
.soft-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.soft-name { font-size: 1.5rem; font-weight: 600; }
.soft-tag { 
    font-size: 0.75rem; padding: 4px 10px; background: #f0f0f5; 
    border-radius: 6px; color: var(--text-sub); font-weight: 500; 
}
.soft-desc { color: var(--text-sub); margin-bottom: 20px; min-height: 48px; }
.reason-box { background: #fbfbfd; border-radius: 12px; padding: 16px; margin-bottom: 20px; flex-grow: 1; }
.reason-title { font-size: 0.85rem; font-weight: 600; color: var(--text-main); margin-bottom: 6px; display: block;}
.reason-text { font-size: 0.9rem; color: #424245; }
.not-for { font-size: 0.85rem; color: #ff3b30; margin-bottom: 20px; background: rgba(255, 59, 48, 0.05); padding: 8px 12px; border-radius: 8px; }

/* =========================================
   6. 响应式设计 (Media Queries)
   ========================================= */

/* 平板 (768px - 1199px) */
@media (max-width: 1199px) {
    .container { max-width: 960px; }
    .hero h1 { font-size: 3rem; }
    .software-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* 手机 (<= 767px) */
@media (max-width: 767px) {
    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
    
    .grid-3, .software-grid { grid-template-columns: 1fr; }
    
    /* 移动端字体优化 */
    body { font-size: 17px; line-height: 1.6; }
    .nav-links { display: none; } /* 极简处理，手机端暂藏菜单 */
}