/* 太阳页面特定样式 */
.sun-page {
    background: linear-gradient(to bottom, #000000, #1a0f02);
}

.sun-nav {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

/* 太阳动画 */
.sun-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    background: #000;
    padding: 0 5%;
}

.sun-animation {
    position: relative;
    width: 550px;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.sun-core {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('images/sun.jpg') center/cover no-repeat;
    border-radius: 50%;
    box-shadow: 0 0 120px rgba(255, 119, 0, 0.6), 0 0 80px rgba(255, 179, 102, 0.4), 0 0 200px rgba(255, 119, 0, 0.3);
    animation: pulse 4s ease-in-out infinite;
    z-index: 1;
}

.sun-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    z-index: 0;
}

.sun-rays::before {
    content: '';
    position: absolute;
    top: -2%;
    left: -2%;
    width: 104%;
    height: 104%;
    background: radial-gradient(circle at center, rgba(255, 119, 0, 0.3) 0%, rgba(255, 119, 0, 0) 70%);
    border-radius: 50%;
    animation: rays 8s linear infinite;
}

.sun-title {
    position: relative;
    color: #fff;
    font-size: 4.5rem;
    font-weight: 700;
    text-align: left;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(255, 119, 0, 0.7);
    z-index: 2;
    animation: fadeInLeft 1s ease-out;
    max-width: 600px;
    margin-right: auto;
}

/* 内容样式 */
.sun-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.sun-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.sun-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sun-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 119, 0, 0.2);
}

.sun-card h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 119, 0, 0.3);
}

/* 事实列表样式 */
.fact-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.fact-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 119, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.fact-item:hover {
    transform: scale(1.05);
}

.fact-item h3 {
    color: #ffb366;
    margin-bottom: 0.5rem;
}

/* 成分图表样式 */
.composition-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    height: 30px;
}

.bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: #fff;
    transition: width 1s ease-out;
}

.hydrogen {
    background: linear-gradient(to right, #ff751a, #ffb366);
}

.helium {
    background: linear-gradient(to right, #ff9933, #ffcc99);
}

.other {
    background: linear-gradient(to right, #ffcc99, #ffe6cc);
}

/* 层级图样式 */
.layers-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.layer {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 119, 0, 0.1);
    transition: transform 0.3s ease;
}

.layer:hover {
    transform: translateX(10px);
}

.layer h4 {
    color: #ffb366;
    margin-bottom: 0.5rem;
}

/* 活动网格样式 */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.activity-item {
    padding: 1rem;
    background: rgba(255, 119, 0, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: scale(1.05);
    background: rgba(255, 119, 0, 0.2);
}

/* 导航门户样式 */
.navigation-portal {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.portal-link {
    position: relative;
    padding: 1rem 2rem;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 119, 0, 0.1);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portal-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 119, 0, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.portal-link:hover {
    background: rgba(255, 119, 0, 0.2);
    transform: translateY(-5px);
}

.portal-link:hover::before {
    transform: translateX(100%);
}

/* 动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 120px rgba(255, 119, 0, 0.6), 0 0 80px rgba(255, 179, 102, 0.4), 0 0 200px rgba(255, 119, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 150px rgba(255, 119, 0, 0.7), 0 0 100px rgba(255, 179, 102, 0.5), 0 0 250px rgba(255, 119, 0, 0.4);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 0 120px rgba(255, 119, 0, 0.6), 0 0 80px rgba(255, 179, 102, 0.4), 0 0 200px rgba(255, 119, 0, 0.3);
        transform: scale(1);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rays {
    0% {
        opacity: 0.7;
        transform: rotate(0deg);
    }
    50% {
        opacity: 0.9;
        transform: rotate(180deg);
    }
    100% {
        opacity: 0.7;
        transform: rotate(360deg);
    }
}

/* 介绍部分样式 */
.sun-introduction {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 1.5rem;
}

/* 元素行样式 */
.element-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.element-row:hover {
    transform: translateX(5px);
}

.element-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.element-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.5);
}

.element-info {
    flex-grow: 1;
}

.element-info h4 {
    color: #ffb366;
    margin-bottom: 0.5rem;
}

/* 温度列表样式 */
.temp-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.temp-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 119, 0, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.temp-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 119, 0, 0.2);
}

.temp-item h4 {
    color: #ffb366;
    margin-bottom: 0.5rem;
}

.temp-item p {
    font-size: 1.1rem;
    color: #fff;
}

/* 速度列表样式 */
.velocity-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.velocity-item {
    padding: 1.5rem;
    background: rgba(255, 119, 0, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.velocity-item:hover {
    transform: translateX(10px);
    background: rgba(255, 119, 0, 0.2);
}

.velocity-item h4 {
    color: #ffb366;
    margin-bottom: 0.5rem;
}

.velocity-item p {
    font-size: 1.2rem;
    color: #fff;
}

/* 位置和邻域部分样式 */
.sun-location,
.sun-neighborhood {
    margin-bottom: 4rem;
}

.sun-location h2,
.sun-neighborhood h2 {
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(255, 119, 0, 0.3);
}

.location-content,
.neighborhood-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-image,
.neighborhood-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 119, 0, 0.2);
    transition: transform 0.3s ease;
}

.location-image:hover,
.neighborhood-image:hover {
    transform: scale(1.02);
}

.location-image img,
.neighborhood-image img {
    width: 100%;
    height: auto;
    display: block;
}

.location-text,
.neighborhood-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

/* 元素周期表样式 */
.element-box {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.element-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.element-number {
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.element-symbol {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.element-weight {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* 氢元素特殊样式 */
.element-row:nth-child(1) .element-box {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.7), rgba(30, 30, 100, 0.7));
    border: 1px solid rgba(100, 100, 255, 0.3);
}

/* 氦元素特殊样式 */
.element-row:nth-child(2) .element-box {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.7), rgba(100, 30, 30, 0.7));
    border: 1px solid rgba(255, 100, 100, 0.3);
}

/* 氧元素特殊样式 */
.element-row:nth-child(3) .element-box {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.7), rgba(30, 100, 30, 0.7));
    border: 1px solid rgba(100, 255, 100, 0.3);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .sun-hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0;
    }
    
    .sun-animation {
        margin: 0 auto;
        width: 400px;
        height: 400px;
    }
    
    .sun-title {
        text-align: center;
        font-size: 3.5rem;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 768px) {
    .sun-title {
        font-size: 2.5rem;
    }
    
    .sun-animation {
        width: 300px;
        height: 300px;
    }
    
    .sun-info-grid {
        grid-template-columns: 1fr;
    }
    
    .fact-list,
    .composition-chart {
        grid-template-columns: 1fr 1fr;
    }
    
    .navigation-portal {
        flex-direction: column;
    }
    
    .intro-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .temp-list {
        grid-template-columns: 1fr;
    }
    
    .location-content,
    .neighborhood-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .location-text,
    .neighborhood-text {
        padding: 0 1rem;
    }
} 