.hero {
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 52px;
    margin-bottom: 18px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-gray);
    margin-bottom: 22px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 620px;
    margin: 0 auto;
}

.hero-image .about-gallery-wrap {
    flex: unset;
    display: flex;
    justify-content: center;
}

.hero-image .gallery-container {
    width: 320px;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.hero-image .gallery-track {
    position: relative;
    width: 280px;
    height: 560px;
}

.hero-image .gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 560px;
    padding: 0;
    transition: all 0.5s ease;
}

.hero-image .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-image .phone-shadow {
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: rgb(0 0 0 / 82%);
    border-radius: 50%;
    filter: blur(14px);
    z-index: -1;
}

.hero-image .gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    z-index: 20;
    user-select: none;
}

.hero-image .gallery-arrow.prev {
    left: -20px;
}

.hero-image .gallery-arrow.next {
    right: -20px;
}

section {
    padding: 140px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 38px;
    margin-bottom: 12px;
    color: var(--text-white);
}

.section-header p {
    color: var(--text-gray);
    font-size: 17px;
}

.features {
    position: relative;
    padding-top: 120px;
    background: rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.feature-card,
.scene-card,
.comment-card,
.news-card,
.stat-item 
 {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.feature-card {
    padding: 36px 28px;
    border-radius: var(--radius-md);
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    color: var(--text-white);
    font-size: 26px;
}

.feature-card h3,
.scene-card h3,
.news-content h3 {
    font-size: 21px;
    color: var(--text-white);
}

.feature-card p,
.scene-card p,
.comment-text,
.news-content p,
.update-content p,
.faq-answer {
    color: var(--text-gray);
}

.scenes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.scene-card {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.scene-image {
    height: 210px;
    background: var(--gradient-main);
    opacity: 0.85;
	overflow:hidden;
}
.scene-image img{
	height: 210px;
}
.scene-card h3 {
    padding: 22px 22px 12px;
}

.scene-card p {
    padding: 0 22px 22px;
}

.user-comment {
    background: rgba(0,0,0,0.3);
}

.comment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap:30px;
}

.comment-card {
    padding:28px;
    border-radius: var(--radius-md);
}

.comment-user {
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:16px;
}

.user-avatar {
    width:48px;
    height:48px;
    border-radius:50%;
	overflow: hidden;
    background: var(--gradient-main);
}

.user-info h4 {
    font-size:17px;
    color:var(--text-white);
    margin-bottom:4px;
}

.star {
    color:#ffb400;
    font-size:14px;
}

.comment-text {
    line-height:1.8;
    font-size:15px;
}

.code-preview {
    background: rgba(0,0,0,0.4);
}

.code-window {
    background: #0a0f25;
    border:1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 850px;
    margin: 0 auto;
}

.code-header {
    background: #000;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ff5f56;
}

.dot:nth-child(2) {
    background: #ffbd2e;
}

.dot:nth-child(3) {
    background: #27c93f;
}

.window-title {
    margin-left: 24px;
    color: var(--text-gray);
    font-size: 14px;
}

.code-content {
    padding: 24px;
}

.chat-message {
    display: flex;
    margin-bottom: 18px;
    gap: 12px;
}

.chat-message.ai {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-main);
    flex-shrink: 0;
}

.user-avatar {
    background: #2a3452;
}
.user-avatar img{
	width: 48px;
}
.message {
    background: #121a33;
    padding: 14px 18px;
    border-radius: 18px;
    max-width: 72%;
    line-height: 1.6;
    font-size: 15px;
    color: #e6ecff;
}

.chat-message.user .message {
    background: var(--primary);
}

.updates-list {
    max-width: 850px;
    margin: 0 auto;
}

.update-item {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border-glass);
}

.update-date {
    color: var(--accent);
    font-weight: 600;
    min-width: 110px;
    font-size: 15px;
}

.update-content h4 {
    font-size: 21px;
    margin-bottom: 10px;
    color: var(--text-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.news-image {
    height: 190px;
    background: var(--gradient-main);
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 14px;
}

.news-content p {
    margin-bottom:14px;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size:15px;
}

.faq-accordion {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.faq-question {
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-white);
    font-size:16px;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    line-height: 1.8;
    font-size:15px;
}

.faq-item.active .faq-answer {
    padding: 0 24px 22px;
    max-height: 220px;
	background: var(--text-white);
	color: #000;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color:var(--accent);
}

.cta {
    background: linear-gradient(135deg, #0a0818, #120f2b);
    text-align: center;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(147,104,255,0.15), transparent 50%), radial-gradient(circle at 80% 50%, rgba(72,144,255,0.12), transparent 50%);
    pointer-events: none;
}

.cta-container {
    position: relative;
    z-index: 2;
}

.cta-container h2 {
    font-size: 40px;
    margin-bottom: 22px;
}

.cta-container p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.92;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: var(--text-white);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(123,97,255,0.3);
}

.cta .btn-secondary {
    border-color: var(--text-white);
    color: var(--text-white);
}

.cta .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.feature-card::before,
.scene-card::before,
.comment-card::before,
.stat-item::before,
.news-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147,104,255,0.35), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.feature-card:hover::before,
.scene-card:hover::before,
.comment-card:hover::before,
.news-card:hover::before,
.stat-item:hover::before {
    left: 100%;
}

