:root {
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --secondary-color: #34c759;
    --secondary-hover: #30d158;
    --orange-color: #ff9500;
    --purple-color: #5856d6;
    --purple-gradient: linear-gradient(135deg, #5856d6 0%, #6366f1 100%);
    --text-color: #1d1d1f;
    --text-secondary: #86868b;
    --bg-color: #f5f5f7;
    --border-color: #d2d2d7;
    --card-radius: 16px;
    --btn-radius: 980px;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --service-color: #07c160;
    --service-hover: #08d169;
    --service-gradient: linear-gradient(135deg, #07c160 0%, #08d169 100%);
    --official-color: #0056b3;
    --official-hover: #0066cc;
    --official-gradient: linear-gradient(135deg, #0056b3 0%, #0066cc 100%);
    --glow-primary: rgba(0, 113, 227, 0.4);
    --glow-purple: rgba(88, 86, 214, 0.4);
    --glow-service: rgba(7, 193, 96, 0.4);
    --glow-official: rgba(0, 86, 179, 0.4);
    /* 新增：加载/禁用状态配色 */
    --disabled-bg: #e5e5e7;
    --disabled-text: #86868b;
    --loading-bg: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);
    --toast-bg: rgba(0,0,0,0.8);
    --toast-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    min-height: 100vh;
    /* 防止点击时的高亮效果 */
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 15px;
}

header {
    padding: 30px 0;
    margin-bottom: 25px;
    text-align: center;
}

header h1 {
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease-out;
}

.app-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    background: white;
    border-radius: var(--card-radius);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.app-header:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.app-icon-container {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
}

.app-main-info {
    flex: 1;
    min-width: 0;
}

.app-meta-info {
    flex: 1;
    min-width: 0;
}

.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin: 0 auto 20px;
    transition: var(--transition);
    /* 图片懒加载优化 */
    object-fit: cover;
}

.app-icon:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.app-info h1 {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.app-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px auto;
    max-width: 280px;
    animation: fadeInUp 1s ease-out;
}

/* 按钮核心优化：增加加载/禁用状态 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 0 rgba(255,255,255,0);
    /* 禁止文本选中 */
    user-select: none;
}

.btn-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.2;
}

.btn-sub {
    font-size: 12px;
    opacity: 0.85;
}

/* 按钮加载动画 */
.btn-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loadingShine 1.5s infinite linear;
    z-index: -1;
}

/* 高级七彩流光特效 */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: visible;
    gap: 8px;
    justify-content: flex-start;
    padding-left: 16px;
}

/* 主流光效果 */
.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        -45deg,
        transparent,
        rgba(255, 0, 255, 0.4),
        rgba(0, 255, 255, 0.4),
        rgba(255, 255, 0, 0.4),
        rgba(255, 0, 0, 0.4),
        transparent
    );
    background-size: 300% 300%;
    animation: advancedRainbow 2s linear infinite;
    z-index: -1;
    opacity: 0.7;
    transition: all 0.3s ease;
    border-radius: var(--btn-radius);
}

/* 脉冲效果 */
.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.3),
        rgba(0, 255, 255, 0.3),
        rgba(255, 0, 255, 0.3)
    );
    background-size: 200% 200%;
    animation: pulse 2s ease-in-out infinite;
    z-index: -2;
    opacity: 0.3;
    border-radius: var(--btn-radius);
    filter: blur(10px);
}

/* 按钮禁用状态 */
.btn:disabled {
    background: var(--disabled-bg) !important;
    color: var(--disabled-text) !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

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

.btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 0 25px rgba(255,255,255,0.25), 0 8px 24px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 12px var(--glow-primary);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--glow-primary), 0 8px 24px rgba(0, 113, 227, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
    color: white;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 0 30px rgba(52, 199, 89, 0.4), 0 8px 24px rgba(52, 199, 89, 0.4);
}

/* 悬停增强效果 */
.btn-primary:hover::after,
.btn-secondary:hover::after {
    opacity: 1;
    transform: scale(1.05);
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    opacity: 0.5;
    filter: blur(15px);
    transform: scale(1.1);
}

