:root {
    --primary-red: #dc2626; /* red-600 */
    --hover-red: #b91c1c;   /* red-700 */
    --text-dark: #1f2937;   /* gray-800 */
    --text-gray: #6b7280;   /* gray-500 */
    --bg-gray: #f3f4f6;     /* gray-100 */
}

body {
    margin: 0;
    padding: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Grid paper background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* 极光效果 - 多层光幕 */
@keyframes aurora1 {
    0%, 100% { 
        transform: translateX(0) scaleY(1);
        opacity: 0.5;
    }
    25% {
        transform: translateX(-3%) scaleY(1.05);
        opacity: 0.7;
    }
    50% { 
        transform: translateX(2%) scaleY(0.95);
        opacity: 0.6;
    }
    75% {
        transform: translateX(-1%) scaleY(1.02);
        opacity: 0.8;
    }
}

@keyframes aurora2 {
    0%, 100% { 
        transform: translateX(0) skewX(0deg);
        opacity: 0.4;
    }
    33% {
        transform: translateX(4%) skewX(2deg);
        opacity: 0.6;
    }
    66% { 
        transform: translateX(-3%) skewX(-1deg);
        opacity: 0.5;
    }
}

@keyframes aurora3 {
    0%, 100% { 
        transform: translateX(2%);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(-4%);
        opacity: 0.5;
    }
}

/* 第一层极光 - 主绿色光幕 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: -20%;
    width: 140%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        linear-gradient(to bottom,
            rgba(34, 197, 94, 0.15) 0%,
            rgba(34, 197, 94, 0.1) 15%,
            rgba(6, 182, 212, 0.08) 30%,
            transparent 50%
        );
    filter: blur(50px);
    animation: aurora1 12s ease-in-out infinite;
}

/* 极光容器 */
.aurora-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 第二层 - 青蓝色光带 */
.aurora-layer::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 10%;
    width: 60%;
    height: 70%;
    background: linear-gradient(
        165deg,
        transparent 0%,
        rgba(6, 182, 212, 0.1) 20%,
        rgba(34, 197, 94, 0.12) 40%,
        rgba(16, 185, 129, 0.08) 60%,
        transparent 80%
    );
    filter: blur(60px);
    animation: aurora2 18s ease-in-out infinite;
}

/* 第三层 - 紫色光带 */
.aurora-layer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 5%;
    width: 50%;
    height: 60%;
    background: linear-gradient(
        195deg,
        transparent 0%,
        rgba(139, 92, 246, 0.08) 25%,
        rgba(168, 85, 247, 0.1) 45%,
        rgba(6, 182, 212, 0.06) 65%,
        transparent 85%
    );
    filter: blur(70px);
    animation: aurora3 20s ease-in-out infinite;
}

.container,
.hero {
    position: relative;
    z-index: 1;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
}

.hero {
    text-align: center;
    max-width: 1280px;
    width: 100%;
    padding-top: 10vh;
    padding-bottom: 5vh;
}

/* 移动端容器强制垂直布局 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .hero {
        padding-top: 3vh;
        padding-bottom: 2vh;
    }
}

/* Brand Section */
.brand {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    width: 110px;
    height: 110px;
    position: relative;
    margin-bottom: 1rem;
    color: white;
    border-radius: 50%;
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 15px; /* Visual adjustment */
}

.logo-text-overlay span {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-red);
}

.brand-name {
    font-size: 1.75rem; /* 字号调整 */
    letter-spacing: 0.1em;
    font-weight: 800;
    margin-top: 0.5rem;
    color: #1f2937;
    /* 增加一点文字阴影效果 */
    text-shadow: none;
}

/* Headlines */
.headlines {
    margin-bottom: 1.5rem;
}

