/* Welcome Platform - 完全匹配 kidrobotclub.com UI */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #182b3a;
    --primary-dark: #0f1c25;
    --secondary: #182b3a;
    --accent: #ff4d23;
    --background: #ffffff;
    --card: #ffffff;
    --text: #2d2929;
    --text-muted: #93959e;
    --border: #e5e7ec;
    --success: #00a651;
    --danger: #dc3545;
    --warning: #ffc107;
}

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

body {
    font-family: 'Rubik', 'メイリオ', 'Meiryo', sans-serif;
    font-size: 16px;
    color: #93959e;
    line-height: 26px;
    font-weight: 400;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    transition: all 500ms ease;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.boxed_wrapper {
    position: relative;
    margin: 0 auto;
    overflow: hidden !important;
    width: 100%;
    min-width: 300px;
}

.auto-container {
    position: static;
    max-width: 1200px;
    padding: 0px 15px;
    margin: 0 auto;
}

/* Header Top */
.header-top {
    background-color: var(--secondary);
    padding: 12px 0;
}

.header-top .top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

/* Announcement Bar in Header */
.announcement-column {
    min-width: 0;
    position: relative;
}

.announcement-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.announcement-content {
    display: inline-flex;
    animation: scrollAnnouncement 60s linear infinite;
    white-space: nowrap;
}

.announcement-content span {
    display: inline-block;
    color: #ffc107;
    font-size: 13px;
    padding: 0 50px;
    font-weight: 400;
    white-space: nowrap;
}

.announcement-column:hover .announcement-content {
    animation-play-state: paused;
}

@keyframes scrollAnnouncement {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.header-top .logo-box {
    display: flex;
    align-items: center;
}

.header-top .logo-box img {
    height: 50px;
    width: auto;
}

.header-top .sign-box {
    display: inline-block;
    margin: auto;
}

.header-top .sign-box a {
    color: #fff;
    margin-left: 20px;
    font-size: 14px;
}

.header-top .sign-box a:hover {
    color: #ffc107;
}

.header-top .sign-box i {
    margin-right: 5px;
}

/* Header Lower / Navigation */
.header-lower {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-menu {
    display: flex;
    align-items: center;
}

.main-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu ul li {
    position: relative;
}

.main-menu ul li a {
    display: block;
    padding: 18px 25px;
    color: var(--text);
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s;
}

.main-menu ul li a:hover,
.main-menu ul li.current a {
    color: var(--primary);
}

.main-menu ul li a span {
    position: relative;
}

/* Mobile Menu */
.mobile-nav-toggler {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-nav-toggler .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Buttons */
.theme-btn {
    display: inline-block;
    padding: 12px 35px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 500ms ease;
    text-align: center;
    text-decoration: none;
}

.btn-one {
    background: var(--primary);
    color: #fff !important;
}

.btn-one:hover {
    background: var(--primary-dark);
    color: #fff !important;
}

/* Main Content Section */
.property-page-section {
    padding: 30px 0;
}

.property-list {
    padding: 30px 0;
}

.content-side {
    padding-right: 15px;
}

.sidebar-side {
    padding-left: 15px;
}

/* Row & Columns */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.col-lg-8 {
    width: 66.666667%;
    padding: 0 15px;
}

.col-lg-4 {
    width: 33.333333%;
    padding: 0 15px;
}

.col-lg-6 {
    width: 50%;
    padding: 0 15px;
}

.col-md-12, .col-sm-12 {
    padding: 0 15px;
}

/* Widget / Sidebar */
.sidebar-widget {
    background: #fff;
    border-radius: 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.default-sidebar {
    margin-bottom: 30px;
}

.property-sidebar {
    margin-bottom: 0;
}

.widget-title {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7ec;
    background: transparent;
}

.widget-title h5 {
    font-size: 16px;
    font-weight: 600;
    color: #2d2929;
    margin: 0;
}

.widget-content {
    padding: 20px;
}

/* Category List - 完全匹配参考样式 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #e5e7ec;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li:hover {
    background: #f8f9fa;
}

.category-list li img {
    max-height: 40px;
    width: auto;
    height: 40px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 3px;
}

.category-list li span {
    margin-left: auto;
}

/* Post Widget - 商品列表 */
.post-widget {
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
}

.post-inner {
    padding: 0;
}

.post {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7ec;
    position: relative;
}

.post:last-child {
    border-bottom: none;
}

.post .post-thumb {
    width: 80px;
    height: 60px;
    min-width: 80px;
    border-radius: 0;
    overflow: hidden;
    margin-right: 15px;
    background: #f0f0f0;
    flex-shrink: 0;
}

.post .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post h5 {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #2d2929;
    line-height: 1.5;
    min-width: 0;
}

.post h5 a {
    color: #2d2929;
    display: block;
}

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

.post .post-date {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.post .post-date.price {
    color: #dc3545;
    margin-right: 15px;
}

.post .post-date.status {
    float: right;
    margin-left: 15px;
}

.post .post-date.status-available {
    color: #dc3545;
}

.post .post-date.status-sold {
    color: #dc3545;
}

.block-inline {
    display: inline-block;
}

/* Filter Widget (Buy/Sell Buttons) */
.filter-widget .widget-content {
    padding: 20px;
}

.filter-widget .buy-btn,
.filter-widget .filter-btn {
    margin-bottom: 10px;
}

.filter-widget .buy-btn:last-child,
.filter-widget .filter-btn:last-child {
    margin-bottom: 0;
}

/* QR Code / Image Box */
.image-box {
    padding: 20px;
    text-align: center;
}

.image-box .image {
    margin: 0;
}

.image-box .image img {
    max-width: 100%;
    border-radius: 5px;
}

/* Notice List */
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #e5e7ec;
    font-size: 13px;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list li a {
    color: #93959e;
}

.notice-list li a:hover {
    color: var(--primary);
}

/* Inner Box / Form Container */
.inner-box {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 25px;
    margin-bottom: 0;
}

.default-form {
    padding: 20px 0;
}

.blog-sidebar {
    padding: 0;
}

/* Footer */
.main-footer {
    background: var(--secondary);
    margin-top: 40px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: #aaa;
    margin: 0;
    font-size: 14px;
}

.footer-bottom .footer-logo {
    margin-top: 15px;
}

.footer-bottom .footer-logo img {
    height: 40px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2d2929;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #e5e7ec;
    border-radius: 5px;
    background: #fff;
    transition: all 500ms ease;
    font-family: 'Rubik', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-card .image-box {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
}

.product-card .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .content-box {
    padding: 15px;
}

.product-card .game-name {
    display: inline-block;
    background: #f8f9fa;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    color: #93959e;
    margin-bottom: 8px;
}

.product-card .title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #2d2929;
    line-height: 1.4;
}

.product-card .price {
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
}

/* Search Box */
.search-box {
    background: #fff;
    padding: 25px;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-box .form-control {
    flex: 1;
}

/* Account Page */
.account-sidebar {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.account-sidebar .account-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7ec;
}

.account-sidebar .account-header h3 {
    font-size: 18px;
    margin: 0;
    color: #2d2929;
}

.account-sidebar .balance-box {
    padding: 20px;
    border-bottom: 1px solid #e5e7ec;
}

.account-sidebar .balance-label {
    font-size: 13px;
    color: #93959e;
    margin-bottom: 5px;
}

.account-sidebar .balance-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.account-sidebar .account-nav {
    padding: 10px 0;
}

.account-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #2d2929;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.account-sidebar .nav-link:hover {
    background: #f8f9fa;
    color: var(--primary);
    text-decoration: none;
}

.account-sidebar .nav-link.active {
    background: #f0f0f0;
    color: var(--primary);
    border-left-color: var(--primary);
}

.account-sidebar .nav-link.logout {
    color: #dc3545;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-danger { color: #dc3545 !important; }
.text-success { color: #00a651 !important; }
.text-muted { color: #93959e !important; }

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

.w-100 { width: 100%; }

/* Responsive */
@media (max-width: 1024px) {
    .col-lg-8 {
        width: 100%;
    }
    .col-lg-4 {
        width: 100%;
    }
    .col-lg-6 {
        width: 100%;
    }
    .content-side {
        padding-right: 15px;
    }
    .sidebar-side {
        padding-left: 15px;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .header-top .top-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .header-top .announcement-column {
        order: 3;
        width: 100%;
        margin: 10px 0 0 0;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .header-top .announcement-content span {
        font-size: 12px;
        padding: 0 30px;
    }
    .header-top .sign-box {
        margin-top: 5px;
    }
    .header-top .sign-box a {
        margin: 0 10px;
    }
    .main-menu {
        position: relative;
    }
    .main-menu ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        z-index: 1000;
        flex-direction: column;
        width: 100%;
        border-top: 2px solid var(--primary);
        margin: 0;
        padding: 0;
        list-style: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .main-menu ul.show {
        display: flex;
        max-height: 500px;
    }
    .main-menu ul li {
        width: 100%;
        border-bottom: 1px solid #e5e7ec;
        margin: 0;
    }
    .main-menu ul li:last-child {
        border-bottom: none;
    }
    .main-menu ul li a {
        padding: 15px 20px;
        width: 100%;
        display: block;
        font-size: 16px;
        color: var(--text);
        text-decoration: none;
        transition: all 0.3s;
    }
    .main-menu ul li a:hover,
    .main-menu ul li.current a {
        background-color: #f8f9fa;
        color: var(--primary);
        padding-left: 25px;
    }
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .mobile-nav-toggler {
        display: block;
    }
    .post {
        flex-wrap: wrap;
    }
    .post .post-date {
        width: 100%;
        margin-top: 5px;
    }
}

/* Admin Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--secondary);
    color: #fff;
    padding: 20px;
    flex-shrink: 0;
}

.admin-content {
    flex: 1;
    padding: 30px;
    background: #f5f5f5;
}

/* No Image Placeholder */
.no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

/* Specific Layout Classes from Reference */
.item-shorting {
    margin-bottom: 20px;
}

.deals-list-content {
    margin-bottom: 20px;
}

.deals-block-one {
    margin-bottom: 20px;
}

.wrapper.list {
    width: 100%;
}

/* Logo Styles */
.logoimg {
    height: 45px;
    width: auto;
}
