/* 向日葵远程控制首页（index1.html）样式 */
:root {
    --sun-bg: #f6f9ff;
    --sun-surface: #ffffff;
    --sun-text: #0f172a;
    --sun-muted: #64748b;
    --sun-border: #e5e7eb;
    --sun-primary: #dd3a5f;
    --sun-primary-dark: #b32a46;
    --sun-primary-soft: rgba(221, 58, 95, 0.14);
    --sun-focus: rgba(221, 58, 95, 0.38);
    --sun-radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background: var(--sun-bg);
    color: var(--sun-text);
}

img { max-width: 100%; }
a { color: inherit; }

.sun-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

/* Header */
.sun-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(221, 58, 95, 0.12);
}

.sun-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}

.sun-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.sun-brand__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.sun-brand__name {
    font-weight: 750;
    letter-spacing: 0.02em;
}

.sun-brand__tagline {
    margin-top: 2px;
    font-size: 12px;
    color: var(--sun-muted);
}

.sun-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.sun-nav__link {
    text-decoration: none;
    font-weight: 600;
    color: #334155;
}

.sun-nav__link:hover {
    color: var(--sun-primary-dark);
}

.sun-nav__cta { margin-left: 6px; }

/* Buttons */
.sun-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
    user-select: none;
}

.sun-btn:focus-visible {
    outline: 3px solid var(--sun-focus);
    outline-offset: 2px;
}

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

.sun-btn--primary:hover {
    background: var(--sun-primary-dark);
    border-color: var(--sun-primary-dark);
    transform: translateY(-1px);
}

.sun-btn--ghost {
    background: transparent;
    border-color: rgba(221, 58, 95, 0.35);
    color: var(--sun-primary);
}

.sun-btn--ghost:hover {
    background: var(--sun-primary-soft);
    border-color: rgba(221, 58, 95, 0.6);
}

.sun-btn--outline {
    background: transparent;
    border-color: rgba(15, 23, 42, 0.18);
    color: #0f172a;
}

.sun-btn--outline:hover {
    border-color: rgba(221, 58, 95, 0.55);
    color: var(--sun-primary-dark);
}

.sun-btn--full {
    width: 100%;
}

/* Hero */
.sun-main {
    background: linear-gradient(180deg, rgba(221, 58, 95, 0.06), transparent 42%);
}

.sun-hero {
    padding: 72px 0 40px;
}

.sun-hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
    align-items: center;
}

.sun-title {
    margin: 0;
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sun-lead {
    margin: 14px 0 0;
    color: #334155;
    line-height: 1.8;
    font-size: 15.5px;
}

.sun-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.sun-hero__highlights {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: #334155;
}

.sun-hero__highlights li {
    margin-top: 8px;
    line-height: 1.7;
}

.sun-hero__media {
    border: 1px solid rgba(221, 58, 95, 0.18);
    border-radius: var(--sun-radius);
    background:
        radial-gradient(900px 260px at 20% 0%, rgba(221, 58, 95, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(221, 58, 95, 0.06), rgba(221, 58, 95, 0.00) 60%);
    padding: 20px;
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.06);
}

.sun-hero__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Sections */
.sun-section {
    padding: 58px 0;
}

.sun-section__head {
    margin-bottom: 30px;
}

.sun-h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.01em;
}

.sun-subtitle {
    margin: 10px 0 0;
    color: var(--sun-muted);
    line-height: 1.8;
}

/* Feature grid */
.sun-grid {
    display: grid;
    gap: 16px;
}

.sun-grid--features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.sun-feature-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--sun-radius);
    background: var(--sun-surface);
    padding: 22px 20px;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
    will-change: transform;
}

.sun-feature-card:hover {
    border-color: rgba(221, 58, 95, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.08);
}

.sun-feature-card__icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(221, 58, 95, 0.16), rgba(221, 58, 95, 0.06));
    border: 1px solid rgba(221, 58, 95, 0.18);
}

.sun-feature-card__title {
    margin: 12px 0 8px;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.sun-feature-card__desc {
    margin: 0;
    color: #334155;
    line-height: 1.75;
    font-size: 14px;
}

/* Download tabs */
.sun-os-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    margin: 8px 0 16px;
}

.sun-os-tab {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 750;
    cursor: pointer;
    color: #0f172a;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease, color 0.12s ease;
}

.sun-os-tab:hover { transform: translateY(-1px); }
.sun-os-tab:focus-visible { outline: 3px solid var(--sun-focus); outline-offset: 2px; }

.sun-os-tab.is-active {
    background: var(--sun-primary);
    border-color: var(--sun-primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(221, 58, 95, 0.25);
}

.sun-download-panels {
    border: 1px solid rgba(221, 58, 95, 0.14);
    border-radius: var(--sun-radius);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    padding: 18px;
}

.sun-download-panel { display: none; }
.sun-download-panel.is-active { display: block; }

.sun-grid--versions {
    grid-template-columns: 1fr 1fr;
}

.sun-grid--single { grid-template-columns: 1fr; }

.sun-version-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--sun-radius);
    padding: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.05);
}

.sun-version-card--highlight {
    border-color: rgba(221, 58, 95, 0.35);
    background: linear-gradient(180deg, rgba(221, 58, 95, 0.06), rgba(221, 58, 95, 0));
}

