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

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #0a0e27;
    color: #f0f4f8;
    overflow: hidden;
}

/* ===== 背景装饰 ===== */
.background-decoration {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.06;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #3b82f6;
    top: -150px;
    right: -150px;
    animation: floatOrb 15s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #1e293b;
    bottom: 5%;
    left: -100px;
    animation: floatOrb 18s ease-in-out infinite reverse;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #475569;
    bottom: -100px;
    right: 5%;
    animation: floatOrb 20s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, -40px) scale(1.05);
    }
}

/* ===== 应用容器 ===== */
.app-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ===== 主内容区 ===== */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px 100px;
    position: relative;
    z-index: 2;
    overflow-y: auto;
}

.views-container {
    width: 100%;
    max-width: 650px;
    position: relative;
    height: auto;
}

.view-panel {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(50px) scale(0.9);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.view-panel.active {
    position: relative;
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.view-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: contentFadeIn 0.7s ease 0.1s both;
}

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

/* ===== 输入视图 ===== */
.view-header {
    text-align: center;
    margin-bottom: 8px;
}

.header-title {
    animation: slideInDown 0.8s ease both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-title {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #7dd3fc 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.view-subtitle {
    font-size: 15px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.input-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(125, 211, 252, 0.15);
    border-radius: 13px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

.input-wrapper:focus-within {
    border-color: rgba(125, 211, 252, 0.5);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.1), 0 8px 24px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.input-prefix-icon {
    color: #64748b;
    margin-left: 14px;
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.input-wrapper:focus-within .input-prefix-icon {
    color: #7dd3fc;
    transform: scale(1.1);
}

.input-field-text {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 8px;
    font-size: 15px;
    color: #f0f4f8;
    outline: none;
}

.input-field-text::placeholder {
    color: #475569;
}

.input-clear-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.input-clear-btn.show {
    opacity: 1;
    pointer-events: auto;
}

.input-clear-btn:hover {
    color: #ef4444;
    transform: rotate(180deg) scale(1.15);
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-left: 2px;
    animation: slideInUp 0.6s ease 0.3s both;
}

.input-hint i {
    font-size: 14px;
    opacity: 0.8;
}

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

.submit-button {
    padding: 15px 24px;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.submit-button:hover::before {
    width: 400px;
    height: 400px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.45);
}

.submit-button:active {
    transform: translateY(-1px);
}

.button-icon {
    display: flex;
    align-items: center;
    font-size: 16px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.submit-button:hover .button-icon {
    transform: translateY(-3px) scale(1.15);
    animation: iconBounce 0.6s ease infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(-3px) scale(1.15);
    }
    50% {
        transform: translateY(-8px) scale(1.15);
    }
}

/* 功能特性 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(125, 211, 252, 0.05) 100%);
    border: 1px solid rgba(125, 211, 252, 0.12);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(125, 211, 252, 0.08) 100%);
    border-color: rgba(125, 211, 252, 0.25);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 24px;
    color: #7dd3fc;
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.4));
}

.feature-info {
    text-align: center;
}

.feature-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: #f0f4f8;
    margin-bottom: 3px;
}

.feature-info p {
    font-size: 11px;
    color: #94a3b8;
}

/* ===== 加载视图 ===== */
.loading-content {
    justify-content: center;
    gap: 48px;
    min-height: 400px;
}

.loading-text-section {
    text-align: center;
}

.loading-title {
    font-size: 22px;
    font-weight: 800;
    color: #f0f4f8;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.loading-description {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
}

.loading-timeline {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: scale(1.05);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: rgba(125, 211, 252, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.timeline-item.active .timeline-dot {
    background: #7dd3fc;
    box-shadow: 0 0 12px rgba(125, 211, 252, 0.7), 0 0 24px rgba(125, 211, 252, 0.3);
    width: 14px;
    height: 14px;
}

.timeline-item span {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.4s ease;
}

.timeline-item.active span {
    color: #7dd3fc;
    font-weight: 700;
}

.timeline-item i {
    font-size: 14px;
}

/* 加载动画条 */
.loading-animation {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: flex-end;
    height: 50px;
}

.loading-bar {
    width: 5px;
    background: linear-gradient(180deg, #0ea5e9 0%, #7dd3fc 100%);
    border-radius: 3px;
    animation: barWave 1s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(125, 211, 252, 0.4);
}

.loading-bar:nth-child(1) {
    animation-delay: 0s;
    height: 12px;
}

.loading-bar:nth-child(2) {
    animation-delay: 0.1s;
    height: 25px;
}

.loading-bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 38px;
}

.loading-bar:nth-child(4) {
    animation-delay: 0.3s;
    height: 25px;
}

@keyframes barWave {
    0%, 100% {
        height: 12px;
        opacity: 0.5;
    }
    50% {
        height: 45px;
        opacity: 1;
    }
}

/* ===== 下载视图 ===== */
.download-content {
    justify-content: center;
    min-height: 400px;
}

.success-icon-wrapper {
    display: flex;
    justify-content: center;
    animation: scaleInBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleInBounce {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.success-circle {
    width: 80px;
    height: 80px;
    border: 3px solid #7dd3fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #7dd3fc;
    box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.4);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(125, 211, 252, 0);
        transform: scale(1.05);
    }
}

.download-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(20px);
    gap: 24px;
}

.card-header {
    text-align: center;
}

.card-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: #f0f4f8;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.card-header h3 i {
    font-size: 24px;
    color: #7dd3fc;
}

.card-header p {
    font-size: 14px;
    color: #cbd5e1;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(125, 211, 252, 0.1);
    border-bottom: 1px solid rgba(125, 211, 252, 0.1);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.info-row label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.info-row label i {
    font-size: 14px;
    color: #7dd3fc;
}

.info-value {
    font-size: 13px;
    color: #e2e8f0;
    text-align: right;
    flex: 1;
    word-break: break-all;
}

.github-url {
    color: #7dd3fc;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-width: 280px;
}

.speed-value {
    color: #4ade80;
    font-weight: 800;
    font-size: 14px;
}

.progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 700;
}

.progress-header i {
    margin-right: 6px;
    color: #7dd3fc;
}

.progress-number {
    color: #7dd3fc;
    font-size: 14px;
}

.progress-bar-container {
    position: relative;
    height: 7px;
    background: rgba(125, 211, 252, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.2);
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 100%;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9 0%, #7dd3fc 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(125, 211, 252, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.3);
}

/* ===== 错误视图 ===== */
.error-content {
    justify-content: center;
    gap: 28px;
    min-height: 400px;
}

.error-icon-wrapper {
    display: flex;
    justify-content: center;
    animation: shakeError 0.6s ease;
}

@keyframes shakeError {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(-12px) rotate(-5deg);
    }
    75% {
        transform: translateX(12px) rotate(5deg);
    }
}

.error-circle {
    width: 80px;
    height: 80px;
    border: 3px solid #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
}

.error-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(20px);
    text-align: center;
}

.error-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #f0f4f8;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.error-card h3 i {
    color: #ef4444;
}

.error-message {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 24px;
    line-height: 1.6;
}

.retry-button {
    width: 100%;
    padding: 13px 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.retry-button:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.retry-button i {
    font-size: 16px;
}

/* ===== 底部信息栏 ===== */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.95) 50%, rgba(10, 14, 39, 0.99) 100%);
    border-top: 1px solid rgba(125, 211, 252, 0.1);
    padding: 24px 40px;
    backdrop-filter: blur(12px);
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.footer-brand {
    font-weight: 800;
    color: #7dd3fc;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.footer-text {
    color: #64748b;
    font-weight: 500;
}

