/* 全局样式区 */
:root {
    --primary-color: #8bc34a;
    --secondary-color: #ff9800;
    --accent-color: #ff5722;
    --background-color: #f1f8e9;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #33691e;
    --text-secondary: #689f38;
    --border-color: rgba(139, 195, 74, 0.3);
    --shadow: 0 8px 32px rgba(139, 195, 74, 0.2);
    --shadow-lg: 0 16px 48px rgba(139, 195, 74, 0.25);
    --border-radius: 20px;
    --transition: all 0.3s ease;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px rgba(139, 195, 74, 0.15);
    --dark-gray: #666666;
    --dark-orange: #FF8C00;
    --dollar-green: #008000;
}

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

body {
    font-family: 'Comic Sans MS', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: 
        linear-gradient(135deg, rgba(241, 248, 233, 0.9) 0%, rgba(220, 237, 200, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grass" width="20" height="20" patternUnits="userSpaceOnUse"><rect width="20" height="20" fill="%238bc34a" opacity="0.1"/><path d="M0 20 Q5 15 10 20 T20 20" stroke="%23689f38" stroke-width="1" fill="none" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grass)"/></svg>');
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* 布局样式区 */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 90px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-container {
    display: none;
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
    width: 100%;
}

.page-container.active {
    display: block;
}

    .page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        gap: 1rem;
        min-height: auto;
        flex-wrap: wrap;
    }

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

.login-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 195, 74, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 152, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(121, 85, 72, 0.05) 0%, transparent 50%);
}

.floating-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 20px 60px rgba(139, 195, 74, 0.3);
    z-index: 1000;
    gap: 0.5rem;
    min-width: 300px;
    justify-content: center;
    border: 2px dashed var(--primary-color);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 195, 74, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 组件样式区 */
.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px dashed var(--primary-color);
    padding: 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
    min-height: 70px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.app-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(135deg, #8bc34a, #689f38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-info-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-name-container {
    display: flex;
    align-items: center;
}

.player-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8bc34a, #ff9800, #ff5722);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 195, 74, 0.3);
    border-color: rgba(139, 195, 74, 0.5);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: left 0.5s;
}

.glass-btn:hover::before {
    left: 100%;
}

.glass-btn:hover:not(:disabled) {
    background: rgba(139, 195, 74, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-2px) scale(1.05);
}

.dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 1.2rem;
    background: transparent;
    border: none;
    border-radius: 15px;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    min-width: 80px;
    position: relative;
}

.dock-btn:hover {
    background: rgba(139, 195, 74, 0.2);
    color: var(--primary-color);
    transform: translateY(-2px) scale(1.1);
}

.dock-btn.active {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.3), rgba(255, 152, 0, 0.3));
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.3);
    transform: scale(1.1);
}

.dock-btn .emoji {
    font-size: 1.5rem;
    transition: var(--transition);
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.dock-btn.active .emoji {
    transform: scale(1.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1.1); }
    50% { transform: translateY(-5px) scale(1.15); }
}

.dock-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.gold-badge {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.9), 
        rgba(255, 152, 0, 0.9));
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.gold-badge .gold-icon {
    font-size: 1.2rem;
}

.gold-badge .gold-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.gold-badge .gold-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.hardware-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    border: 2px dashed var(--primary-color);
}

.hardware-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(139, 195, 74, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hardware-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    min-height: 50px;
}

.hardware-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    margin-right: 1rem;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.hardware-power {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.9), rgba(255, 152, 0, 0.9));
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.power-icon {
    font-size: 1rem;
    color: #ffd700;
}

.power-amount {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
}

.hardware-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    position: relative;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    min-height: 180px;
}

.hardware-icon {
    width: 90% !important;
    height: auto !important;
    max-height: 220px;
    object-fit: contain;
    filter: 
        drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
    z-index: 2;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.animal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.animal-emoji {
    font-size: 60px;
    line-height: 1;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
    animation: bounce 2s infinite;
}

.hardware-icon.emoji-icon {
    font-size: 6rem;
    width: 100% !important;
    height: auto !important;
    max-height: 220px;
    filter: 
        drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    display: flex;
    justify-content: center;
    align-items: center;
}

.hardware-icon-container::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: radial-gradient(ellipse at center, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    z-index: 1;
    opacity: 0.7;
    transition: var(--transition);
}

.hardware-card:hover .hardware-icon {
    transform: scale(1.1) translateY(-5px);
    animation: none;
}

.hardware-card:hover .hardware-icon-container::before {
    opacity: 0.9;
    transform: scale(1.1);
    filter: blur(10px);
}

.hardware-info {
    margin-bottom: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hardware-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hardware-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.detail-value.harvest-ready {
    color: #27ae60 !important;
    font-weight: 700;
}

.special-label {
    color: #e67e22 !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
}

.status-ready {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.2), rgba(92, 184, 92, 0.2));
    color: #27ae60;
    border: 1px solid rgba(126, 211, 33, 0.3);
}

