/* skin/css/common.css */
:root {
    --primary-color: #ff6b6b;
    --primary-hover: #ff5252;
    --primary-light: #fff0f0; /* 浅色背景 */
    --text-main: #2d3436;
    --text-sub: #95a5a6;
    --bg-body: #f8f9fa; /* 极简灰底 */
    --bg-card: #ffffff;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05); /* DNA: 柔和投影 */
    --shadow-btn: 0 4px 10px rgba(255, 107, 107, 0.3);
    --border-radius: 16px; /* DNA: 大圆角 */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 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; transition: all 0.2s; }
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;
}

/* Layout Utilities */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Header */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); /* 仅头部有微弱阴影 */
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo img {
    height: 34px;
    width: auto;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: #f1f2f6; /* 灰色背景 */
    border-radius: 30px; /* 胶囊圆角 */
    padding: 0 15px;
    width: 180px;
    transition: width 0.3s;
}
.search-box:focus-within {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-box input {
    border: none;
    background: transparent;
    height: 36px;
    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;
}

.site-footer{
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03); /* 仅底部有微弱阴影 */
    display: block;
    margin-top: 20px;
    overflow: hidden;
    text-align: center;
    font-size: 12px;
}
/* Main Navigation (New Style) */
.main-nav {
    background: #fff;
    /* No border */
}
.scroll-nav {
    display: flex;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    height: 48px;
    align-items: center;
    gap: 15px;
    padding-bottom: 5px; /* Spacing for scrollbar hide */
}
.scroll-nav::-webkit-scrollbar { display: none; }

.scroll-nav a {
    font-size: 15px;
    color: var(--text-sub);
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
}
.scroll-nav a.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: bold;
}

/* Buttons */
.btn-download {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px; /* Capsule */
    font-size: 13px;
    box-shadow: var(--shadow-btn); /* Button Shadow */
}
.btn-download:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    font-size: 19px;
    font-weight: 800;
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
}
.section-title a {
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
}
/* 装饰：标题前的圆点 */
.section-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Grid Helper */
.grid-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
}

/* App Item Common Style */
.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.app-item a{
display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    overflow: hidden;
}
.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px; /* Bigger Radius */
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06); /* Icon Shadow */
    transition: transform 0.2s;
}
.app-item:active .app-icon { transform: scale(0.95); }

.app-name {
    font-size: 13px;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    margin-bottom: 6px;
    font-weight: 500;
}
.app-btn {
    font-size: 12px;
    color: var(--text-sub);
    background: #f1f2f6;
    padding: 4px 12px;
    border-radius: 20px;
}

/* PC Media Query */
@media (min-width: 768px) {
    .container { width: 750px; }
    .search-box { width: 280px; }
    .grid-list {
        grid-template-columns: repeat(6, 1fr);
        gap: 25px;
    }
}