.sun-version-card__title {
    margin: 0 0 10px;
    font-size: 16px;
}

.sun-version-card__desc {
    margin: 0 0 12px;
    color: #334155;
    line-height: 1.75;
    font-size: 14px;
}

.sun-version-card__list {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    line-height: 1.9;
}

.sun-version-card__meta {
    margin-top: 12px;
    color: var(--sun-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* Solutions */
.sun-grid--solutions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.sun-solution-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--sun-radius);
    padding: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sun-solution-card:hover {
    transform: translateY(-2px);
    border-color: rgba(221, 58, 95, 0.28);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.08);
}

.sun-solution-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.sun-solution-card p {
    margin: 0;
    color: #334155;
    line-height: 1.75;
    font-size: 14px;
}

/* Support + FAQ */
.sun-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.sun-support-panel {
    border: 1px solid var(--sun-border);
    border-radius: var(--sun-radius);
    padding: 16px;
    background: #fff;
}

.sun-support-panel h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.sun-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sun-link-list li { margin-top: 8px; }

.sun-link {
    text-decoration: none;
    color: #0f172a;
    font-weight: 650;
}

.sun-link:hover { color: var(--sun-primary-dark); }

.sun-faq-item {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--sun-radius);
    padding: 14px 16px;
    background: #fff;
    margin-top: 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sun-faq-item:hover {
    border-color: rgba(221, 58, 95, 0.28);
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.06);
}

.sun-faq-q {
    cursor: pointer;
    font-weight: 800;
    position: relative;
    padding-right: 28px;
}

.sun-faq-q::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(221, 58, 95, 0.10);
    color: var(--sun-primary-dark);
    font-size: 14px;
    line-height: 1;
}

details.sun-faq-item[open] .sun-faq-q::after {
    content: "−";
    background: rgba(221, 58, 95, 0.16);
}

.sun-faq-a {
    margin-top: 8px;
    color: #334155;
    line-height: 1.85;
    font-size: 14px;
}

/* Footer */
.sun-footer {
    border-top: 1px solid var(--sun-border);
    padding: 26px 0;
    background: #fff;
}

/* Stats + Security modules (reference style) */
.sun-section--stats {
    padding: 54px 0 18px;
    background: linear-gradient(180deg, rgba(221,58,95,0.06), rgba(221,58,95,0.00));
}

.sun-stats-wrap {
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    padding-bottom: 34px;
}

.sun-stats-title {
    margin: 0;
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.sun-stats-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
}

.sun-stat-item {
    text-align: center;
    padding: 0 6px;
}

.sun-stat-value {
    display: inline-block;
    font-size: 46px;
    font-weight: 950;
    letter-spacing: -0.03em;
    color: var(--sun-primary);
    line-height: 1;
}

.sun-stat-unit {
    display: inline-block;
    margin-left: 6px;
    font-size: 14px;
    font-weight: 850;
    color: var(--sun-primary);
    transform: translateY(-12px);
}

.sun-stat-desc {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.sun-section--security {
    padding: 46px 0 60px;
    background: linear-gradient(180deg, rgba(221,58,95,0.00), rgba(221,58,95,0.06));
}

.sun-security-head {
    text-align: center;
    margin-bottom: 24px;
}

.sun-security-title {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.sun-security-subtitle {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.sun-security-cards {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.sun-security-card {
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.05);
    padding: 22px 22px 20px;
}

.sun-security-card__icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(221, 58, 95, 0.08);
    border: 1px solid rgba(221, 58, 95, 0.18);
}

.sun-security-card__title {
    margin: 14px 0 8px;
    font-size: 15px;
    font-weight: 950;
    color: #0f172a;
}

.sun-security-card__desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: #64748b;
    font-weight: 650;
}

.sun-security-cta {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 26px;
}

.sun-btn--security {
    min-width: 180px;
}

.sun-btn--outline.sun-btn--security {
    background: #fff;
}

.sun-footer-top {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 18px;
}

.sun-footer-brand {
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.sun-footer-desc {
    margin: 0;
    color: #334155;
    line-height: 1.8;
    font-size: 14px;
}

.sun-footer-title {
    font-weight: 850;
    margin-bottom: 10px;
}

.sun-footer-bottom {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px dashed rgba(229, 231, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--sun-muted);
    font-size: 13px;
    flex-wrap: wrap;
}

.sun-footer-bottom__links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 960px) {
    .sun-hero__inner { grid-template-columns: 1fr; }
    .sun-grid--features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sun-grid--solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sun-grid--versions { grid-template-columns: 1fr; }
    .sun-support-grid { grid-template-columns: 1fr; }
    .sun-footer-top { grid-template-columns: 1fr; }

    .sun-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sun-security-cards { grid-template-columns: 1fr; }
    .sun-security-cta { flex-direction: column; align-items: center; }
    .sun-btn--security { min-width: 220px; }
}

@media (max-width: 560px) {
    .sun-nav__list { gap: 10px; }
    .sun-nav__link { font-size: 13px; }
    .sun-grid--features { grid-template-columns: 1fr; }
    .sun-grid--solutions { grid-template-columns: 1fr; }
}