.status-waiting {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    color: #f39c12;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.hardware-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    width: 100%;
}

.harvest-btn, .buy-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.harvest-btn {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.2), rgba(92, 184, 92, 0.2));
    color: #27ae60;
    border: 1px solid rgba(126, 211, 33, 0.3);
}

.harvest-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.3), rgba(92, 184, 92, 0.3));
    border-color: rgba(126, 211, 33, 0.5);
}

.buy-btn {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.2), rgba(255, 152, 0, 0.2));
    color: #8bc34a;
    border: 1px solid rgba(139, 195, 74, 0.3);
}

.buy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.3), rgba(255, 152, 0, 0.3));
    border-color: rgba(139, 195, 74, 0.5);
}

button:disabled {
    background: rgba(128, 128, 128, 0.1) !important;
    color: var(--text-secondary) !important;
    border-color: rgba(128, 128, 128, 0.2) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    border: 2px dashed var(--primary-color);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8bc34a, #ff9800, #ff5722);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.login-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #8bc34a, #689f38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.login-card-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.input-field {
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    width: 100%;
}

.input-field:focus {
    outline: none;
    border-color: #8bc34a;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.2);
    background: white;
}

.input-field::placeholder {
    color: var(--text-secondary);
}

button {
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.login-btn-card, .register-btn-card {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    width: 100%;
}

.login-btn-card {
    background: linear-gradient(135deg, #8bc34a, #689f38);
    color: white;
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.4);
}

.login-btn-card:hover:not(:disabled) {
    box-shadow: 0 12px 30px rgba(139, 195, 74, 0.6);
    transform: translateY(-2px) scale(1.05);
}

.register-btn-card {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    border: none;
}

.register-btn-card:hover:not(:disabled) {
    background: linear-gradient(135deg, #f57c00, #ff9800);
    box-shadow: 0 12px 30px rgba(255, 152, 0, 0.6);
    transform: translateY(-2px) scale(1.05);
}

.logout-btn {
    background: linear-gradient(135deg, var(--accent-color), #ff8e8e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.logout-btn:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

.login-card-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.login-card-buttons button {
    flex: 1;
}

.customer-service-register {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(139, 195, 74, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(139, 195, 74, 0.2);
}

.customer-service-register p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.customer-service-link {
    display: inline-block;
    color: #8bc34a;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid #8bc34a;
    border-radius: 8px;
    transition: var(--transition);
}

.customer-service-link:hover {
    background: #8bc34a;
    color: white;
}

.announcement-bar {
    padding: 10px 0;
    background: linear-gradient(135deg, 
        rgba(139, 195, 74, 0.95) 0%, 
        rgba(104, 159, 56, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-radius: 0;
    border: none;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(139, 195, 74, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #8bc34a, #ff9800, #ff5722, #689f38);
    background-size: 400% 100%;
    animation: gradientShift 8s ease-in-out infinite;
}

.announcement-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 1rem;
    width: 100%;
    position: relative;
}

.announcement-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 35px;
    position: relative;
}

.announcement-text {
    white-space: nowrap;
    display: inline-block;
    animation: smoothScroll 30s linear infinite;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0;
    text-align: center;
    position: absolute;
    left: 100%;
    animation-delay: 0.5s;
}

.announcement-text::before {
    content: '📢 ';
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.announcement-content::before,
.announcement-content::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 1;
    pointer-events: none;
}

.announcement-content::before {
    left: 0;
    background: linear-gradient(90deg, 
        rgba(139, 195, 74, 1) 0%, 
        rgba(139, 195, 74, 0) 100%);
}

.announcement-content::after {
    right: 0;
    background: linear-gradient(270deg, 
        rgba(139, 195, 74, 1) 0%, 
        rgba(139, 195, 74, 0) 100%);
}

.app-footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: normal;
    word-wrap: break-word;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #8bc34a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(255, 255, 255, 0.1) inset;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, 
        rgba(39, 174, 96, 0.9), 
        rgba(46, 204, 113, 0.95));
    border-left: 4px solid rgba(33, 150, 83, 0.8);
}

.notification.error {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.9), 
        rgba(255, 107, 107, 0.95));
    border-left: 4px solid rgba(192, 57, 43, 0.8);
}

.notification.info {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.9), 
        rgba(74, 144, 226, 0.95));
    border-left: 4px solid rgba(41, 128, 185, 0.8);
}