.main-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* 闪字效果 */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* 极光流动渐变动画 */
@keyframes auroraGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.shimmer-text {
    display: inline-block;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 40%,
        #e20c0c 50%,
        #ffffff 60%,
        #ffffff 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

.main-title .highlight {
    display: block;
    margin-top: 0.5rem;
    background: linear-gradient(
        90deg,
        #22c55e 0%,
        #06b6d4 25%,
        #a855f7 50%,
        #06b6d4 75%,
        #22c55e 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: auroraGradient 4s ease-in-out infinite;
}

@media (min-width: 640px) {
    .main-title {
        font-size: 3.75rem;
    }
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.75;
}

@media (min-width: 640px) {
    .subtitle {
        font-size: 1.25rem;
    }
}

/* Copy URL */
.copy-url {
    margin: 1.5rem auto 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.copy-prefix {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    padding: 0 0.25rem 0 0.5rem;
    white-space: nowrap;
}

.copy-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    color: #1f2937;
    width: 280px;
}

.copy-btn {
    border: none;
    background: #dc2626;
    color: #fff;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #b91c1c;
}

.copy-btn.copied {
    background: #16a34a;
}

@media (max-width: 640px) {
    .copy-url {
        flex-direction: row;
        border-radius: 999px;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .copy-input {
        width: auto;
        flex: 1;
        min-width: 120px;
        text-align: left;
        font-size: 0.85rem;
    }

    .copy-prefix {
        font-size: 0.8rem;
        padding: 0 0.25rem;
    }

    .copy-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Buttons */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-group {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

@media (min-width: 640px) {
    .btn {
        width: auto;
    }
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background-color: var(--hover-red);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background-color: var(--bg-gray);
    border-color: #9ca3af;
}

/* Footer Icons */
.footer-icons {
    background-color: transparent;
    padding: 2rem 0 3rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
    /* Flex box to ensure perfect centering */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.uppercase-text {
    text-align: center;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    margin-top: 0;
}

.icon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem; /* Increased gap for better visual spacing */
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem; /* Prevent touching edges on small screens */
    box-sizing: border-box;
}

.icon-item {
    width: 3.5rem; /* Slightly larger, closer to LobeHub style */
    height: 3.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: none;
    opacity: 0.85;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.icon-item:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-5px); /* LobeHub 风格的上浮效果 */
}

.icon-item iconify-icon,
.icon-item img {
    width: 100%;
    height: 100%;
    /* Iconify 默认是 inline-block, 设为 block 方便宽高控制 */
    display: block; 
}

/* Specific colors for hover if supported by SVGs using currentColor */
.icon-item:hover svg, .icon-item:hover iconify-icon, .icon-item:hover img {
    /* This depends on SVG structure, but generally just removing grayscale helps */
}

.icon-item svg {
    width: 100%;
    height: 100%;
}

.icon-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937; /* 适配浅色背景 */
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* 黑色图标保持原色，适配浅色背景 */
.icon-item.icon-invert img {
    filter: none;
}

.icon-item.icon-invert:hover img {
    filter: none;
}

/* ========== 功能特性卡片区域 ========== */
.features-section {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
    max-width: 100%;
    margin: 2rem auto 0;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    background: #ffffff;
    border-color: #d1d5db;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 高亮卡片样式 - 黄色边框 */
.feature-card-highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.5);
}

.feature-card-highlight:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(255, 255, 255, 1) 100%);
    border-color: rgba(251, 191, 36, 0.7);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

/* 代码图标 - 蓝色 */
.feature-icon-code {
    color: #3b82f6;
}

.feature-icon-code .icon-text {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

/* 稳定图标 - 黄色 */
.feature-icon-stable {
    color: #fbbf24;
}

/* 终端图标 - 蓝色 */
.feature-icon-terminal {
    color: #3b82f6;
}

/* 价格图标 - 黄色 */
.feature-icon-price {
    color: #fbbf24;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.feature-desc {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ========== 移动端适配 ========== */
@media (max-width: 480px) {
    /* Hero 强制垂直布局 */
    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 20vh;
        padding-bottom: 1vh;
        width: 100%;
    }

    /* Logo缩小 */
    .logo-container {
        width: 70px;
        height: 70px;
        margin-bottom: 0.5rem;
    }

    .brand {
        margin-bottom: 1rem;
        width: 100%;
    }

    .brand-name {
        font-size: 1.35rem;
    }

    /* 主标题 */
    .headlines {
        margin-bottom: 1rem;
    }

    .main-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }

    .main-title .highlight {
        margin-top: 0.25rem;
    }

    /* 副标题 */
    .subtitle {
        font-size: 0.875rem;
        padding: 0 0.75rem;
        line-height: 1.5;
    }

    /* 复制URL区域 */
    .copy-url {
        margin: 1rem auto;
        padding: 0.5rem 0.75rem;
        width: calc(100% - 1.5rem);
        max-width: 300px;
        gap: 0.5rem;
    }

    .copy-prefix {
        font-size: 0.75rem;
        padding: 0 0.25rem;
    }

    .copy-input {
        font-size: 0.8rem;
        width: 100%;
    }

    .copy-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
    }

    /* 按钮组 */
    .cta-group {
        gap: 0.6rem;
        padding: 0 0.75rem;
        margin-bottom: 1rem;
        width: 100%;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    /* ===== 功能卡片区域 - 强制全宽上下结构 ===== */
    .features-section {
        padding: 1rem 0;
        margin: 0;
        width: 100%;
    }

    .features-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem;
        width: 100%;
    }

    .feature-card {
        padding: 1.25rem;
        border-radius: 12px;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.75rem;
    }

    .feature-icon-code .icon-text {
        font-size: 1.1rem;
    }

    .feature-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .feature-desc {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    /* ===== 图标网格 - 放在最下面 ===== */
    .footer-icons {
        margin-top: 1rem;
        padding: 1.5rem 0 2rem;
        border-top: 1px solid #e5e7eb;
        width: 100%;
    }

    .icon-grid {
        gap: 1.5rem;
    }

    .icon-item {
        width: 2rem;
        height: 2rem;
    }
}

/* 中等移动设备 (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 3vh;
        width: 100%;
    }

    .logo-container {
        width: 80px;
        height: 80px;
    }

    .main-title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .copy-url {
        width: calc(100% - 2rem);
        max-width: 340px;
    }

    .cta-group {
        margin-bottom: 1.5rem;
    }

    /* 功能卡片 - 上下结构 */
    .features-section {
        padding: 2rem 1rem;
        margin-top: 0;
    }

    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .footer-icons {
        margin-top: 0;
        padding: 1.5rem 0 2.5rem;
        border-top: 1px solid #e5e7eb;
    }
}

/* 平板设备横屏优化 */
@media (min-width: 641px) and (max-width: 768px) {
    .features-section {
        padding: 3rem 1.5rem;
    }

    .feature-card {
        padding: 1.75rem;
    }
}

/* 触摸设备优化 - 移除hover效果中的transform */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
    }

    .icon-item:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }
}

/* 安全区域适配 (iPhone X及以上) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .features-section {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom));
    }
}
