/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

h2 {
    color: #555;
    margin-bottom: 15px;
}

/* 卡片组件 */
.card {
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

/* 表格样式 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.info-table th,
.info-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.info-table th {
    width: 30%;
    font-weight: 600;
    color: #555;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* 按钮样式 */
.button {
    display: inline-block;
    background-color: #4a76a8;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.button:hover {
    background-color: #3a5987;
}

.button-group {
    margin: 20px 0;
}

.button-group .button {
    margin-right: 10px;
}

/* 辅助类 */
.mt-3 {
    margin-top: 15px;
}

pre {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    overflow: auto;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

body {
    background: #fafafa;
    min-height: 100vh;
    color: #2d3748;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 可访问性 - 跳转到主要内容链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.container {
    max-width: 1200px !important;
    background: #ffffff !important;
    padding: 48px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none;
}

/* 极简页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0;
    background: none;
    color: #1a202c;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 40px;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 300;
    margin-bottom: 16px;
    color: #1a202c;
    border: none;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.apple-logo {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.page-header p {
    font-size: 1rem;
    color: #718096;
    margin: 0;
    font-weight: 400;
}

.apple-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 0;
}

.apple-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.apple-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.card-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.country-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4a5568;
}

.country-flag {
    font-size: 0.875rem;
    line-height: 1;
}

.status-active {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.status-inactive {
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

.status-limited {
    background: #fffbeb;
    color: #d69e2e;
    border: 1px solid #f6d57b;
}

.card-field {
    margin-bottom: 16px;
}

.field-label {
    font-size: 0.875rem;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 500;
}

.field-value {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.875rem;
}

.field-text {
    word-break: break-all;
    color: #2d3748;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 16px;
}

.copy-btn {
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.copy-btn:hover {
    background: #3182ce;
}

.copy-btn.copied {
    background: #38a169;
}

.update-time {
    font-size: 0.8125rem;
    color: #718096;
    text-align: center;
    margin-top: 8px;
    padding-top: 16px;
}

/* 顶部资源链接样式 */
.top-resources {
    margin-bottom: 32px;
}

.top-resource-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-extra-link {
    background: linear-gradient(135deg, #e3008c 0%, #ff1744 100%);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 15px rgba(227, 0, 140, 0.25); */
    border: none;
    position: relative;
    overflow: hidden;
}

.top-extra-link::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;
}

.top-extra-link:hover::before {
    left: 100%;
}

.top-extra-link:active {
    transform: translateY(0);
}

.top-extra-link .link-text {
    font-weight: 600;
}

.top-extra-link .link-arrow {
    margin-left: 12px;
    font-size: 1.125rem;
}

/* 卡片额外资源链接样式 */
.card-extra {
    margin-top: 16px;
    margin-bottom: 10px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.extra-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    padding: 5px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.extra-link-primary {
    background: #e3008c15;
    color: #e3008c;
}


.link-text {
    /* flex: 1; */
    font-weight: 500;
}

.link-arrow {
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 10px;
    transition: transform 0.3s ease;
    animation: arrow-float 2s ease-in-out infinite;
}

/* 箭头浮动动画 */
@keyframes arrow-float {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

/* 悬停时的箭头动画 */
.extra-link:hover .link-arrow {
    animation: arrow-bounce 0.6s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-3px);
    }
    75% {
        transform: translateX(6px);
    }
}

.extra-link:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .container {
        padding: 24px !important;
    }

    .page-header {
        margin-bottom: 40px;
        padding-bottom: 24px;
    }

    .page-header h1 {
        font-size: 1.875rem;
        gap: 12px;
    }

    .apple-logo {
        width: 40px;
        height: 40px;
    }

    .apple-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .apple-card {
        padding: 20px;
    }

    .card-header {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 12px;
    }

    .country-badge {
        font-size: 0.6875rem;
        padding: 3px 8px;
    }

    .card-extra {
        margin-top: 12px;
        padding-top: 10px;
        gap: 8px;
    }

    .extra-link {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .link-arrow {
        font-size: 0.9375rem;
        margin-left: 8px;
        transition: transform 0.3s ease;
        animation: arrow-float 2s ease-in-out infinite;
    }

    /* 顶部资源链接响应式 */
    .top-resources {
        margin-bottom: 24px;
    }

    .top-extra-link {
        font-size: 0.875rem;
        padding: 14px 24px;
        border-radius: 10px;
    }

    .top-extra-link .link-arrow {
        margin-left: 10px;
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .apple-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1101px) {
    .apple-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 优雅模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: #38a169;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.modal-icon::after {
    content: '✓';
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.modal-message {
    font-size: 0.9375rem;
    color: #718096;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-close-btn {
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.modal-close-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.modal-close-btn:active {
    transform: translateY(0);
}

/* 重要提示框 */
.notice-box {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe9cc 100%);
    border: 1px solid #f6ad55;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 48px;
    position: relative;
    box-shadow: 0 2px 8px rgba(246, 173, 85, 0.15);
}

.notice-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #c05621;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-content {
    color: #744210;
    line-height: 1.8;
    font-size: 0.9375rem;
}

.notice-content p {
    margin: 0 0 12px 0;
}

.notice-content p:last-child {
    margin-bottom: 0;
}

.notice-highlight {
    font-weight: 600;
    color: #c05621;
}

/* Notice box responsive */
@media (max-width: 768px) {
    .notice-box {
        padding: 20px;
        margin-bottom: 32px;
    }

    .notice-title {
        font-size: 1rem;
    }

    .notice-content {
        font-size: 0.875rem;
    }
}

/* 网站底部样式 */
.site-footer {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #718096;
    font-size: 0.875rem;
}

.site-footer p {
    margin: 8px 0;
}

.site-footer small {
    font-size: 0.8125rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 40px;
        padding-top: 24px;
        font-size: 0.8125rem;
    }
} 