.notification.warning {
    background: linear-gradient(135deg, 
        rgba(243, 156, 18, 0.9), 
        rgba(241, 196, 15, 0.95));
    border-left: 4px solid rgba(230, 126, 34, 0.8);
}

.notification.earnings {
    background: linear-gradient(135deg, 
        rgba(241, 196, 15, 0.9), 
        rgba(243, 156, 18, 0.95));
    border-left: 4px solid rgba(230, 126, 34, 0.8);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-message {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #000000 !important;
    text-shadow: none;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    border: 2px dashed var(--primary-color);
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-actions button {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
}

.confirm-btn {
    background: linear-gradient(135deg, #8bc34a, #689f38);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.4);
}

.confirm-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #7cb342, #558b2f);
    box-shadow: 0 12px 30px rgba(139, 195, 74, 0.6);
    transform: translateY(-2px);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* 页面特定样式区 */
.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, #8bc34a, #689f38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8bc34a, #689f38);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.user-gold {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 新的四宫格布局 */
.stats-grid-four {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* 总收益卡片样式 - 修改为灰白色背景 */
.total-earnings-card {
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

.total-earnings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.total-earnings-header .section-title {
    margin: 0;
    border: none;
    padding: 0;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.total-earnings-icon {
    font-size: 1.5rem;
    color: var(--dollar-green);
}

.total-earnings-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dollar-green);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.total-earnings-label {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* 阶段进度条样式区 */
.stage-progress-container {
    width: 100%;
    margin: 1rem 0;
}

.stage-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 0.5rem 0;
    gap: 4px;
}

.stage-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #e0e0e0;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.stage-dot.active {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
    color: #2E7D32;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.stage-dot.current {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
    color: #1565C0;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    animation: pulse-dot 2s infinite;
}

.stage-dot.completed {
    background: rgba(76, 175, 80, 0.25);
    border-color: #4CAF50;
    color: #1B5E20;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.stage-dot.completed::before {
    content: '✓';
    font-size: 14px;
    font-weight: bold;
}

.stage-line {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, #e0e0e0, #bdbdbd);
    margin: 0 2px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stage-line.active {
    background: linear-gradient(90deg, #4CAF50, #2196F3);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.stage-line.completed {
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.4);
}

/* 线性进度条样式 */
.linear-progress-container {
    width: 100%;
    margin: 1rem 0;
    padding: 0 0.5rem;
}

.linear-progress {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.linear-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #CDDC39);
    border-radius: 8px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.linear-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shimmer 2s infinite;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.progress-text .current {
    color: #2196F3;
    font-weight: 700;
}

.progress-text .total {
    color: var(--text-secondary);
    font-weight: 600;
}

/* 阶段指示器样式 */
.stage-indicator {
    font-size: 0.85rem;
    color: var(--dark-gray);
    background: rgba(255, 255, 255, 0.6);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
    margin-top: 0.3rem;
}

/* 改进的操作按钮样式 */
.hardware-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    width: 100%;
}

.action-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
}

.action-btn .btn-icon {
    font-size: 1.2em;
}

.action-btn .btn-text {
    flex: 1;
    text-align: center;
}

.action-btn:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feed-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.feed-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.feed-btn.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.contact-purchaser-btn {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.contact-purchaser-btn:hover {
    background: linear-gradient(135deg, #F57C00, #EF6C00);
}

/* 改进的硬件卡片布局 */
.hardware-content {
    display: flex;
    flex: 1;
    gap: 15px;
    margin-bottom: 15px;
}

.hardware-visual {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hardware-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hardware-title-section {
    flex: 1;
}

.hardware-title-section .hardware-name {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    color: var(--text-primary);
}

.stage-indicator {
    font-size: 0.9em;
    color: var(--dark-gray);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

/* 统计卡片网格改进 */
.stat-card {
    text-align: center;
    padding: 20px 15px;
    border-radius: 12px;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .stat-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card .stat-value {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--dark-orange);
}

/* 为预期收益卡片单独设置颜色 */
.stat-card.expected-earnings-card .stat-value {
    color: var(--dollar-green);
}

.stat-card .stat-label {
    font-size: 0.9em;
    opacity: 0.8;
    color: var(--dark-gray);
}

.empty-state, .empty-history {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
}

.invite-main-account,
.invite-sub-account {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.invite-header {
    text-align: center;
    margin-bottom: 2rem;
}

.invite-header .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8bc34a, #689f38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.invite-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.invite-link-section,
.invite-stats-section,
.invite-tips-section,
.invite-note-section {
    margin-bottom: 2rem;
}

.subsection-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.invite-link-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.invite-link-input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
}

.invite-link-input:focus {
    outline: none;
    border-color: #8bc34a;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.2);
}

.copy-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #8bc34a, #689f38);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #7cb342, #558b2f);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.4);
}

.copy-icon {
    margin-right: 0.5rem;
}

.invite-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.invite-stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: var(--transition);
}

.invite-stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.invite-stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #8bc34a, #689f38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.invite-stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.tip-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.invite-note-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(139, 195, 74, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(139, 195, 74, 0.2);
}

.note-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.note-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* 功能组件样式区 */
.refresh-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    width: 100%;
}

.refresh-shop-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.9), rgba(104, 159, 56, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.3);
}

.refresh-shop-btn:hover {
    background: linear-gradient(135deg, rgba(139, 195, 74, 1), rgba(104, 159, 56, 1));
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(139, 195, 74, 0.4);
}

.refresh-shop-btn:active {
    transform: translateY(0);
}

.refresh-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.refresh-shop-btn:active .refresh-icon {
    transform: rotate(180deg);
}

.login-card-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
}

.vertical-btn {
    width: 100%;
    margin: 0;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.username-hint {
    font-size: 12px;
    color: #a4b0be;
    margin-top: 5px;
}

#customer-service-button {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: linear-gradient(135deg, #8bc34a, #689f38);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.4);
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#customer-service-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(139, 195, 74, 0.6);
}

.customer-service-icon {
    font-size: 18px;
}

.customer-service-text {
    white-space: nowrap;
}

.search-container {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    padding: 0.8rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    flex: 1;
    min-width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: #8bc34a;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.15);
}

.search-info {
    color: #7f8c8d;
    font-size: 0.85rem;
    font-style: italic;
}

.search-hint {
    color: #e74c3c;
    font-size: 0.7rem;
    margin-left: 5px;
    font-style: italic;
}

.child-account[style*="background-color"] {
    border-left: 3px solid #3498db;
}

.expand-btn.expanded {
    transform: rotate(90deg);
    color: #3498db;
}

#page-info {
    font-size: 0.8rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0 0.5rem;
}

