/* 授权服务器样式文件 - 请勿复制或修改 */

/* 关键样式定义 */
:root {
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --secondary-color: #34c759;
    --secondary-hover: #30d158;
    --orange-color: #ff9500;
    --purple-color: #5856d6;
    --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);
}

/* 基本样式 */
* {
    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;
}

/* 容器样式 */
.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);
}

.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.2s;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 199, 89, 0.4);
}

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

.btn-orange:hover {
    background-color: #ffab40;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 149, 0, 0.4);
}

.btn-purple {
    background-color: var(--purple-color);
    color: white;
    box-shadow: 0 4px 12px rgba(88, 86, 214, 0.3);
}

.btn-purple:hover {
    background-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 86, 214, 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;
}

.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;
}

/* 动画效果 */
@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);
    }
}

/* 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;
    }
}

/* 盗版检测样式 - 请勿修改 */
.piracy-detected {
    display: none !important;
}

/* 授权验证样式 */
.authorized-only {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 样式加载检测 */
body:not(.styles-loaded) {
    opacity: 0;
}

body.styles-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}
