* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

:root {
    --google-blue: #4285F4;
    --google-red: #EA4335;
    --google-yellow: #FBBC05;
    --google-green: #34A853;
    --google-gray: #F8F9FA;
    --google-darkgray: #5F6368;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --blue-600: #2563eb;
    --primary: #6C63FF;
    --primary-dark: #574bff;
}

body {
    background-color: var(--gray-100);
    min-height: 100vh;
    color: var(--gray-800);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.card-shadow {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.text-shadow {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.transition-colors {
    transition: background-color 0.2s ease;
}

header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 12px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon {
    color: var(--google-darkgray);
    font-size: 20px;
}

.header-text {
    color: var(--google-darkgray);
    font-weight: 500;
}

main {
    padding-bottom: 80px;
}

.app-header {
    padding: 24px 0 16px;
}

.app-header-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .app-header-content {
        flex-direction: row;
    }
}

.app-icon {
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .app-icon {
        justify-content: flex-start;
    }
}

.app-icon-wrapper {
    width: 112px;
    height: 112px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info {
    flex: 1;
    padding-top: 8px;
}

.app-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.app-publisher {
    color: var(--google-darkgray);
    font-size: 14px;
    margin-bottom: 12px;
}

.rating-container {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.star-rating {
    display: flex;
    margin-right: 8px;
}

.star {
    color: #ddd;
    font-size: 16px;
}

.star.filled {
    color: var(--google-yellow);
}

.rating-value {
    color: var(--gray-800);
    font-weight: 500;
    margin-right: 8px;
}

.rating-count {
    color: var(--google-darkgray);
    font-size: 12px;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 768px) {
    .button-group {
        justify-content: flex-start;
    }
}

.btn {
    padding: 8px 32px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .btn-primary.install-btn {
        padding: 12px 60px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .app-meta {
        display: none !important;
    }
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-800);
    padding: 8px 16px;
}

.btn-secondary:hover {
    background-color: var(--gray-100);
}

.btn-icon {
    margin-left: 4px;
}

.btn-icon-left {
    margin-right: 4px;
}

.app-meta {
    background-color: var(--white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: center;
}

@media (min-width: 768px) {
    .meta-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.meta-label {
    color: var(--google-darkgray);
    font-size: 12px;
    margin-bottom: 4px;
}

.meta-value {
    font-weight: 500;
    color: var(--gray-800);
}

.screenshot-section {
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.screenshot-slider {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshot-slider::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    width: 192px;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.app-description {
    color: var(--google-darkgray);
    line-height: 1.6;
}

.app-description p {
    margin-bottom: 12px;
}

.app-description ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 12px;
}

.read-more {
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    text-decoration: underline;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.view-all {
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
}

.view-all:hover {
    text-decoration: underline;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 12px;
}

.review-header-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-user {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    color: var(--gray-800);
}

.review-text {
    color: var(--google-darkgray);
    font-size: 14px;
    margin-bottom: 4px;
}

.review-date {
    color: var(--google-darkgray);
    font-size: 12px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px;
}

.footer-app-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-app-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
}

.footer-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-app-name {
    font-weight: 500;
    color: var(--gray-800);
    font-size: 14px;
}

.footer-btn {
    padding: 10px 24px;
    border-radius: 8px;
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.footer-btn:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 480px) {
    .footer-app-name {
        display: none;
    }
}

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
}

.icon-arrow-left::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    width: 8px;
    height: 8px;
    border-left: 2px solid var(--google-darkgray);
    border-bottom: 2px solid var(--google-darkgray);
    transform: translateY(-50%) rotate(45deg);
}

.icon-search::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--google-darkgray);
    border-radius: 50%;
}

.icon-search::after {
    content: '';
    position: absolute;
    top: 11px;
    left: 11px;
    width: 6px;
    height: 2px;
    background-color: var(--google-darkgray);
    transform: rotate(45deg);
}

.icon-share::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 3px;
    width: 10px;
    height: 2px;
    background-color: var(--google-darkgray);
}

.icon-share::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 3px;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--google-darkgray);
    border-bottom: 2px solid var(--google-darkgray);
    transform: rotate(45deg);
}

.icon-more::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--google-darkgray);
    box-shadow: 0 6px 0 var(--google-darkgray), 0 12px 0 var(--google-darkgray);
}

.icon-download::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 4px;
    border: 2px solid currentColor;
    border-top: none;
}

.icon-download::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 8px;
    width: 2px;
    height: 4px;
    background-color: currentColor;
    transform: rotate(45deg);
    box-shadow: -2px -2px 0 currentColor;
}

.icon-heart::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50% 50% 0;
    transform: rotate(-45deg);
    border-bottom: none;
}

.icon-heart::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 6px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 0 50% 50% 0;
    border-left: none;
}

.icon-star {
    width: 16px;
    height: 16px;
}

.icon-star::before {
    content: '★';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 16px;
    line-height: 1;
    color: inherit;
}

.icon-down::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* 登录页面样式 */
.login-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 300px;
    margin: 100px auto;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-container button {
    width: 100%;
    padding: 0.8rem;
    background-color: #6C63FF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.login-container button:hover {
    background-color: #574bff;
}

.error {
    color: #ff4444;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #ffebee;
    border-radius: 4px;
}

/* 管理后台样式 */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6C63FF;
}

.admin-header h1 {
    color: #333;
}

.logout {
    text-align: right;
}

.logout a {
    color: #ff4444;
    text-decoration: none;
}

.logout a:hover {
    text-decoration: underline;
}

/* 标签页样式 */
.tab-nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #6C63FF;
    border-bottom-color: #6C63FF;
}

.tab-btn:hover {
    color: #6C63FF;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 表单样式优化 */
.content-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    min-width: 300px;
}

.form-group.full-width {
    width: 100%;
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.review-block {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.review-block h3 {
    margin-bottom: 15px;
    color: #444;
    font-size: 18px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-save {
    background-color: #6C63FF;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    min-width: 200px;
}

.btn-save:hover {
    background-color: #574bff;
}


.password-form-container {
    max-width: 500px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.tab-nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

.tab-btn.active {
    color: #6C63FF;
    border-bottom-color: #6C63FF;
    background-color: rgba(108, 99, 255, 0.05);
}

.tab-btn:hover {
    color: #6C63FF;
    background-color: rgba(108, 99, 255, 0.03);
}


.review-block {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #6C63FF;
}

.review-block h3 {
    margin-bottom: 18px;
    color: #444;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}


.form-section h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #6C63FF;
    display: inline-block;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: #6C63FF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    transition: all 0.2s ease;
}


.btn-save {
    background-color: #6C63FF;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    min-width: 200px;
    transition: all 0.2s ease;
}

.btn-save:hover {
    background-color: #574bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2);
}

.btn-save:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(108, 99, 255, 0.15);
}


@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row .form-group {
        min-width: 100%;
    }
    
    .admin-container {
        padding: 10px;
    }
    
    .content-form {
        padding: 15px;
    }
}