/*
Theme Name: ICDM Apple
Author: ICDM
Version: 2.0
Description: 明亮苹果风格，VPS 卡片暖杏背景，星空连线粒子
*/

:root {
    --bg: #f5f5f7;
    --card-bg: #ffffff;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --border: rgba(0, 0, 0, 0.08);
    --primary: #0071e3;
    --primary-hover: #0077ed;
    --radius: 20px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    background: transparent;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 半透明背景层，让粒子可见 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 113, 227, 0.04), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 113, 227, 0.04), transparent 40%),
        rgba(245, 245, 247, 0.4);
    pointer-events: none;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: #005bb5;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text);
    transition: 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav a {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    color: rgba(29, 29, 31, 0.8);
    transition: 0.2s;
}

.nav a:hover {
    color: #000;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1.5px;
    background: var(--primary);
    transition: 0.2s;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    padding: 80px 0 40px;
    text-align: center;
    background: transparent;
}

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.hero p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Buttons */
.hero-btns {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 980px;
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    transition: 0.25s;
    background: #ffffff;
    border: 1px solid #d2d2d7;
    color: #1d1d1f;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.3);
}

.btn-secondary:hover {
    background: #f0f0f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* 通用卡片 */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.post-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.post-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* VPS 存档页面栅格 */
.post-type-archive-vps .grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .post-type-archive-vps .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .post-type-archive-vps .grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 48px;
    }
    .hero p {
        font-size: 16px;
    }
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
        gap: 10px;
    }
    .nav {
        gap: 16px;
    }
}

/* 动画 */
.card,
.hero,
.vps-card {
    animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   VPS 卡片 —— 最终版（暖杏色，轻阴影）
   ============================================= */
.post-type-archive-vps .vps-card,
body .vps-card,
.vps-card {
    background: #fff5f0 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 20px !important;
    padding: 32px 28px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
    text-align: left !important;
}

.post-type-archive-vps .vps-card:hover,
body .vps-card:hover,
.vps-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.vps-card img {
    width: 100% !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
    display: block !important;
}

.vps-card h2 {
    font-size: 22px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    color: #1d1d1f !important;
}

.vps-location {
    color: #6e6e73 !important;
    font-size: 13px !important;
    margin-bottom: 14px !important;
}

.vps-specs {
    white-space: pre-line !important;
    font-size: 14px !important;
    color: #1d1d1f !important;
    margin-bottom: 20px !important;
    line-height: 1.7 !important;
}

.vps-price {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 22px !important;
    color: #1d1d1f !important;
}

.vps-btn {
    display: inline-block !important;
    padding: 10px 24px !important;
    border-radius: 999px !important;
    background: #0071e3 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: 0.2s !important;
}

.vps-btn:hover {
    background: #0077ed !important;
    transform: scale(1.02) !important;
}

/* Footer */
.footer {
    margin-top: auto;
}