.input-field:invalid {
    border-color: #ff4757;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.1);
}

.input-field:valid {
    border-color: #2ed573;
    box-shadow: 0 0 0 2px rgba(46, 213, 115, 0.1);
}

#register-username::placeholder,
#register-password::placeholder,
#register-confirm-password::placeholder {
    color: var(--text-secondary);
}

/* 新增：商店按钮容器和按钮样式 */
.shop-buttons-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    min-height: auto;
}

#app-download-btn, #global-refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-height: 50px;
    white-space: nowrap;
}

#app-download-btn {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9));
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

#app-download-btn:hover {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.9), rgba(52, 152, 219, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
}

#global-refresh-btn {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.9), rgba(104, 159, 56, 0.9));
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

#global-refresh-btn:hover {
    background: linear-gradient(135deg, rgba(104, 159, 56, 0.9), rgba(139, 195, 74, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(139, 195, 74, 0.4);
}

.app-icon, .refresh-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes smoothScroll {
    0% { 
        left: 100%;
    }
    100% { 
        left: -300%;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 阶段进度条动画 */
@keyframes pulse-dot {
    0%, 100% { 
        transform: scale(1.15);
        box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    }
    50% { 
        transform: scale(1.25);
        box-shadow: 0 8px 25px rgba(33, 150, 243, 0.6);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.login-card {
    animation: fadeIn 0.6s ease-out;
}

.hardware-card {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条样式区 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8bc34a, #689f38);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7cb342, #558b2f);
}

/* 响应式设计区 */
@media (max-width: 768px) {
    .app-container {
        padding-bottom: 100px;
    }

    .header-content {
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header-left, .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .app-title {
        font-size: 1.1rem;
    }
    
    .app-subtitle {
        font-size: 0.75rem;
    }
    
    .player-section {
        justify-content: center;
    }
    
    .floating-dock {
        bottom: 10px;
        padding: 0.6rem 1rem;
        min-width: 280px;
        border-radius: 20px;
    }
    
    .dock-btn {
        padding: 0.6rem 0.8rem;
        min-width: 70px;
    }
    
    .dock-btn .emoji {
        font-size: 1.3rem;
    }
    
    .dock-btn span {
        font-size: 0.7rem;
    }
    
    #customer-service-button {
        bottom: 90px;
        right: 15px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .customer-service-text {
        display: inline !important;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .gold-badge {
        order: 1;
        align-self: center;
    }
    
    .user-profile {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .stats-grid-four {
        grid-template-columns: 1fr;
    }
    
    .login-card-container {
        min-height: calc(100vh - 100px);
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-150%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .announcement-container {
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .announcement-content {
        max-width: 100%;
        padding: 0.4rem 0.8rem;
        min-height: 32px;
    }
    
    .announcement-text {
        font-size: 0.8rem;
        animation: smoothScroll 20s linear infinite;
    }
    
    .announcement-content::before,
    .announcement-content::after {
        width: 20px;
    }
    
    .announcement-bar {
        min-height: 40px;
        padding: 8px 0;
    }

    .earnings-grid {
        grid-template-columns: 1fr;
    }
    
    .earnings-card {
        padding: 0.8rem;
    }
    
    .earnings-header {
        margin-bottom: 0.6rem;
    }
    
    .earnings-icon {
        font-size: 1.5rem;
    }
    
    .earnings-amount-positive {
        font-size: 1rem;
    }
    
    .earnings-detail {
        padding: 0.2rem 0;
    }
    
    .earnings-label, .earnings-value {
        font-size: 0.75rem;
    }
    
    .earnings-time {
        font-size: 0.65rem;
    }

    .invite-main-account,
    .invite-sub-account {
        padding: 1.5rem;
    }
    
    .invite-link-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .invite-link-input {
        width: 100%;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .invite-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .invite-stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .tip-item {
        padding: 0.8rem;
    }
    
    .tip-icon {
        font-size: 1.3rem;
    }
    
    .tip-text {
        font-size: 0.8rem;
    }
    
    .invite-note-section {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .note-icon {
        font-size: 1.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: none;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .search-hint {
        font-size: 0.6rem;
    }

    .hardware-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .hardware-card {
        padding: 1rem;
        min-height: 420px;
    }
    
    .hardware-card-header {
        margin-bottom: 0.8rem;
        min-height: 45px;
    }
    
    .hardware-name {
        font-size: 1rem;
    }
    
    .hardware-power {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .power-amount {
        font-size: 0.8rem;
    }
    
    .hardware-icon-container {
        width: 90%;
        min-height: 120px;
        margin: 0.6rem auto;
    }
    
    .hardware-icon {
        width: 100% !important;
        height: auto !important;
        max-height: 150px;
    }
    
    .hardware-icon.emoji-icon {
        font-size: 4rem;
        max-height: 150px;
    }
    
    .hardware-details {
        gap: 0.5rem;
    }
    
    .hardware-detail {
        padding: 0.3rem 0;
    }
    
    .detail-label, .detail-value {
        font-size: 0.75rem;
    }
    
    .status-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        margin-top: 0.8rem;
    }
    
    .harvest-btn, .buy-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        gap: 1rem;
        min-height: auto;
        flex-wrap: wrap;
    }
    
    .gold-badge {
        order: 1;
        align-self: flex-start;
        width: auto;
    }
    
    .refresh-container {
        order: 2;
        justify-content: flex-start;
        margin-top: 0;
        width: 100%;
    }
    
    .refresh-shop-btn {
        width: 100%;
        justify-content: center;
        max-width: none;
    }
    
    /* 响应式硬件卡片布局 */
    .hardware-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .hardware-visual {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        flex: 0 0 auto;
    }
    
    .hardware-icon-container {
        margin-bottom: 0;
    }
    
    .stage-progress-container {
        flex: 1;
        margin-top: 0;
    }
    
    .stage-progress {
        gap: 2px;
        padding: 0.3rem 0;
    }
    
    .stage-dot {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border-width: 2px;
    }
    
    .stage-line {
        height: 3px;
    }
    
    .linear-progress-container {
        padding: 0 0.3rem;
    }
    
    .linear-progress {
        height: 10px;
    }
    
    .progress-text {
        font-size: 0.8rem;
        margin-top: 0.3rem;
    }
    
    .action-btn {
        padding: 10px 15px;
        font-size: 0.95em;
    }
    
    .total-earnings-amount {
        font-size: 2rem;
    }
    
    /* 新增：移动端商店按钮样式 */
    .shop-buttons-container {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 0;
    }
    
    #app-download-btn, #global-refresh-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.85rem;
        min-height: 45px;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding-bottom: 110px;
    }

    .floating-dock {
        min-width: 260px;
        padding: 0.5rem 0.8rem;
    }
    
    .dock-btn {
        padding: 0.5rem 0.6rem;
        min-width: 65px;
    }
    
    .dock-btn .emoji {
        font-size: 1.2rem;
    }
    
    .dock-btn span {
        font-size: 0.65rem;
    }
    
    #customer-service-button {
        bottom: 85px;
        right: 10px;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .hardware-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .hardware-card {
        padding: 0.8rem;
    }
    
    .hardware-name {
        font-size: 0.9rem;
    }
    
    .detail-label, .detail-value {
        font-size: 0.7rem;
    }
    
    .harvest-btn, .buy-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .login-card-title {
        font-size: 1.5rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }

    .invite-main-account,
    .invite-sub-account {
        padding: 1rem;
    }
    
    .invite-header .section-title {
        font-size: 1.5rem;
    }
    
    .invite-description {
        font-size: 0.9rem;
    }
    
    .subsection-title {
        font-size: 1.1rem;
    }
    
    .invite-stat-card {
        padding: 1rem 0.8rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .modal-header {
        padding: 0.8rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-actions button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .refresh-shop-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* 小屏幕硬件卡片布局 */
    .hardware-visual {
        flex-direction: column;
        gap: 10px;
    }
    
    .stage-progress {
        justify-content: center;
    }
    
    .stage-dot {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .stage-dot.completed::before {
        font-size: 12px;
    }
    
    .linear-progress {
        height: 8px;
    }
    
    .progress-text {
        font-size: 0.75rem;
        margin-top: 0.3rem;
    }
    
    /* 新增：小屏幕商店按钮样式 */
    #app-download-btn, #global-refresh-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .app-icon, .refresh-icon {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .floating-dock {
        min-width: 240px;
        padding: 0.4rem 0.6rem;
    }
    
    .dock-btn {
        padding: 0.4rem 0.5rem;
        min-width: 60px;
    }
    
    .dock-btn span {
        font-size: 0.6rem;
    }
    
    #customer-service-button {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .hardware-grid {
        padding: 0.3rem;
        gap: 0.6rem;
    }
    
    .hardware-card {
        padding: 0.6rem;
    }

    .refresh-shop-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* 新增：超小屏幕商店按钮样式 */
    .shop-buttons-container {
        gap: 0.6rem;
    }
    
    #app-download-btn, #global-refresh-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        min-height: 38px;
    }
}

/* 高对比度模式支持区 */
@media (prefers-contrast: high) {
    .glass-card {
        background: white;
        border: 2px solid #000000;
    }
    
    .glass-btn {
        background: white;
        border: 2px solid #000000;
    }
    
    .notification {
        border: 2px solid #000000;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .notification.success {
        background: #006400;
        color: #ffffff;
    }
    
    .notification.error {
        background: #8b0000;
        color: #ffffff;
    }
    
    .notification.info {
        background: #00008b;
        color: #ffffff;
    }
    
    .notification.warning, .notification.earnings {
        background: #8b7500;
        color: #ffffff;
    }
    
    .stage-dot {
        background: white;
        border: 2px solid #000000;
        color: #000000;
    }
    
    .stage-dot.active,
    .stage-dot.current,
    .stage-dot.completed {
        background: #000000;
        color: #ffffff;
        border-color: #000000;
    }
    
    .stage-line {
        background: #cccccc;
    }
    
    .stage-line.active,
    .stage-line.completed {
        background: #000000;
    }
    
    .linear-progress {
        background: #ffffff;
        border: 1px solid #000000;
    }
    
    .linear-progress-fill {
        background: #000000;
    }
    
    /* 新增：高对比度模式下的商店按钮 */
    #app-download-btn, #global-refresh-btn {
        background: white;
        color: #000000;
        border: 2px solid #000000;
        backdrop-filter: none;
    }
}