/* ================================================================
   Geezpai Spot — 开源硬件产品页样式
   ================================================================ */

/* --- Nav Actions --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-action-gh {
    background: #f3f4f6;
    color: #374151;
}

.nav-action-gh:hover {
    background: #e5e7eb;
}

.nav-action-buy {
    background: var(--primary-color);
    color: #ffffff;
}

.nav-action-buy:hover {
    background: #4338CA;
}

@media (max-width: 768px) {
    .nav-actions {
        display: none;
    }
}

/* --- Hero --- */
.spot-hero {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: #ffffff;
    padding: 90px 0 50px;
}

.spot-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.spot-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c7d2fe;
    font-weight: 600;
}

.spot-hero-copy h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.15;
}

.spot-ver {
    font-size: 0.45em;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    vertical-align: super;
}

.spot-hero-desc {
    margin: 20px 0 0;
    max-width: 580px;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.82);
}

.spot-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.spot-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.spot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.spot-btn-primary {
    background: #ffffff;
    color: var(--primary-color);
}

.spot-btn-primary:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.spot-btn-dark {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
}

.spot-btn-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
}

.spot-hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(255,255,255,0.06);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.spot-hero-media img {
    max-height: 320px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.spot-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 44px;
}

.spot-stat {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
}

.spot-stat strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.spot-stat span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.7;
}

/* --- Sections --- */
.spot-section-alt {
    background: #f8fafc;
}

.spot-section-cta {
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
}

.spot-section-title {
    margin: 0 0 12px;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.spot-section-desc {
    margin: 0 0 2rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* --- Specs Table --- */
.specs-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.specs-table td {
    padding: 14px 20px;
    font-size: 14px;
    line-height: 1.7;
}

.specs-label {
    width: 120px;
    font-weight: 700;
    color: #374151;
    background: var(--bg-light);
    white-space: nowrap;
}

/* --- Software Grid --- */
.software-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.software-card {
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.software-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.software-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Repo Card --- */
.repo-card {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.repo-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #f3f4f6;
}

.repo-header svg {
    color: #374151;
}

.repo-header strong {
    display: block;
    font-size: 16px;
}

.repo-header span {
    color: var(--text-light);
    font-size: 13px;
}

.repo-body {
    padding: 14px 24px;
}

.repo-files {
    display: grid;
    gap: 6px;
}

.repo-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    transition: background 0.2s;
}

.repo-file:hover {
    background: #f8fafc;
}

.file-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.file-desc {
    color: #9ca3af;
    margin-left: auto;
    font-size: 12px;
}

.repo-footer {
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

/* --- Buy Card --- */
.buy-card {
    padding: 3rem;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #c7d2fe;
    box-shadow: 0 12px 36px rgba(79, 70, 229, 0.08);
}

.buy-card h2 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: #3730a3;
}

.buy-card-copy > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.buy-info {
    display: grid;
    gap: 12px;
    margin-bottom: 2rem;
}

.buy-item {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #f3f4f6;
}

.buy-item:first-child {
    border-top: 0;
}

.buy-item strong {
    min-width: 100px;
    font-size: 13px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.buy-item span {
    color: #374151;
    line-height: 1.7;
}

/* --- Footer --- */
.spot-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.6);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

.spot-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.spot-footer a:hover {
    color: #ffffff;
}

/* ================================================================
   风格一致性修复
   ================================================================ */

/* 浅色区块内的白字按钮改为靛蓝色，避免白字白底不可见 */
.repo-footer .spot-btn-dark {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.spot-section-cta .spot-btn-outline {
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .spot-hero-grid {
        grid-template-columns: 1fr;
    }

    .spot-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .spot-hero {
        padding: 60px 0 40px;
    }

    .spot-hero-copy h1 {
        font-size: 32px;
    }

    .spot-hero-stats {
        grid-template-columns: 1fr;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }

    .buy-card {
        padding: 1.5rem;
    }

    .buy-item {
        flex-direction: column;
        gap: 4px;
    }
}