.btn-orange {
    background: linear-gradient(135deg, var(--orange-color), #ffab40);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.btn-orange:hover {
    box-shadow: 0 0 30px rgba(255, 149, 0, 0.4), 0 8px 24px rgba(255, 149, 0, 0.4);
}

.btn-purple {
    background: var(--purple-gradient);
    color: white;
    box-shadow: 0 4px 12px var(--glow-purple);
    gap: 12px;
}

.btn-purple:hover {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    box-shadow: 0 0 30px var(--glow-purple), 0 8px 24px rgba(88, 86, 214, 0.4);
}

.btn-service {
    background: var(--service-gradient);
    color: white;
    box-shadow: 0 4px 12px var(--glow-service);
    gap: 12px;
}

.btn-service:hover {
    background: linear-gradient(135deg, #08d169, #06b856);
    box-shadow: 0 0 30px var(--glow-service), 0 8px 24px rgba(7, 193, 96, 0.4);
}

.btn-official {
    background: var(--official-gradient);
    color: white;
    box-shadow: 0 4px 12px var(--glow-official);
    gap: 12px;
}

.btn-official:hover {
    background: linear-gradient(135deg, #0066cc, #0077dd);
    box-shadow: 0 0 30px var(--glow-official), 0 8px 24px rgba(0, 86, 179, 0.4);
}

.btn-unlock {
    background: linear-gradient(135deg, #ff7a00, #ff9f43);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.btn-unlock:hover {
    box-shadow: 0 0 30px rgba(255, 122, 0, 0.4), 0 8px 24px rgba(255, 122, 0, 0.4);
}

.compatibility-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 15px 0;
    animation: fadeInUp 1s ease-out;
}

.compatibility-item {
    background: rgba(0,0,0,0.02);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.compatibility-item:hover {
    background: rgba(0, 113, 227, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.compatibility-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 15px;
}

.extra-options {
    margin-top: 20px;
}

.extra-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 15px;
    animation: fadeInUp 1.2s ease-out;
}

.extra-note {
    background: rgba(0,113,227,0.05);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
    animation: fadeInUp 1.2s ease-out;
}

.extra-note:hover {
    background: rgba(0,113,227,0.08);
    transform: translateX(2px);
}

.extra-note strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.info-item h3 {
    color: var(--text-secondary);
    margin-right: 10px;
    font-weight: 500;
    min-width: 70px;
    font-size: 14px;
}

.info-item p {
    font-weight: 500;
    margin: 0;
    font-size: 14px;
}

.badge {
    display: inline-block;
    background-color: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 12px;
    margin-left: 6px;
}

.section {
    background: white;
    border-radius: var(--card-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: fadeInUp 1s ease-out;
}

.section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.section-title {
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-color);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--purple-color));
    border-radius: 3px;
}

.screenshot-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    animation: fadeInUp 1.2s ease-out;
}

.screenshot-container::-webkit-scrollbar {
    display: none;
}

.screenshot {
    height: 220px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    flex: 0 0 auto;
    transition: var(--transition);
    cursor: pointer;
    /* 图片懒加载+适配优化 */
    object-fit: cover;
}

.screenshot:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    animation: fadeInUp 1.2s ease-out;
}

.description p {
    margin-bottom: 15px;
    transition: var(--transition);
}

.description ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.description li {
    margin-bottom: 8px;
    transition: var(--transition);
}

.description li:hover {
    color: var(--primary-color);
    transform: translateX(2px);
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
    animation: fadeInUp 1.4s ease-out;
}

/* 新增：Toast提示框（安装反馈） */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--toast-bg);
    color: var(--toast-text);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    max-width: 80%;
}

.toast.show {
    opacity: 1;
}

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

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

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

@keyframes loadingShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 高级彩虹动画 */
@keyframes advancedRainbow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        background-position: 0% 0%;
        transform: scale(1);
    }
    50% {
        background-position: 100% 100%;
        transform: scale(1.05);
    }
    100% {
        background-position: 0% 0%;
        transform: scale(1);
    }
}

/* PC端适配 */
@media (min-width: 768px) {
    .container { padding: 25px; }
    
    .app-header {
        flex-wrap: nowrap;
        gap: 30px;
        padding: 30px;
    }
    
    .app-icon-container {
        width: auto;
        flex: 0 0 180px;
    }
    
    .app-icon {
        width: 140px;
        height: 140px;
        border-radius: 24px;
    }
    
    .button-group {
        flex-direction: row;
        max-width: none;
        margin: 20px 0 0;
    }
    
    .btn {
        width: auto;
        min-width: 140px;
        padding: 14px 28px;
        font-size: 17px;
    }
    
    .app-info h1, .app-info p { text-align: left; }
    
    .compatibility-list { grid-template-columns: repeat(2, 1fr); }
    
    .extra-buttons { grid-template-columns: repeat(2, 1fr); }
    
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    
    .screenshot { height: 350px; border-radius: 16px; }
    
    .section { padding: 30px; }
}

/* 大屏幕优化 */
@media (min-width: 992px) {
    .app-icon { width: 160px; height: 160px; border-radius: 28px; }
    .screenshot { height: 400px; }
}