.footer-separator {
    color: #475569;
    opacity: 0.6;
}

.footer-studio {
    color: #7dd3fc;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.footer-right i {
    font-size: 12px;
    color: #7dd3fc;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .main-content {
        padding: 50px 30px 100px;
    }

    .views-container {
        max-width: 600px;
    }

    .view-title {
        font-size: 32px;
    }

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

    .feature-item {
        flex-direction: row;
        justify-content: flex-start;
    }

    .feature-info {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 40px 20px 100px;
    }

    .views-container {
        max-width: 100%;
    }

    .view-title {
        font-size: 28px;
    }

    .view-subtitle {
        font-size: 14px;
    }

    .submit-button {
        padding: 13px 20px;
        font-size: 15px;
    }

    .download-card {
        padding: 24px;
    }

    .info-value {
        max-width: 200px;
    }

    .github-url {
        max-width: 180px;
    }

    .loading-timeline {
        gap: 12px;
    }

    .timeline-item span {
        font-size: 11px;
    }

    .footer-bar {
        padding: 16px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 30px 16px 90px;
    }

    .view-title {
        font-size: 24px;
    }

    .view-subtitle {
        font-size: 13px;
    }

    .input-form {
        gap: 14px;
    }

    .submit-button {
        padding: 12px 16px;
        font-size: 14px;
    }

    .button-text {
        display: none;
    }

    .submit-button {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-item {
        padding: 14px 10px;
    }

    .download-card {
        padding: 20px;
    }

    .card-header h3 {
        font-size: 18px;
    }

    .info-row {
        flex-direction: column;
        gap: 8px;
    }

    .info-value {
        max-width: 100%;
        text-align: left;
    }

    .footer-bar {
        padding: 12px 16px;
    }

    .footer-left,
    .footer-right {
        font-size: 11px;
        gap: 6px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(125, 211, 252, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(125, 211, 252, 0.5);
}