* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page {
    display: none;
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    color: #666;
    font-weight: 300;
}

.login-form h2,
.register-form h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox input {
    margin-right: 8px;
    width: auto;
}

.checkbox span {
    font-size: 14px;
    color: #666;
}

.forgot-password {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #5a6fd8;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.social-login {
    margin: 30px 0;
    text-align: center;
}

.social-login p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn.google {
    color: #db4437;
    border-color: #db4437;
}

.social-btn.google:hover {
    background: #db4437;
    color: white;
}

.social-btn.facebook {
    color: #4267b2;
    border-color: #4267b2;
}

.social-btn.facebook:hover {
    background: #4267b2;
    color: white;
}

.social-btn.twitter {
    color: #1da1f2;
    border-color: #1da1f2;
}

.social-btn.twitter:hover {
    background: #1da1f2;
    color: white;
}

.register-link {
    text-align: center;
    margin-top: 20px;
}

.register-link p {
    font-size: 14px;
    color: #666;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #5a6fd8;
}

/* 注册页面样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h2 {
    margin-bottom: 0;
    text-align: left;
}

.back-btn {
    display: flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #5a6fd8;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .login-form h2,
    .register-form h2 {
        font-size: 22px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}

/* 联系客服页面样式 */
.support-info {
    margin-bottom: 30px;
}

.support-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 32px;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    margin-top: 0;
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    margin-top: 10px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

.faq-section {
    margin-top: 30px;
}

.faq-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.faq-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.faq-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 新闻播放页面样式 */
.news-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.news-player {
    margin-bottom: 30px;
}

.video-container {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    padding: 0 5px;
}

.news-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.news-source {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.news-time {
    font-size: 14px;
    color: #999;
}

.news-text {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

.news-text p {
    margin-bottom: 15px;
}

.news-text p:last-child {
    margin-bottom: 0;
}

.related-news {
    margin-top: 30px;
}

.related-news h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item-image {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    flex: 1;
    min-width: 0;
}

.news-item-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* 手机外壳效果（可选） */
@media (min-width: 768px) {
    body {
        background: #f5f7fa;
    }
    
    .container {
        width: 375px;
        height: 812px;
        overflow-y: auto;
        border-radius: 40px;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 0 0 10px #333;
    }
}

/* 底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 375px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px 20px 0 0;
    z-index: 1000;
}

@media (min-width: 768px) {
    .bottom-nav {
        width: 375px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.nav-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.nav-item.active .nav-icon {
    color: #667eea;
    transform: scale(1.1);
}

.nav-text {
    font-size: 12px;
    color: #999;
}

.nav-item.active .nav-text {
    color: #667eea;
    font-weight: 600;
}

/* 个人中心页面样式 */
.profile-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.profile-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.profile-content {
    padding: 0 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-details h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.user-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.user-details .btn {
    width: auto;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 8px;
}

.profile-sections {
    margin-top: 20px;
}

.section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

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

.settings-list li {
    margin-bottom: 15px;
}

.settings-list li:last-child {
    margin-bottom: 0;
}

.settings-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid #e1e5e9;
}

.settings-list li:last-child a {
    border-bottom: none;
}

.settings-list a:hover {
    color: #667eea;
}

.settings-list a:after {
    content: '>';
    font-size: 18px;
    color: #ccc;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

/* 适配底部导航栏的页面内容 */
#news-page .container,
#profile-page .container {
    padding-bottom: 80px;
}

#news-page .related-news {
    margin-bottom: 20px;
}

/* 密钥验证弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 15px;
    color: #666;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 15px;
    display: none;
}

.error-message.show {
    display: block;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.language-btn {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.language-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.language-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    font-weight: 600;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e1e5e9;
}

.modal-footer .btn {
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.modal-footer .btn-secondary {
    background: #f8f9fa;
    color: #666;
}

.modal-footer .btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}

/* 新闻项点击样式 */
.news-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