.feature-card:hover,
.scene-card:hover,
.comment-card:hover,
.news-card:hover,
.stat-item:hover {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

@media (max-width: 900px) {
    .hero-image .gallery-container {
        width: 280px;
        height: 520px;
    }

    .hero-image .gallery-track {
        width: 240px;
        height: 480px;
    }

    .hero-image .gallery-item {
        width: 240px;
        height: 480px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .update-item {
        flex-direction: column;
        gap: 12px;
    }

    .section-header h2 {
        font-size:30px;
    }

    .cta-container h2 {
        font-size:32px;
    }
}

@media (max-width: 480px) {
    .hero-image .gallery-container {
        width: 240px;
        height: 480px;
    }

    .hero-image .gallery-track {
        width: 200px;
        height: 420px;
    }

    .hero-image .gallery-item {
        width: 200px;
        height: 420px;
    }
}
/* Hero统计模块（玻璃态外框+背景） */
.hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.stat-item {
    flex: 1;
    min-width: 140px;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.stat-num {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}
.stat-text {
    font-size: 14px;
    color: var(--text-gray);
}
@media (max-width:768px) {
    .hero-stats {
        justify-content: center;
        gap: 14px;
    }
    .stat-item {
        min-width: 120px;
        padding: 16px;
    }
    .stat-num {
        font-size: 22px;
    }
}

/* Rubii news list */
.news-page {
    padding: 118px 0 72px;
}
.news-page .news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}
.news-page .news-content {
    min-width: 0;
    padding: 0;
}
.news-page .news-header {
    margin-bottom: 24px;
    padding: 28px 30px;
    border: 1px solid rgba(147,104,255,0.18);
    border-radius: 16px;
    background: rgba(16,23,48,0.72);
    box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}
.news-page .news-header h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.25;
    color: #fff;
}
.news-page .news-header p {
    margin: 0;
    color: #c7c1e2;
    font-size: 15px;
}
.news-page .news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.news-page .news-item {
    display: flex;
    gap: 0;
    height: auto;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid rgba(147,104,255,0.18);
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}
.news-page .news-item:hover {
    transform: translateY(-3px);
    border-color: rgba(147,104,255,0.42);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 18px 42px rgba(71,48,155,0.3);
}
.news-page .news-thumb {
    display: block;
    flex: 0 0 190px;
    width: 190px;
    min-height: 150px;
    overflow: hidden;
    background: rgba(147,104,255,0.12);
}
.news-page .news-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    transition: transform .3s ease;
}
.news-page .news-item:hover .news-thumb img {
    transform: scale(1.05);
}
.news-page .news-info {
    flex: 1;
    min-width: 0;
    min-height: 150px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-page .news-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.news-page .news-top h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.45;
    font-weight: 600;
}
.news-page .news-top h3 a {
    color: #fff;
    text-decoration: none;
    transition: color .2s ease;
}
.news-page .news-item:hover .news-top h3 a {
    color: #b99cff;
}
.news-page .views {
    flex: 0 0 auto;
    margin-top: 3px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #cfc7ff;
    background: rgba(147,104,255,0.12);
    border: 1px solid rgba(147,104,255,0.18);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}
.news-page .news-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 10px 0 12px;
    color: #c7c1e2;
    font-size: 14px;
    line-height: 1.65;
}
.news-page .news-publish {
    margin: 0;
    color: #9e94c4;
    font-size: 13px;
}
.news-page .news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.news-page .sidebar-widget,
.news-page .sidebar-box {
    position: sticky;
    top: 96px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(147,104,255,0.18);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(147,104,255,0.12), rgba(72,144,255,0.06)),
        rgba(16,23,48,0.78);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.news-page .sidebar-box.sidebar-widget::before,
.news-page .sidebar-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(185,156,255,0.72), transparent);
}
.news-page .sidebar-box.sidebar-widget h3,
.news-page .sidebar-box h3 {
    margin: 0 0 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(147,104,255,0.18);
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
}
.news-page .sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.news-page .sidebar-list li {
    position: relative;
    margin: 0;
    padding: 0 0 0 24px;
}
.news-page .sidebar-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gradient-main);
    box-shadow: 0 0 14px rgba(147,104,255,0.72);
}
.news-page .sidebar-list a {
    display: block;
    color: #c7c1e2;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.65;
    transition: color .2s ease, transform .2s ease;
}
.news-page .sidebar-list a:hover {
    color: #fff;
    transform: translateX(3px);
}

@media (max-width: 992px) {
    .news-page {
        padding-top: 104px;
    }
    .news-page .news-layout {
        grid-template-columns: 1fr;
    }
    .news-page .sidebar-widget,
    .news-page .sidebar-box {
        position: static;
    }
}

@media (max-width: 640px) {
    .news-page .news-header {
        padding: 22px 20px;
    }
    .news-page .news-header h1 {
        font-size: 26px;
    }
    .news-page .news-item {
        flex-direction: column;
    }
    .news-page .news-thumb {
        width: 100%;
        flex-basis: auto;
        height: 190px;
        min-height: 190px;
    }
    .news-page .news-thumb img {
        min-height: 190px;
    }
    .news-page .news-info {
        min-height: 0;
        padding: 18px;
    }
    .news-page .news-top {
        flex-direction: column;
        gap: 8px;
    }
    .news-page .views {
        margin-top: 0;
    }
}
