/* skin/css/common.css */
:root {
    --primary-color: #2563eb; /* 科技蓝 */
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff; /* 浅蓝背景装饰 */
    
    --bg-body: #f8fafc; /* 云雾灰背景 */
    --bg-card: #ffffff; /* 纯白卡片 */
    --bg-input: #f1f5f9;
    
    --text-main: #1e293b; /* 深蓝灰主字 */
    --text-sub: #64748b;  /* 中灰辅助字 */
    
    --border-color: #e2e8f0; /* 极淡的边框 */
    --border-radius: 12px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    
    --font-stack: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent;  min-width: 0;}
body, h1, h2, h3,h4,h5, 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 */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Header (Light & Sticky) */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo img {
    height: 34px;
    width: auto;
}

/* Search Box (Modern Light) */
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: 20px;
    padding: 0 15px;
    width: 180px;
    transition: all 0.3s;
}
.search-box:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
    width: 200px;
}

.search-box input {
    border: none;
    background: transparent;
    height: 36px;
    width: 100%;
    font-size: 14px;
    outline: none;
    color: var(--text-main);
}

.search-box button {
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

/* Main Navigation (Light Tabs) */
.main-nav {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}
.scroll-nav {
    display: flex;
    white-space: nowrap;
    overflow-x: auto;
    height: 48px;
    align-items: center;
    gap: 25px;
}
.scroll-nav::-webkit-scrollbar { display: none; }

.scroll-nav a {
    font-size: 15px;
    color: var(--text-sub);
    font-weight: 500;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.scroll-nav a.active {
    color: var(--primary-color);
    font-weight: 700;
}
.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;
}

/* Common Buttons */
.btn-download, .app-btn, .s-btn, .main-down-btn {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-download:hover, .app-btn:hover, .s-btn:hover, .main-down-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* Section Titles */
.section-title {
    font-size: 18px;
    font-weight: 800;
    margin: 25px 0 15px;
    color: var(--text-main);
    display: flex;
    align-items: center;
}
.section-title a{
    font-size: 12px;
    color: var(--text-sub);
    margin-left: auto;
    font-weight: 500;
    transition: all 0.2s;
}
.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--primary-color);
    margin-right: 10px;
    border-radius: 2px;
}

/* Grid Helper */
.grid-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
}

/* App Item */
.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%;
}
.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm); /* 轻微投影 */
}
.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;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f1f5f9; /* 默认灰色按钮 */
    color: var(--text-sub);
}
.app-item:hover .app-btn {
    background: var(--primary-color);
    color: #fff;
}

/* Footer (Light) */
.footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 40px;
    text-align: center;
    color: var(--text-sub);
}
.f-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: 500;
}
.copyright, .icp { font-size: 12px; margin-bottom: 5px; color: #94a3b8; }

@media (min-width: 768px) {
    .container { width: 750px; }
    .search-box { width: 280px; }
    .grid-list { grid-template-columns: repeat(6, 1fr); gap: 20px; }
}