:root {
    /* 更新为棕色、土黄色系的高级配色 */
    --primary-color: #8b4513; /* 深棕色 */
    --secondary-color: #cd853f; /* 秘鲁棕色 */
    --accent-color: #d2b48c; /* 棕褐色 */
    --bg-color: #f5f5f0; /* 淡米色背景 */
    --card-bg: #ffffff;
    --text-color: #4a3728; /* 深咖啡色文本 */
    --text-secondary: #7d6b5d; /* 中棕色次要文本 */
    --border-color: #e8e0d5; /* 浅棕色边框 */
    --shadow-color: rgba(100, 80, 60, 0.08); /* 棕色系阴影 */
    --bonus-color: #a0522d; /* 红褐色作为强调色 */
    --section-title-color: #5d4037; /* 深棕色标题 */
    --highlight-color: #deb887; /* 木黄褐色高亮 */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif; /* 优先使用iOS字体 */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: none; /* 移除纹理背景，保持iOS简洁风格 */
    background: linear-gradient(to bottom, #f5f5f0, #faf7f2); /* 淡米色到浅米黄渐变背景 */
    min-height: 100vh;
}

.container {
    max-width: 1100px; /* 稍微减小宽度以增加空间感 */
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 600; /* iOS字体权重 */
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px; /* 更细的线条 */
    background-color: var(--secondary-color); /* 使用次要颜色作为下划线 */
    border-radius: 1px; /* 圆角边界 */
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 20px auto 0;
    padding: 12px 18px;
    border-radius: 12px; /* iOS风格的圆角 */
    background-color: rgba(255, 253, 240, 0.9); /* 略带黄的白色背景 */
    border: none; /* 移除边框 */
    box-shadow: 0 2px 6px var(--shadow-color); /* iOS风格阴影 */
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600; /* iOS字体权重 */
    margin: 40px 0 20px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 1px; /* 圆角边界 */
}

.weapons-container {
    margin-bottom: 40px;
}

.weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px; /* iOS间隔美学 */
    margin-bottom: 30px;
}

.weapon-card {
    background-color: #fffcf5; /* 微微偏黄的卡片背景 */
    border-radius: 12px; /* iOS风格的圆角 */
    overflow: hidden;
    box-shadow: 0 3px 8px var(--shadow-color); /* 轻微调整阴影 */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* 更快的过渡效果 */
    border: 1px solid var(--border-color); /* 添加细微边框 */
    position: relative;
}

.weapon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(139, 69, 19, 0.1); /* 棕色系阴影 */
}

.weapon-card:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(222, 184, 135, 0.15); /* 棕黄色内阴影 */
    pointer-events: none;
}

.weapon-header {
    display: flex;
    align-items: center;
    /* 褐色渐变背景 */
    background: linear-gradient(to right, #8b4513, #a0522d);
    color: #fff8dc; /* 米色文字，比纯白更温暖 */
    padding: 12px 15px;
}

.weapon-icon {
    width: 36px;
    height: 36px;
    margin-right: 12px;
    border-radius: 8px; /* iOS风格的圆角图标 */
    background-color: rgba(255, 250, 240, 0.95); /* 花白色背景 */
    padding: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* 图标阴影 */
}

.weapon-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600; /* iOS字体权重 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* 文字阴影增强可读性 */
}

.effect-content {
    padding: 18px;
}

.effect-title {
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.triangle, .diamond {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    color: var(--secondary-color);
}

.effect-list {
    list-style-type: none; /* 移除默认列表样式 */
    padding-left: 12px;
}

.effect-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    position: relative;
    padding-left: 15px;
    line-height: 1.5;
}

.effect-list li:before {
    content: "•"; /* iOS风格列表项 */
    position: absolute;
    left: 0;
    color: #cd853f; /* 使用秘鲁棕色 */
    font-weight: bold;
}

.bonus {
    color: var(--bonus-color);
    font-weight: 500;
    margin-left: 5px;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

footer a {
    color: var(--primary-color); /* 使用主色调作为链接 */
    text-decoration: none;
    font-weight: 500; /* iOS链接字重 */
}

footer a:hover {
    text-decoration: none; /* iOS中通常没有下划线 */
    opacity: 0.8; /* 透明度变化代替下划线 */
    color: var(--secondary-color); /* 悬停时颜色变化 */
}

.version {
    font-size: 0.8rem;
    margin-top: 8px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .weapons-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .weapons-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .weapon-card {
        border-radius: 10px; /* 在小屏幕上稍微减小圆角 */
    }
}

/* 添加iOS风格的动画和互动效果 */
@media (hover: hover) {
    .weapon-card {
        will-change: transform;
    }
    
    .weapon-card:active {
        transform: scale(0.98); /* iOS按压反馈 */
    }
}

/* 添加微妙的全局设计元素 */
.weapon-section {
    position: relative;
}

.weapon-section:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, rgba(139, 69, 19, 0.1), rgba(139, 69, 19, 0.5), rgba(139, 69, 19, 0.1));
    border-radius: 3px;
}

/* 远程武器区分颜色 */
.weapon-section:nth-child(2) .weapon-header {
    /* 略微不同的渐变方向，更黄的棕色系 */
    background: linear-gradient(to right, #996633, #8b4513);
}

/* 添加额外装饰元素 */
.container:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #8b4513, #deb887, #8b4513);
    z-index: 1000;
}

/* 为卡片添加微妙的木纹效果 */
.weapon-card {
    position: relative;
}

.weapon-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill-opacity="0.02" fill="%23d2b48c" width="50" height="50" x="0" y="0"></rect><rect fill-opacity="0.02" fill="%238b4513" width="50" height="50" x="50" y="0"></rect><rect fill-opacity="0.02" fill="%238b4513" width="50" height="50" x="0" y="50"></rect><rect fill-opacity="0.02" fill="%23d2b48c" width="50" height="50" x="50" y="50"></rect></svg>');
    opacity: 0.3;
    border-radius: 12px;
    pointer-events: none;
}
