/* Premium Media Platform Template - Purple & Modern Design */

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --secondary: #06b6d4;
    --accent: #f0f9ff;
    --dark: #1e293b;
    --darker: #ffffff;
    --light: #1e293b;
    --gray: #64748b;
    --gray-light: #475569;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.06);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --radius: 10px;
    --radius-sm: 8px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--light);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
}

/* Header Styles */
.branding-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    padding: 0.75rem 0;
    box-shadow: 0 1px 4px var(--shadow);
}

.brand-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.logo-link:hover {
    transform: scale(1.03);
}

.company-name {
    font-size: 26px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 8px rgba(124, 58, 237, 0.15);
}

.address-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    border-radius: 18px;
    border: 1.5px solid rgba(124, 58, 237, 0.3);
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(124, 58, 237, 0);
    }
}

.address-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.address-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.2px;
}

/* Container */
.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 15px;
}

.content {
    padding: 16px 0;
}

/* Navigation Container */
.nav-container {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shadow);
}

.nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}

.nav-row:last-child {
    border-bottom: none;
}

/* PC端：区域名称 + 8个链接 */
.nav-row .nav-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 8px;
    flex-shrink: 0;
}

.nav-row .nav-links {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 11px 10px;
    align-items: center;
}

.nav-row .nav-links a {
    display: inline-block;
    color: var(--gray-light);
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 6px;
    transition: var(--transition);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-row .nav-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.2);
}

.nav-row .nav-links a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.2);
    font-weight: 600;
}

/* Search Box */
.search-widget {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 13px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shadow);
}

.search-widget form {
    display: flex;
    gap: 9px;
    flex-wrap: nowrap;
    align-items: center;
}

.search-widget input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 11px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--dark);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.search-widget input[type="text"]:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.search-widget input[type="text"]::placeholder {
    color: var(--gray);
}

.search-widget button {
    padding: 11px 17px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gradient);
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-widget button:hover {
    box-shadow: 0 5px 14px rgba(124, 58, 237, 0.25);
}

.search-widget button:active {
    transform: translateY(1px);
}

/* Grid Container for Tags */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 13px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shadow);
}

