* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}
body::before, body::after {
    content: '';
    position: fixed;
    top: 0;
    width: 25vw;
    min-width: 300px;
    max-width: 500px;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    filter: blur(30px);
}
body::before {
    left: -50px;
    background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
    clip-path: polygon(0 0, 90% 0, 40% 100%, 0 100%);
    animation: gradientShiftLeft 12s ease infinite;
    background-size: 300% 300%;
}
body::after {
    right: -50px;
    background: linear-gradient(225deg, #EA4335, #FBBC05, #34A853, #4285F4);
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 10% 100%);
    animation: gradientShiftRight 12s ease infinite 2s;
    background-size: 300% 300%;
}
@keyframes gradientShiftLeft {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes gradientShiftRight {
    0%, 100% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
}
.container {
    position: relative;
    background-color: rgba(255,255,255,0.92);
    border-radius: 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    padding: 40px;
    margin: 40px auto;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 20px 20px 20px;
    text-align: center;
}
.icon-wrap {
    background-color: #fff;
    width: 160px;
    height: 160px;
    border-radius: 25px;
    box-shadow: 0 0 10px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.brand-header {
    margin-bottom: 30px;
    position: relative;
    background-image: url('../images/distribute-bg.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 180% auto;
    padding-top: 40px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}
.brand-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    border: 1px solid #e5e5e5;
    object-fit: contain;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.app-name {
    font-size: 18px;
    margin-bottom: 0;
    margin-top: 10px;
    word-break: break-all;
    white-space: pre-wrap;
    font-weight: 550;
    color: #333;
    text-align: center;
}

.brand-description {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 600px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.app-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px auto 0;
    max-width: 600px;
    text-align: center;
}

.app-info .version-info {
    margin: 0;
}

.app-info .update-time {
    margin-top: 5px;
}
.version-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 5px 0 5px 0;
    color: #666;
    font-size: 15px;
}
.version-platforms {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    width: auto;
    justify-content: center;
}
.platform-version {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}
.version-label {
    font-weight: bold;
    color: #444;
}
.version-number {
    color: #2c3e50;
    font-weight: bold;
}
.package-size {
    color: #888;
    font-size: 13px;
}
.update-time {
    text-align: center;
    color: #aaa;
    font-size: 12px;
    margin-bottom: 8px;
}
.version-platforms {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.platform-version {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.package-size {
    color: #888;
    font-size: 12px;
    margin-left: 5px;
}
.changelog {
    margin: 20px auto;
    max-width: 600px;
    color: #888;
    text-align: left;
    padding: 0 20px;
}
.changelog h3 {
    color: #666;
    margin-bottom: 10px;
    font-size: 16px;
}
.changelog ul {
    list-style-type: none;
    padding-left: 0;
}
.changelog {
    position: relative;
    padding-bottom: 25px;
}
.changelog .content {
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: max-height;
}
.changelog.expanded .content {
    max-height: 2000px;
}
.changelog {
    padding-bottom: 30px;
}
.screenshots-title {
    text-align: center;
    color: #555;
    margin: 20px 0 10px 0;
    font-size: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.divider-with-button {
    position: relative;
    height: 1px;
    background-color: #ddd;
    margin: 15px 0;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.expand-toggle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #f5f5f5;
    padding: 0 15px;
    color: #888;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}
.expand-toggle::after {
    content: "∨";
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.changelog.expanded .expand-toggle::after {
    transform: rotate(180deg);
}

.changelog li {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}
.changelog li strong {
    display: block;
    margin-bottom: 5px;
    color: #555;
}
.changelog strong {
    color: #555;
}
.history-version {
    cursor: pointer;
    text-decoration: underline;
    font-size: 15px;
    color: #666;
}
.history-version:hover {
    color: #555;
}

.version-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
}
.version-modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.version-modal-content h3 {
    color: #444;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
}
.version-modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.version-modal-content li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
}
.version-modal-content li:last-child {
    border-bottom: none;
}
.version-header {
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.version-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: max-height;
    padding-left: 15px;
    color: #666;
}
.version-details p {
    margin: 5px 0;
    font-size: 13px;
}
.toggle-details {
    font-size: 12px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.version-list li.expanded .version-details {
    max-height: 500px;
    padding: 5px 0 10px 15px;
}
.version-list li.expanded .toggle-details {
    transform: rotate(180deg);
}

.download-icon {
    margin-left: 8px;
    cursor: pointer;
    color: #3498db;
}

h1 {
    margin: 20px 0;
    color: #2c3e50;
}
.app-screenshots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 10px 0;
    margin: 30px 0;
    -webkit-overflow-scrolling: touch;
}
.app-screenshots img {
    scroll-snap-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 178px;
    height: 300px;
    object-fit: contain;
    background-color: #f5f5f5;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px 15px 25px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin: 10px 0;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}
.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}
.download-btn:active {
    transform: translateY(1px);
}
.download-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0.3),
        rgba(255,255,255,0)
    );
    transform: rotate(30deg);
}
.download-btn:hover::after {
    animation: shine 1.5s infinite;
}
.download-btn {
    display: inline-block;
    padding: 15px 40px;
}
.footer {
    text-align: center;
    padding: 20px 0;
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}
.footer .copyright {
    margin-bottom: 5px;
}
.footer .icp {
    color: #aaa;
}
@keyframes shine {
    100% {
        left: 150%;
        top: 150%;
    }
}
.download-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.friend-links a:hover {
    color: #333;
}
.divider {
    height: 1px;
    background-color: #ddd;
    margin: 15px 0;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.shdow {
    position: fixed;
    top: 0;
    bottom:0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}
.modal-content {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.1);
}
.modal-scroll-content {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* 确保在手机端也能显示滚动条 */
.modal-scroll-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.modal-scroll-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.modal-scroll-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
}

.modal-scroll-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}

/* Firefox */
.modal-scroll-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.3) rgba(0,0,0,0.1);
}

/* 手机端强制显示滚动条 */
@media screen and (max-width: 768px) {
    .modal-scroll-content {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-scroll-content::-webkit-scrollbar {
        width: 5px;
        height: 5px;
        display: block;
    }
    
    .modal-scroll-content::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.1);
        border-radius: 2px;
    }
    
    .modal-scroll-content::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.4);
        border-radius: 2px;
    }
}

.modal-content h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}
.modal-content h3 {
    color: #3498db;
    margin: 20px 0 10px 0;
    font-size: 18px;
}
.modal-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
}
.modal-content strong {
    color: #e74c3c;
}
.modal-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.modal-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    max-width: 150px;
}

/* 在小屏幕上调整按钮大小 */
@media screen and (max-width: 480px) {
    .modal-btn {
        min-width: 100px;
        padding: 10px 15px;
        font-size: 14px;
        max-width: none;
    }
}
.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.agree-btn {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
}
.agree-btn:hover {
    background: linear-gradient(45deg, #27ae60, #219653);
}
.agree-btn.disabled {
    background: linear-gradient(45deg, #bdc3c7, #95a5a6);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.agree-btn.disabled:hover {
    background: linear-gradient(45deg, #bdc3c7, #95a5a6);
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.cancel-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}
.cancel-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
}
.scroll-tip {
    position: absolute;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 5px;
    animation: fadeInOut 3s forwards;
}

/* 在文字前面加一个圆形的深灰色感叹号标识 */
.scroll-tip::before {
    content: "!";
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background-color: #666;
    color: white;
    border-radius: 50%;
    margin-right: 8px;
    font-weight: bold;
    font-size: 12px;
}
@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; display: none; }
}