/* skin/css/common.css */
:root {
    --primary-color: #00b894;
    --primary-hover: #00a383;
    --text-main: #333333;
    --text-sub: #888888;
    --bg-body: #fafafa;
    --bg-card: #ffffff;
    --border-color: #eeeeee;
    --border-radius: 6px; /* DNA: 微圆角 */
    --font-stack: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* 底部 Footer */
.site-footer {
    background: #fff;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
    border-top: 1px solid #e2e8f0;
}
/* Reset */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; min-width: 0; }
body, h1, h2, h3, p, ul, li, input, button { margin: 0; padding: 0; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
i, em { font-style: normal; }

body {
    font-family: var(--font-stack);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    /* DNA: 方格纸装饰 */
    background-image: linear-gradient(#e5e5e5 1px, transparent 1px), linear-gradient(90deg, #e5e5e5 1px, transparent 1px);
    background-size: 30px 30px;
    background-attachment: fixed;
}

/* Layout Utilities */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Header */
.header {
    background: #fff;
    border-bottom: var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    /* DNA: 扁平化，无阴影，仅边框 */
    border-bottom: 1px solid var(--border-color);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo img {
    height: 36px;
    width: auto;
}

/* Search Box (Visual Only) */
.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: var(--border-radius);
    padding: 0 10px;
    width: 160px;
    border: 1px solid var(--border-color); /* DNA: 细灰边 */
}

.search-box input {
    border: none;
    background: transparent;
    height: 32px;
    width: 100%;
    font-size: 14px;
    outline: none;
    color: #333;
}

.search-box button {
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

/* Buttons */
.btn-download {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 15px;
    border-radius: var(--border-radius);
    font-size: 13px;
    text-align: center;
    transition: background 0.2s;
}
.btn-download:hover {
    background-color: var(--primary-hover);
}

/* Section Titles */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
    background: #fff;
    padding: 10px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color); /* DNA: 细灰边 */
}
.section-title a {
    font-size: 14px;
    color: var(--text-sub);
    float: right;
    font-weight: normal;
}

/* Responsive Grid Helper */
.grid-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Mobile: 4 per row for icons */
    gap: 15px 10px;
}

/* App Item Common Style */
.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.app-item a{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px; /* App icons usually have larger radius */
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
}
.app-name {
    font-size: 13px;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    margin-bottom: 4px;
}
.app-btn {
    font-size: 12px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 2px 10px;
    border-radius: var(--border-radius);
    display: inline-block;
}
/* --- 在 common.css 中新增以下内容 --- */

/* 导航栏容器 */
.main-nav {
    background: #fff;
    border-bottom: 1px solid var(--border-color); /* 细灰边 DNA */
    position: relative;
    z-index: 99;
}

/* 滚动区域 */
.scroll-nav {
    display: flex;
    white-space: nowrap;
    overflow-x: auto; /* 移动端横向滚动 */
    -webkit-overflow-scrolling: touch; /* iOS顺滑滚动 */
    height: 44px; /* 导航高度 */
    align-items: center;
    gap: 25px; /* 菜单间距 */
}

/* 隐藏滚动条 */
.scroll-nav::-webkit-scrollbar { display: none; }

/* 导航链接样式 */
.scroll-nav a {
    font-size: 15px;
    color: var(--text-main);
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: color 0.2s;
}

/* 悬停效果 */
.scroll-nav a:hover {
    color: var(--primary-color);
}

/* 激活状态 (Active) */
.scroll-nav a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* 激活状态下方的绿色短线 */
.scroll-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px; /* 微圆角 DNA */
}

/* PC 端适配：间距稍微加大 */
@media (min-width: 768px) {
    .scroll-nav {
        gap: 35px;
    }
    .container { width: 750px; }
    .search-box { width: 240px; }
    
    /* On PC, transform grid to list cards or larger grid */
    .grid-list {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}