.tag-item {
    padding: 7px 15px;
    background: var(--bg-primary);
    border-radius: 18px;
    color: var(--gray-light);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.tag-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

/* Section Headings */
.section-block {
    margin-bottom: 21px;
}

.section-title-area {
    margin-bottom: 16px;
    padding-bottom: 11px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.section-title-area::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.2px;
    color: var(--dark);
}

.section-title a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.section-title a:hover {
    color: var(--primary);
}

/* Thumbnail Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
}

.media-grid li {
    position: relative;
    animation: slideUp 0.5s ease backwards;
}

.media-grid li:nth-child(1) { animation-delay: 0.04s; }
.media-grid li:nth-child(2) { animation-delay: 0.08s; }
.media-grid li:nth-child(3) { animation-delay: 0.12s; }
.media-grid li:nth-child(4) { animation-delay: 0.16s; }
.media-grid li:nth-child(5) { animation-delay: 0.20s; }
.media-grid li:nth-child(6) { animation-delay: 0.24s; }
.media-grid li:nth-child(7) { animation-delay: 0.28s; }
.media-grid li:nth-child(8) { animation-delay: 0.32s; }

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

.media-poster {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 600 / 350;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px var(--shadow);
}

.media-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.media-poster:hover {
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.15);
}

.media-poster:hover img {
    transform: scale(1.08);
}

.media-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.media-poster:hover::after {
    opacity: 1;
}

.title-area {
    padding: 11px 0;
}

.title-area h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--dark);
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.title-area a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.title-area a:hover {
    color: var(--primary);
}

/* Content Info Box */
.info-display {
    line-height: 1.9;
    text-align: center;
    padding: 22px;
    font-size: 17px;
    margin: 21px 0;
    word-break: break-all;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.info-display a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-right: 8px;
    transition: var(--transition);
}

.info-display a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.info-display b {
    color: var(--dark);
    word-wrap: break-word;
}

/* Details Box */
.details-box {
    clear: both;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.9;
    padding: 26px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-radius: var(--radius);
    margin: 21px 0;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.details-box br {
    line-height: 0.8;
}

/* Torrent Capture Grid */
.torrent-capture-grid {
    margin: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.torrent-capture-grid picture,
.torrent-capture-grid img {
    width: 100%;
    height: auto;
    display: block;
}

/* Download Buttons */
.download {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 15px 0;
    margin: 16px 0;
}

.down_btn {
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.down_btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.down_btn:active {
    transform: translateY(1px);
}

/* Share Section */
.share-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 16px 0;
    align-items: center;
}

.share-url-display {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.share-url {
    font-size: 12px;
    color: var(--dark);
    word-break: break-all;
    font-family: 'Monaco', 'Courier New', monospace;
}

.share-copy-btn {
    padding: 11px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-copy-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.share-icon {
    font-size: 16px;
}

/* Video Container */
.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
    background: var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Pagination */
.page_info_div {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 18px 0;
    flex-wrap: wrap;
}

.page_info_div a,
.page_info_div span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--dark);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    min-width: 40px;
    text-align: center;
}

.page_info_div a {
    background: var(--bg-secondary);
    cursor: pointer;
}

.page_info_div a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page_info_focus {
    background: var(--gradient);
    color: white;
    border-color: var(--primary);
    cursor: default;
}

/* Footer */
.footer {
    padding: 28px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 32px;
    background: var(--bg-secondary);
}

.footer p {
    margin: 8px 0;
    color: var(--gray);
    font-size: 13px;
}

.footer a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary);
}

.link-section {
    padding: 13px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.link-section dl {
    margin: 0;
}

.link-section dd {
    display: inline-block;
    margin: 5px;
}

.link-section a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

.link-section a:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .branding-nav {
        padding: 0.6rem 0;
    }

    .company-logo {
        gap: 8px;
    }

    .company-name {
        font-size: 22px;
    }

    .address-info {
        padding: 4px 10px;
        gap: 5px;
    }

    .address-tag {
        font-size: 9px;
    }

    .address-value {
        font-size: 13px;
    }

    .content {
        padding: 12px 0;
    }

    /* Mobile navigation */
    .nav-row {
        display: flex;
        align-items: stretch;
    }

    .nav-row .nav-label {
        width: 15%;
        font-size: 10px;
        padding: 8px 3px;
    }

    .nav-row .nav-links {
        width: 85%;
        font-size: 11px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 5px;
    }

    .nav-row .nav-links a {
        padding: 5px 2px;
        font-size: 12px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .search-widget {
        padding: 11px;
    }

    .search-widget form {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .search-widget input[type="text"] {
        min-width: 100px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .search-widget button {
        padding: 9px 11px;
        font-size: 12px;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .title-area {
        padding: 8px 0;
    }

    .title-area h5 {
        font-size: 13px;
    }

    .section-block {
        margin-bottom: 16px;
    }

    .section-title-area {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .section-title {
        font-size: 18px;
    }

    .tag-container {
        padding: 11px;
        gap: 6px;
    }

    .tag-item {
        padding: 5px 12px;
        font-size: 12px;
    }

    .down_btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .download {
        padding: 12px 0;
        margin: 12px 0;
        gap: 8px;
    }

    .info-display {
        padding: 18px;
        font-size: 15px;
        margin: 16px 0;
    }

    .details-box {
        padding: 18px;
        margin: 16px 0;
        font-size: 15px;
    }

    .share-section {
        padding: 12px;
        margin: 16px 0;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .share-url-display {
        gap: 5px;
    }

    .share-label {
        font-size: 11px;
    }

    .share-url {
        font-size: 11px;
    }

    .share-copy-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .share-icon {
        font-size: 16px;
    }

    .page_info_div {
        padding: 15px 0;
        gap: 5px;
    }

    .page_info_div a,
    .page_info_div span {
        padding: 7px 12px;
        font-size: 12px;
        min-width: 36px;
    }

    .footer {
        padding: 22px 0;
        margin-top: 22px;
    }

    .video-container {
        height: 56.25vw;
        max-height: 400px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .branding-nav {
        padding: 0.5rem 0;
    }

    .company-logo {
        gap: 6px;
    }

    .company-name {
        font-size: 20px;
    }

    .address-info {
        padding: 3px 8px;
        gap: 4px;
        border-width: 1px;
    }

    .address-tag {
        font-size: 8px;
    }

    .address-value {
        font-size: 12px;
    }

    .nav-row .nav-label {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .nav-row .nav-links {
        width: 85%;
        gap: 3px;
        padding: 6px 3px;
    }

    .nav-row .nav-links a {
        padding: 4px 1px;
        font-size: 12px;
        width: calc((100% - 9px) / 4);
    }

    .search-widget input[type="text"] {
        min-width: 80px;
        padding: 9px 11px;
        font-size: 12px;
    }

    .search-widget button {
        padding: 9px 9px;
        font-size: 11px;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .title-area h5 {
        font-size: 12px;
    }

    .section-title {
        font-size: 16px;
    }

    .download {
        padding: 10px 0;
        gap: 6px;
    }

    .down_btn {
        padding: 9px 12px;
        font-size: 12px;
    }

    .info-display {
        padding: 16px;
        font-size: 14px;
        margin: 12px 0;
    }

    .details-box {
        padding: 16px;
        margin: 12px 0;
        font-size: 14px;
    }

    .share-section {
        padding: 10px;
        margin: 12px 0;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .share-url-display {
        gap: 4px;
    }

    .share-label {
        font-size: 10px;
    }

    .share-url {
        font-size: 10px;
    }

    .share-copy-btn {
        padding: 9px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .share-icon {
        font-size: 14px;
    }

    .video-container {
        height: 56.25vw;
        max-height: 300px;
        margin-bottom: 12px;
    }
}

/* Hide Utilities */
.hide_mobile {
    display: block;
}

.hide_pc {
    display: block;
}

@media (max-width: 768px) {
    .hide_mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide_pc {
        display: none !important;
    }
}

/* Loading Image */
img[data-original] {
    background: var(--bg-primary);
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
